From f95ef0651c95340edf2f75050939cbd7b633db37 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Tue, 2 Jun 2026 23:36:17 +0000 Subject: [PATCH] test change with geminidataanalytics --- java-geminidataanalytics/.repo-metadata.json | 7 +- java-geminidataanalytics/README.md | 14 +- .../v1beta/DataAgentServiceClient.java | 2378 ---------- .../v1beta/DataAgentServiceSettings.java | 431 -- .../v1beta/DataChatServiceClient.java | 1576 ------- .../v1beta/DataChatServiceSettings.java | 321 -- .../v1beta/gapic_metadata.json | 93 - .../v1beta/package-info.java | 66 - .../v1beta/stub/DataAgentServiceStub.java | 153 - .../stub/DataAgentServiceStubSettings.java | 1020 ----- .../v1beta/stub/DataChatServiceStub.java | 109 - .../stub/DataChatServiceStubSettings.java | 750 ---- .../GrpcDataAgentServiceCallableFactory.java | 115 - .../v1beta/stub/GrpcDataAgentServiceStub.java | 656 --- .../GrpcDataChatServiceCallableFactory.java | 115 - .../v1beta/stub/GrpcDataChatServiceStub.java | 478 -- ...tpJsonDataAgentServiceCallableFactory.java | 103 - .../stub/HttpJsonDataAgentServiceStub.java | 1091 ----- ...ttpJsonDataChatServiceCallableFactory.java | 103 - .../stub/HttpJsonDataChatServiceStub.java | 732 --- .../reflect-config.json | 3908 ----------------- .../DataAgentServiceClientHttpJsonTest.java | 1255 ------ .../v1beta/DataAgentServiceClientTest.java | 1116 ----- .../DataChatServiceClientHttpJsonTest.java | 756 ---- .../v1beta/DataChatServiceClientTest.java | 731 --- .../v1beta/MockDataAgentService.java | 59 - .../v1beta/MockDataAgentServiceImpl.java | 296 -- .../v1beta/MockDataChatService.java | 59 - .../v1beta/MockDataChatServiceImpl.java | 208 - .../v1beta/MockLocations.java | 59 - .../v1beta/MockLocationsImpl.java | 105 - .../v1beta/ContextProto.java | 60 +- .../v1beta/ConversationProto.java | 18 +- .../v1beta/DataAgentServiceProto.java | 54 +- .../v1beta/DataChatServiceProto.java | 180 +- .../v1beta/DatasourceProto.java | 94 +- .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../createdataagent/AsyncCreateDataAgent.java | 54 - .../AsyncCreateDataAgentLRO.java | 54 - .../createdataagent/SyncCreateDataAgent.java | 49 - ...eDataAgentLocationnameDataagentString.java | 45 - ...cCreateDataAgentStringDataagentString.java | 45 - .../AsyncCreateDataAgentSync.java | 53 - .../SyncCreateDataAgentSync.java | 49 - ...aAgentSyncLocationnameDataagentString.java | 45 - ...ateDataAgentSyncStringDataagentString.java | 45 - .../deletedataagent/AsyncDeleteDataAgent.java | 51 - .../AsyncDeleteDataAgentLRO.java | 52 - .../deletedataagent/SyncDeleteDataAgent.java | 47 - .../SyncDeleteDataAgentDataagentname.java | 42 - .../SyncDeleteDataAgentString.java | 42 - .../AsyncDeleteDataAgentSync.java | 51 - .../SyncDeleteDataAgentSync.java | 47 - .../SyncDeleteDataAgentSyncDataagentname.java | 42 - .../SyncDeleteDataAgentSyncString.java | 42 - .../getdataagent/AsyncGetDataAgent.java | 50 - .../getdataagent/SyncGetDataAgent.java | 46 - .../SyncGetDataAgentDataagentname.java | 42 - .../getdataagent/SyncGetDataAgentString.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 51 - .../getiampolicy/SyncGetIamPolicy.java | 48 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 42 - .../getlocation/AsyncGetLocation.java | 45 - .../getlocation/SyncGetLocation.java | 42 - .../AsyncListAccessibleDataAgents.java | 57 - .../AsyncListAccessibleDataAgentsPaged.java | 65 - .../SyncListAccessibleDataAgents.java | 54 - ...cListAccessibleDataAgentsLocationname.java | 45 - .../SyncListAccessibleDataAgentsString.java | 45 - .../listdataagents/AsyncListDataAgents.java | 57 - .../AsyncListDataAgentsPaged.java | 65 - .../listdataagents/SyncListDataAgents.java | 53 - .../SyncListDataAgentsLocationname.java | 44 - .../SyncListDataAgentsString.java | 44 - .../listlocations/AsyncListLocations.java | 54 - .../AsyncListLocationsPaged.java | 62 - .../listlocations/SyncListLocations.java | 50 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcename.java | 43 - .../setiampolicy/SyncSetIamPolicyString.java | 42 - .../updatedataagent/AsyncUpdateDataAgent.java | 53 - .../AsyncUpdateDataAgentLRO.java | 53 - .../updatedataagent/SyncUpdateDataAgent.java | 48 - ...SyncUpdateDataAgentDataagentFieldmask.java | 43 - .../AsyncUpdateDataAgentSync.java | 52 - .../SyncUpdateDataAgentSync.java | 48 - ...UpdateDataAgentSyncDataagentFieldmask.java | 43 - .../createdataagent/SyncCreateDataAgent.java | 54 - .../getdataagent/SyncGetDataAgent.java | 56 - .../datachatservice/chat/AsyncChat.java | 53 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../AsyncCreateConversation.java | 53 - .../SyncCreateConversation.java | 49 - ...rsationLocationnameConversationString.java | 45 - ...eConversationStringConversationString.java | 45 - .../AsyncDeleteConversation.java | 50 - .../SyncDeleteConversation.java | 46 - ...yncDeleteConversationConversationname.java | 42 - .../SyncDeleteConversationString.java | 42 - .../getconversation/AsyncGetConversation.java | 50 - .../getconversation/SyncGetConversation.java | 46 - .../SyncGetConversationConversationname.java | 42 - .../SyncGetConversationString.java | 42 - .../getlocation/AsyncGetLocation.java | 45 - .../getlocation/SyncGetLocation.java | 42 - .../AsyncListConversations.java | 55 - .../AsyncListConversationsPaged.java | 63 - .../SyncListConversations.java | 51 - .../SyncListConversationsLocationname.java | 44 - .../SyncListConversationsString.java | 44 - .../listlocations/AsyncListLocations.java | 54 - .../AsyncListLocationsPaged.java | 62 - .../listlocations/SyncListLocations.java | 50 - .../listmessages/AsyncListMessages.java | 56 - .../listmessages/AsyncListMessagesPaged.java | 63 - .../listmessages/SyncListMessages.java | 52 - .../SyncListMessagesConversationname.java | 44 - .../listmessages/SyncListMessagesString.java | 44 - .../querydata/AsyncQueryData.java | 55 - .../querydata/SyncQueryData.java | 51 - .../SyncCreateConversation.java | 56 - .../createdataagent/SyncCreateDataAgent.java | 54 - .../getdataagent/SyncGetDataAgent.java | 56 - .../SyncCreateConversation.java | 56 - librarian.yaml | 261 +- 131 files changed, 202 insertions(+), 23923 deletions(-) delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceCallableFactory.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceCallableFactory.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceCallableFactory.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceCallableFactory.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientHttpJsonTest.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientTest.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentService.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentServiceImpl.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatService.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocations.java delete mode 100644 java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocationsImpl.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetEndpoint.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgentLRO.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentLocationnameDataagentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentStringDataagentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/AsyncCreateDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncLocationnameDataagentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncStringDataagentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgentLRO.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentDataagentname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/AsyncDeleteDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncDataagentname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/AsyncGetDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentDataagentname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicy.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/AsyncGetLocation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/SyncGetLocation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgents.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgentsPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgents.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsLocationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgents.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgentsPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgents.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsLocationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocationsPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/SyncListLocations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicy.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyResourcename.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgentLRO.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgentDataagentFieldmask.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/AsyncUpdateDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSync.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSyncDataagentFieldmask.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/createdataagent/SyncCreateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/getdataagent/SyncGetDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/chat/AsyncChat.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetEndpoint.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/AsyncCreateConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationLocationnameConversationString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationStringConversationString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/AsyncGetConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationConversationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/AsyncGetLocation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/SyncGetLocation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversationsPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsLocationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocationsPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/SyncListLocations.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessages.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessagesPaged.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessages.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesConversationname.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesString.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservicesettings/createconversation/SyncCreateConversation.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/createdataagent/SyncCreateDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/getdataagent/SyncGetDataAgent.java delete mode 100644 java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/datachatservicestubsettings/createconversation/SyncCreateConversation.java diff --git a/java-geminidataanalytics/.repo-metadata.json b/java-geminidataanalytics/.repo-metadata.json index f17bd9452562..94c20cc76105 100644 --- a/java-geminidataanalytics/.repo-metadata.json +++ b/java-geminidataanalytics/.repo-metadata.json @@ -1,8 +1,8 @@ { "api_shortname": "geminidataanalytics", "name_pretty": "Data Analytics API with Gemini", - "product_documentation": "https://cloud.google.com/gemini/docs/conversational-analytics-api/overview", - "api_description": "Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language.", + "product_documentation": "https://cloud.google.com/gemini/", + "api_description": "The Gemini Data Analytics API enables developers to build intelligent data\nanalytics applications. Leverage AI-powered chat interfaces to allow users\nto interact with and analyze structured data using natural language.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview", "release_level": "preview", "transport": "both", @@ -12,6 +12,5 @@ "distribution_name": "com.google.cloud:google-cloud-geminidataanalytics", "api_id": "geminidataanalytics.googleapis.com", "library_type": "GAPIC_AUTO", - "requires_billing": true, - "rpc_documentation": "https://cloud.google.com/gemini/docs/conversational-analytics-api/reference" + "requires_billing": true } \ No newline at end of file diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 32396fb630b7..63313542c91f 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.20.0 + 0.0.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.20.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.0.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.0.0" ``` ## Authentication @@ -87,7 +87,9 @@ to add `google-cloud-geminidataanalytics` as a dependency in your code. ## About Data Analytics API with Gemini -[Data Analytics API with Gemini][product-docs] Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. +[Data Analytics API with Gemini][product-docs] The Gemini Data Analytics API enables developers to build intelligent data +analytics applications. Leverage AI-powered chat interfaces to allow users +to interact with and analyze structured data using natural language. See the [Data Analytics API with Gemini client library docs][javadocs] to learn how to use this Data Analytics API with Gemini Client Library. @@ -177,11 +179,11 @@ Apache 2.0 - See [LICENSE][license] for more information. Java is a registered trademark of Oracle and/or its affiliates. -[product-docs]: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview +[product-docs]: https://cloud.google.com/gemini/ [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.0.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java deleted file mode 100644 index fb82be065dc0..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java +++ /dev/null @@ -1,2378 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -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.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataAgentServiceStub; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataAgentServiceStubSettings; -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.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service describing handlers for resources. - * - *

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

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

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

ListDataAgents

Lists DataAgents in a given project and location.

- *

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

- *
    - *
  • listDataAgents(ListDataAgentsRequest request) - *

- *

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

- *
    - *
  • listDataAgents(LocationName parent) - *

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

- *
    - *
  • listDataAgentsPagedCallable() - *

  • listDataAgentsCallable() - *

- *

ListAccessibleDataAgents

Lists DataAgents that are accessible to the caller in a given project and location.

- *

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

- *
    - *
  • listAccessibleDataAgents(ListAccessibleDataAgentsRequest request) - *

- *

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

- *
    - *
  • listAccessibleDataAgents(LocationName parent) - *

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

- *
    - *
  • listAccessibleDataAgentsPagedCallable() - *

  • listAccessibleDataAgentsCallable() - *

- *

GetDataAgent

Gets details of a single DataAgent.

- *

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

- *
    - *
  • getDataAgent(GetDataAgentRequest request) - *

- *

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

- *
    - *
  • getDataAgent(DataAgentName name) - *

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

- *
    - *
  • getDataAgentCallable() - *

- *

CreateDataAgent

Creates a new DataAgent in a given project and location.

- *

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

- *
    - *
  • createDataAgentAsync(CreateDataAgentRequest request) - *

- *

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

- *
    - *
  • createDataAgentAsync(LocationName parent, DataAgent dataAgent, String dataAgentId) - *

  • createDataAgentAsync(String parent, DataAgent dataAgent, String dataAgentId) - *

- *

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

- *
    - *
  • createDataAgentOperationCallable() - *

  • createDataAgentCallable() - *

- *

CreateDataAgentSync

Creates a new DataAgent in a given project and location synchronously.

- *

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

- *
    - *
  • createDataAgentSync(CreateDataAgentRequest request) - *

- *

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

- *
    - *
  • createDataAgentSync(LocationName parent, DataAgent dataAgent, String dataAgentId) - *

  • createDataAgentSync(String parent, DataAgent dataAgent, String dataAgentId) - *

- *

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

- *
    - *
  • createDataAgentSyncCallable() - *

- *

UpdateDataAgent

Updates the parameters of a single DataAgent.

- *

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

- *
    - *
  • updateDataAgentAsync(UpdateDataAgentRequest request) - *

- *

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

- *
    - *
  • updateDataAgentAsync(DataAgent dataAgent, FieldMask updateMask) - *

- *

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

- *
    - *
  • updateDataAgentOperationCallable() - *

  • updateDataAgentCallable() - *

- *

UpdateDataAgentSync

Updates the parameters of a single DataAgent synchronously.

- *

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

- *
    - *
  • updateDataAgentSync(UpdateDataAgentRequest request) - *

- *

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

- *
    - *
  • updateDataAgentSync(DataAgent dataAgent, FieldMask updateMask) - *

- *

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

- *
    - *
  • updateDataAgentSyncCallable() - *

- *

DeleteDataAgent

Deletes a single DataAgent.

- *

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

- *
    - *
  • deleteDataAgentAsync(DeleteDataAgentRequest request) - *

- *

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

- *
    - *
  • deleteDataAgentAsync(DataAgentName name) - *

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

- *
    - *
  • deleteDataAgentOperationCallable() - *

  • deleteDataAgentCallable() - *

- *

DeleteDataAgentSync

Deletes a single DataAgent synchronously.

- *

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

- *
    - *
  • deleteDataAgentSync(DeleteDataAgentRequest request) - *

- *

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

- *
    - *
  • deleteDataAgentSync(DataAgentName name) - *

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

- *
    - *
  • deleteDataAgentSyncCallable() - *

- *

GetIamPolicy

Gets the IAM policy for DataAgent

- *

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

- *
    - *
  • getIamPolicy(GetIamPolicyRequest request) - *

- *

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

- *
    - *
  • getIamPolicy(ResourceName resource) - *

  • getIamPolicy(String resource) - *

- *

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

- *
    - *
  • getIamPolicyCallable() - *

- *

SetIamPolicy

Sets the IAM policy for a DataAgent.

- *

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

- *
    - *
  • setIamPolicy(SetIamPolicyRequest request) - *

- *

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

- *
    - *
  • setIamPolicy(ResourceName resource) - *

  • setIamPolicy(String resource) - *

- *

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

- *
    - *
  • setIamPolicyCallable() - *

- *

ListLocations

Lists information about the supported locations for this service.This method can be called in two ways: - *

* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

- *

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 DataAgentServiceSettings 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
- * DataAgentServiceSettings dataAgentServiceSettings =
- *     DataAgentServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DataAgentServiceClient dataAgentServiceClient =
- *     DataAgentServiceClient.create(dataAgentServiceSettings);
- * }
- * - *

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
- * DataAgentServiceSettings dataAgentServiceSettings =
- *     DataAgentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DataAgentServiceClient dataAgentServiceClient =
- *     DataAgentServiceClient.create(dataAgentServiceSettings);
- * }
- * - *

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
- * DataAgentServiceSettings dataAgentServiceSettings =
- *     DataAgentServiceSettings.newHttpJsonBuilder().build();
- * DataAgentServiceClient dataAgentServiceClient =
- *     DataAgentServiceClient.create(dataAgentServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataAgentServiceClient implements BackgroundResource { - private final DataAgentServiceSettings settings; - private final DataAgentServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DataAgentServiceClient with default settings. */ - public static final DataAgentServiceClient create() throws IOException { - return create(DataAgentServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataAgentServiceClient, 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 DataAgentServiceClient create(DataAgentServiceSettings settings) - throws IOException { - return new DataAgentServiceClient(settings); - } - - /** - * Constructs an instance of DataAgentServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(DataAgentServiceSettings). - */ - public static final DataAgentServiceClient create(DataAgentServiceStub stub) { - return new DataAgentServiceClient(stub); - } - - /** - * Constructs an instance of DataAgentServiceClient, 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 DataAgentServiceClient(DataAgentServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataAgentServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DataAgentServiceClient(DataAgentServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final DataAgentServiceSettings getSettings() { - return settings; - } - - public DataAgentServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataAgents in a given project and location. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ListDataAgentsRequest request =
-   *       ListDataAgentsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (DataAgent element : dataAgentServiceClient.listDataAgents(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 ListDataAgentsPagedResponse listDataAgents(ListDataAgentsRequest request) { - return listDataAgentsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataAgents in a given project and location. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ListAccessibleDataAgentsRequest request =
-   *       ListAccessibleDataAgentsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (DataAgent element :
-   *       dataAgentServiceClient.listAccessibleDataAgents(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 ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents( - ListAccessibleDataAgentsRequest request) { - return listAccessibleDataAgentsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataAgents that are accessible to the caller in a given project and location. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
-   *   DataAgent response = dataAgentServiceClient.getDataAgent(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataAgent getDataAgent(DataAgentName name) { - GetDataAgentRequest request = - GetDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getDataAgent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DataAgent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString();
-   *   DataAgent response = dataAgentServiceClient.getDataAgent(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataAgent getDataAgent(String name) { - GetDataAgentRequest request = GetDataAgentRequest.newBuilder().setName(name).build(); - return getDataAgent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DataAgent. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   DataAgent dataAgent = DataAgent.newBuilder().build();
-   *   String dataAgentId = "dataAgentId1752773622";
-   *   DataAgent response =
-   *       dataAgentServiceClient.createDataAgentAsync(parent, dataAgent, dataAgentId).get();
-   * }
-   * }
- * - * @param parent Required. Value for parent. - * @param dataAgent Required. The resource being created. - * @param dataAgentId Optional. Id of the requesting object. Must be unique within the parent. The - * allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will - * auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createDataAgentAsync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDataAgent(dataAgent) - .setDataAgentId(dataAgentId) - .build(); - return createDataAgentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   DataAgent dataAgent = DataAgent.newBuilder().build();
-   *   String dataAgentId = "dataAgentId1752773622";
-   *   DataAgent response =
-   *       dataAgentServiceClient.createDataAgentAsync(parent, dataAgent, dataAgentId).get();
-   * }
-   * }
- * - * @param parent Required. Value for parent. - * @param dataAgent Required. The resource being created. - * @param dataAgentId Optional. Id of the requesting object. Must be unique within the parent. The - * allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will - * auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createDataAgentAsync( - String parent, DataAgent dataAgent, String dataAgentId) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(parent) - .setDataAgent(dataAgent) - .setDataAgentId(dataAgentId) - .build(); - return createDataAgentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   CreateDataAgentRequest request =
-   *       CreateDataAgentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDataAgentId("dataAgentId1752773622")
-   *           .setDataAgent(DataAgent.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       dataAgentServiceClient.createDataAgentCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createDataAgentCallable() { - return stub.createDataAgentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   DataAgent dataAgent = DataAgent.newBuilder().build();
-   *   String dataAgentId = "dataAgentId1752773622";
-   *   DataAgent response =
-   *       dataAgentServiceClient.createDataAgentSync(parent, dataAgent, dataAgentId);
-   * }
-   * }
- * - * @param parent Required. Value for parent. - * @param dataAgent Required. The resource being created. - * @param dataAgentId Optional. Id of the requesting object. Must be unique within the parent. The - * allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will - * auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataAgent createDataAgentSync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDataAgent(dataAgent) - .setDataAgentId(dataAgentId) - .build(); - return createDataAgentSync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   DataAgent dataAgent = DataAgent.newBuilder().build();
-   *   String dataAgentId = "dataAgentId1752773622";
-   *   DataAgent response =
-   *       dataAgentServiceClient.createDataAgentSync(parent, dataAgent, dataAgentId);
-   * }
-   * }
- * - * @param parent Required. Value for parent. - * @param dataAgent Required. The resource being created. - * @param dataAgentId Optional. Id of the requesting object. Must be unique within the parent. The - * allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will - * auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataAgent createDataAgentSync( - String parent, DataAgent dataAgent, String dataAgentId) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(parent) - .setDataAgent(dataAgent) - .setDataAgentId(dataAgentId) - .build(); - return createDataAgentSync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   CreateDataAgentRequest request =
-   *       CreateDataAgentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDataAgentId("dataAgentId1752773622")
-   *           .setDataAgent(DataAgent.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   DataAgent response = dataAgentServiceClient.createDataAgentSync(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 DataAgent createDataAgentSync(CreateDataAgentRequest request) { - return createDataAgentSyncCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DataAgent in a given project and location synchronously. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   UpdateDataAgentRequest request =
-   *       UpdateDataAgentRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setDataAgent(DataAgent.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   DataAgent response = dataAgentServiceClient.updateDataAgentSync(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 DataAgent updateDataAgentSync(UpdateDataAgentRequest request) { - return updateDataAgentSyncCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single DataAgent synchronously. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
-   *   dataAgentServiceClient.deleteDataAgentAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteDataAgentAsync(DataAgentName name) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteDataAgentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DataAgent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString();
-   *   dataAgentServiceClient.deleteDataAgentAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteDataAgentAsync(String name) { - DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name).build(); - return deleteDataAgentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DataAgent. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
-   *   dataAgentServiceClient.deleteDataAgentSync(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataAgentSync(DataAgentName name) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteDataAgentSync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DataAgent synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString();
-   *   dataAgentServiceClient.deleteDataAgentSync(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataAgentSync(String name) { - DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name).build(); - deleteDataAgentSync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DataAgent synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   DeleteDataAgentRequest request =
-   *       DeleteDataAgentRequest.newBuilder()
-   *           .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   dataAgentServiceClient.deleteDataAgentSync(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 deleteDataAgentSync(DeleteDataAgentRequest request) { - deleteDataAgentSyncCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DataAgent synchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   DeleteDataAgentRequest request =
-   *       DeleteDataAgentRequest.newBuilder()
-   *           .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       dataAgentServiceClient.deleteDataAgentSyncCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteDataAgentSyncCallable() { - return stub.deleteDataAgentSyncCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for DataAgent - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
-   *   Policy response = dataAgentServiceClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for DataAgent - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String resource = ProjectName.of("[PROJECT]").toString();
-   *   Policy response = dataAgentServiceClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for DataAgent - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = dataAgentServiceClient.getIamPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for DataAgent - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataAgentServiceClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy for a DataAgent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
-   *   Policy response = dataAgentServiceClient.setIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(ResourceName resource) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy for a DataAgent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   String resource = ProjectName.of("[PROJECT]").toString();
-   *   Policy response = dataAgentServiceClient.setIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource) { - SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy for a DataAgent. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataAgentServiceClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Location element : dataAgentServiceClient.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 can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataAgentServiceClient.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 can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLocationsResponse response =
-   *         dataAgentServiceClient.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 (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   Location response = dataAgentServiceClient.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 (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future = dataAgentServiceClient.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 ListDataAgentsPagedResponse - extends AbstractPagedListResponse< - ListDataAgentsRequest, - ListDataAgentsResponse, - DataAgent, - ListDataAgentsPage, - ListDataAgentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDataAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDataAgentsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDataAgentsPagedResponse(ListDataAgentsPage page) { - super(page, ListDataAgentsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDataAgentsPage - extends AbstractPage< - ListDataAgentsRequest, ListDataAgentsResponse, DataAgent, ListDataAgentsPage> { - - private ListDataAgentsPage( - PageContext context, - ListDataAgentsResponse response) { - super(context, response); - } - - private static ListDataAgentsPage createEmptyPage() { - return new ListDataAgentsPage(null, null); - } - - @Override - protected ListDataAgentsPage createPage( - PageContext context, - ListDataAgentsResponse response) { - return new ListDataAgentsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDataAgentsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDataAgentsRequest, - ListDataAgentsResponse, - DataAgent, - ListDataAgentsPage, - ListDataAgentsFixedSizeCollection> { - - private ListDataAgentsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDataAgentsFixedSizeCollection createEmptyCollection() { - return new ListDataAgentsFixedSizeCollection(null, 0); - } - - @Override - protected ListDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDataAgentsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListAccessibleDataAgentsPagedResponse - extends AbstractPagedListResponse< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - DataAgent, - ListAccessibleDataAgentsPage, - ListAccessibleDataAgentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAccessibleDataAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAccessibleDataAgentsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAccessibleDataAgentsPagedResponse(ListAccessibleDataAgentsPage page) { - super(page, ListAccessibleDataAgentsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAccessibleDataAgentsPage - extends AbstractPage< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - DataAgent, - ListAccessibleDataAgentsPage> { - - private ListAccessibleDataAgentsPage( - PageContext - context, - ListAccessibleDataAgentsResponse response) { - super(context, response); - } - - private static ListAccessibleDataAgentsPage createEmptyPage() { - return new ListAccessibleDataAgentsPage(null, null); - } - - @Override - protected ListAccessibleDataAgentsPage createPage( - PageContext - context, - ListAccessibleDataAgentsResponse response) { - return new ListAccessibleDataAgentsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAccessibleDataAgentsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - DataAgent, - ListAccessibleDataAgentsPage, - ListAccessibleDataAgentsFixedSizeCollection> { - - private ListAccessibleDataAgentsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAccessibleDataAgentsFixedSizeCollection createEmptyCollection() { - return new ListAccessibleDataAgentsFixedSizeCollection(null, 0); - } - - @Override - protected ListAccessibleDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAccessibleDataAgentsFixedSizeCollection(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( - PageContext context, - ListLocationsResponse response) { - super(context, response); - } - - private static ListLocationsPage createEmptyPage() { - return new ListLocationsPage(null, null); - } - - @Override - protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { - return new ListLocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLocationsFixedSizeCollection createEmptyCollection() { - return new ListLocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLocationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java deleted file mode 100644 index b067a5ac7f51..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.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.OperationCallSettings; -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.geminidataanalytics.v1beta.stub.DataAgentServiceStubSettings; -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.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataAgentServiceClient}. - * - *

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

    - *
  • The default service address (geminidataanalytics.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 getDataAgent: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataAgentServiceSettings.Builder dataAgentServiceSettingsBuilder =
- *     DataAgentServiceSettings.newBuilder();
- * dataAgentServiceSettingsBuilder
- *     .getDataAgentSettings()
- *     .setRetrySettings(
- *         dataAgentServiceSettingsBuilder
- *             .getDataAgentSettings()
- *             .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());
- * DataAgentServiceSettings dataAgentServiceSettings = dataAgentServiceSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - * - *

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataAgentServiceSettings.Builder dataAgentServiceSettingsBuilder =
- *     DataAgentServiceSettings.newBuilder();
- * TimedRetryAlgorithm timedRetryAlgorithm =
- *     OperationalTimedPollAlgorithm.create(
- *         RetrySettings.newBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
- *             .setRetryDelayMultiplier(1.5)
- *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
- *             .setTotalTimeoutDuration(Duration.ofHours(24))
- *             .build());
- * dataAgentServiceSettingsBuilder
- *     .createClusterOperationSettings()
- *     .setPollingAlgorithm(timedRetryAlgorithm)
- *     .build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataAgentServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listDataAgents. */ - public PagedCallSettings< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).listDataAgentsSettings(); - } - - /** Returns the object with the settings used for calls to listAccessibleDataAgents. */ - public PagedCallSettings< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).listAccessibleDataAgentsSettings(); - } - - /** Returns the object with the settings used for calls to getDataAgent. */ - public UnaryCallSettings getDataAgentSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).getDataAgentSettings(); - } - - /** Returns the object with the settings used for calls to createDataAgent. */ - public UnaryCallSettings createDataAgentSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).createDataAgentSettings(); - } - - /** Returns the object with the settings used for calls to createDataAgent. */ - public OperationCallSettings - createDataAgentOperationSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).createDataAgentOperationSettings(); - } - - /** Returns the object with the settings used for calls to createDataAgentSync. */ - public UnaryCallSettings createDataAgentSyncSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).createDataAgentSyncSettings(); - } - - /** Returns the object with the settings used for calls to updateDataAgent. */ - public UnaryCallSettings updateDataAgentSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).updateDataAgentSettings(); - } - - /** Returns the object with the settings used for calls to updateDataAgent. */ - public OperationCallSettings - updateDataAgentOperationSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).updateDataAgentOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateDataAgentSync. */ - public UnaryCallSettings updateDataAgentSyncSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).updateDataAgentSyncSettings(); - } - - /** Returns the object with the settings used for calls to deleteDataAgent. */ - public UnaryCallSettings deleteDataAgentSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).deleteDataAgentSettings(); - } - - /** Returns the object with the settings used for calls to deleteDataAgent. */ - public OperationCallSettings - deleteDataAgentOperationSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).deleteDataAgentOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteDataAgentSync. */ - public UnaryCallSettings deleteDataAgentSyncSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).deleteDataAgentSyncSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return ((DataAgentServiceStubSettings) getStubSettings()).getLocationSettings(); - } - - public static final DataAgentServiceSettings create(DataAgentServiceStubSettings stub) - throws IOException { - return new DataAgentServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataAgentServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DataAgentServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DataAgentServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataAgentServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataAgentServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DataAgentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DataAgentServiceStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataAgentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataAgentServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DataAgentServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DataAgentServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(DataAgentServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DataAgentServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DataAgentServiceStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(DataAgentServiceStubSettings.newHttpJsonBuilder()); - } - - public DataAgentServiceStubSettings.Builder getStubSettingsBuilder() { - return ((DataAgentServiceStubSettings.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 listDataAgents. */ - public PagedCallSettings.Builder< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings() { - return getStubSettingsBuilder().listDataAgentsSettings(); - } - - /** Returns the builder for the settings used for calls to listAccessibleDataAgents. */ - public PagedCallSettings.Builder< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings() { - return getStubSettingsBuilder().listAccessibleDataAgentsSettings(); - } - - /** Returns the builder for the settings used for calls to getDataAgent. */ - public UnaryCallSettings.Builder getDataAgentSettings() { - return getStubSettingsBuilder().getDataAgentSettings(); - } - - /** Returns the builder for the settings used for calls to createDataAgent. */ - public UnaryCallSettings.Builder createDataAgentSettings() { - return getStubSettingsBuilder().createDataAgentSettings(); - } - - /** Returns the builder for the settings used for calls to createDataAgent. */ - public OperationCallSettings.Builder - createDataAgentOperationSettings() { - return getStubSettingsBuilder().createDataAgentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createDataAgentSync. */ - public UnaryCallSettings.Builder - createDataAgentSyncSettings() { - return getStubSettingsBuilder().createDataAgentSyncSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataAgent. */ - public UnaryCallSettings.Builder updateDataAgentSettings() { - return getStubSettingsBuilder().updateDataAgentSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataAgent. */ - public OperationCallSettings.Builder - updateDataAgentOperationSettings() { - return getStubSettingsBuilder().updateDataAgentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataAgentSync. */ - public UnaryCallSettings.Builder - updateDataAgentSyncSettings() { - return getStubSettingsBuilder().updateDataAgentSyncSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDataAgent. */ - public UnaryCallSettings.Builder deleteDataAgentSettings() { - return getStubSettingsBuilder().deleteDataAgentSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDataAgent. */ - public OperationCallSettings.Builder - deleteDataAgentOperationSettings() { - return getStubSettingsBuilder().deleteDataAgentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDataAgentSync. */ - public UnaryCallSettings.Builder deleteDataAgentSyncSettings() { - return getStubSettingsBuilder().deleteDataAgentSyncSettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** 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 DataAgentServiceSettings build() throws IOException { - return new DataAgentServiceSettings(this); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java deleted file mode 100644 index 78f44d77f4ef..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ /dev/null @@ -1,1576 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataChatServiceStub; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataChatServiceStubSettings; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service to ask a natural language question on top of BigQuery and Looker - * Studio datasources to get back streamed responses of various kinds to help provide a rich - * conversational answer. - * - *

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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   Conversation conversation = Conversation.newBuilder().build();
- *   String conversationId = "conversationId-1676095234";
- *   Conversation response =
- *       dataChatServiceClient.createConversation(parent, conversation, conversationId);
- * }
- * }
- * - *

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

Chat

Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.

- *

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

- *
    - *
  • chatCallable() - *

- *

CreateConversation

Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.

- *

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

- *
    - *
  • createConversation(CreateConversationRequest request) - *

- *

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

- *
    - *
  • createConversation(LocationName parent, Conversation conversation, String conversationId) - *

  • createConversation(String parent, Conversation conversation, String conversationId) - *

- *

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

- *
    - *
  • createConversationCallable() - *

- *

DeleteConversation

Deletes a conversation.

- *

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

- *
    - *
  • deleteConversation(DeleteConversationRequest request) - *

- *

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

- *
    - *
  • deleteConversation(ConversationName name) - *

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

- *
    - *
  • deleteConversationCallable() - *

- *

GetConversation

Gets details of a single conversation by using conversation id and parent.

- *

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

- *
    - *
  • getConversation(GetConversationRequest request) - *

- *

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

- *
    - *
  • getConversation(ConversationName name) - *

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

- *
    - *
  • getConversationCallable() - *

- *

ListConversations

Lists all conversations for a given parent.

- *

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

- *
    - *
  • listConversations(ListConversationsRequest request) - *

- *

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

- *
    - *
  • listConversations(LocationName parent) - *

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

- *
    - *
  • listConversationsPagedCallable() - *

  • listConversationsCallable() - *

- *

ListMessages

Lists all messages for a given conversation.

- *

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

- *
    - *
  • listMessages(ListMessagesRequest request) - *

- *

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

- *
    - *
  • listMessages(ConversationName parent) - *

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

- *
    - *
  • listMessagesPagedCallable() - *

  • listMessagesCallable() - *

- *

QueryData

Queries data from a natural language user query.

- *

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

- *
    - *
  • queryData(QueryDataRequest request) - *

- *

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

- *
    - *
  • queryDataCallable() - *

- *

ListLocations

Lists information about the supported locations for this service.This method can be called in two ways: - *

* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

- *

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 DataChatServiceSettings 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
- * DataChatServiceSettings dataChatServiceSettings =
- *     DataChatServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DataChatServiceClient dataChatServiceClient =
- *     DataChatServiceClient.create(dataChatServiceSettings);
- * }
- * - *

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
- * DataChatServiceSettings dataChatServiceSettings =
- *     DataChatServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DataChatServiceClient dataChatServiceClient =
- *     DataChatServiceClient.create(dataChatServiceSettings);
- * }
- * - *

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
- * DataChatServiceSettings dataChatServiceSettings =
- *     DataChatServiceSettings.newHttpJsonBuilder().build();
- * DataChatServiceClient dataChatServiceClient =
- *     DataChatServiceClient.create(dataChatServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataChatServiceClient implements BackgroundResource { - private final DataChatServiceSettings settings; - private final DataChatServiceStub stub; - - /** Constructs an instance of DataChatServiceClient with default settings. */ - public static final DataChatServiceClient create() throws IOException { - return create(DataChatServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataChatServiceClient, 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 DataChatServiceClient create(DataChatServiceSettings settings) - throws IOException { - return new DataChatServiceClient(settings); - } - - /** - * Constructs an instance of DataChatServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(DataChatServiceSettings). - */ - public static final DataChatServiceClient create(DataChatServiceStub stub) { - return new DataChatServiceClient(stub); - } - - /** - * Constructs an instance of DataChatServiceClient, 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 DataChatServiceClient(DataChatServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataChatServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected DataChatServiceClient(DataChatServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final DataChatServiceSettings getSettings() { - return settings; - } - - public DataChatServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ChatRequest request =
-   *       ChatRequest.newBuilder()
-   *           .setProject(ProjectName.of("[PROJECT]").toString())
-   *           .setParent("parent-995424086")
-   *           .addAllMessages(new ArrayList())
-   *           .build();
-   *   ServerStream stream = dataChatServiceClient.chatCallable().call(request);
-   *   for (Message response : stream) {
-   *     // Do something when a response is received.
-   *   }
-   * }
-   * }
- */ - public final ServerStreamingCallable chatCallable() { - return stub.chatCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new conversation to persist the conversation history. Each conversation will have - * multiple messages associated with it. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Conversation conversation = Conversation.newBuilder().build();
-   *   String conversationId = "conversationId-1676095234";
-   *   Conversation response =
-   *       dataChatServiceClient.createConversation(parent, conversation, conversationId);
-   * }
-   * }
- * - * @param parent Required. Parent value for CreateConversationRequest. Format: - * `projects/{project}/locations/{location}` - * @param conversation Required. The conversation to create. - * @param conversationId Optional. The conversation id of the conversation to create. Must be - * unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If - * not provided, the server will auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Conversation createConversation( - LocationName parent, Conversation conversation, String conversationId) { - CreateConversationRequest request = - CreateConversationRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setConversation(conversation) - .setConversationId(conversationId) - .build(); - return createConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new conversation to persist the conversation history. Each conversation will have - * multiple messages associated with it. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Conversation conversation = Conversation.newBuilder().build();
-   *   String conversationId = "conversationId-1676095234";
-   *   Conversation response =
-   *       dataChatServiceClient.createConversation(parent, conversation, conversationId);
-   * }
-   * }
- * - * @param parent Required. Parent value for CreateConversationRequest. Format: - * `projects/{project}/locations/{location}` - * @param conversation Required. The conversation to create. - * @param conversationId Optional. The conversation id of the conversation to create. Must be - * unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If - * not provided, the server will auto-generate a value for the id. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Conversation createConversation( - String parent, Conversation conversation, String conversationId) { - CreateConversationRequest request = - CreateConversationRequest.newBuilder() - .setParent(parent) - .setConversation(conversation) - .setConversationId(conversationId) - .build(); - return createConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new conversation to persist the conversation history. Each conversation will have - * multiple messages associated with it. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   CreateConversationRequest request =
-   *       CreateConversationRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setConversationId("conversationId-1676095234")
-   *           .setConversation(Conversation.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Conversation response = dataChatServiceClient.createConversation(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 Conversation createConversation(CreateConversationRequest request) { - return createConversationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new conversation to persist the conversation history. Each conversation will have - * multiple messages associated with it. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   CreateConversationRequest request =
-   *       CreateConversationRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setConversationId("conversationId-1676095234")
-   *           .setConversation(Conversation.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       dataChatServiceClient.createConversationCallable().futureCall(request);
-   *   // Do something.
-   *   Conversation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createConversationCallable() { - return stub.createConversationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
-   *   dataChatServiceClient.deleteConversation(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversation(ConversationName name) { - DeleteConversationRequest request = - DeleteConversationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
-   *   dataChatServiceClient.deleteConversation(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversation(String name) { - DeleteConversationRequest request = - DeleteConversationRequest.newBuilder().setName(name).build(); - deleteConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   DeleteConversationRequest request =
-   *       DeleteConversationRequest.newBuilder()
-   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
-   *           .build();
-   *   dataChatServiceClient.deleteConversation(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 deleteConversation(DeleteConversationRequest request) { - deleteConversationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   DeleteConversationRequest request =
-   *       DeleteConversationRequest.newBuilder()
-   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataChatServiceClient.deleteConversationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteConversationCallable() { - return stub.deleteConversationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single conversation by using conversation id and parent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
-   *   Conversation response = dataChatServiceClient.getConversation(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Conversation getConversation(ConversationName name) { - GetConversationRequest request = - GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single conversation by using conversation id and parent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
-   *   Conversation response = dataChatServiceClient.getConversation(name);
-   * }
-   * }
- * - * @param name Required. Name of the resource. Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Conversation getConversation(String name) { - GetConversationRequest request = GetConversationRequest.newBuilder().setName(name).build(); - return getConversation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single conversation by using conversation id and parent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   GetConversationRequest request =
-   *       GetConversationRequest.newBuilder()
-   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
-   *           .build();
-   *   Conversation response = dataChatServiceClient.getConversation(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 Conversation getConversation(GetConversationRequest request) { - return getConversationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single conversation by using conversation id and parent. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   GetConversationRequest request =
-   *       GetConversationRequest.newBuilder()
-   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataChatServiceClient.getConversationCallable().futureCall(request);
-   *   // Do something.
-   *   Conversation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getConversationCallable() { - return stub.getConversationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all conversations for a given parent. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
-   *   for (StorageMessage element : dataChatServiceClient.listMessages(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The conversation to list messages under. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMessagesPagedResponse listMessages(ConversationName parent) { - ListMessagesRequest request = - ListMessagesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listMessages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all messages for a given conversation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
-   *   for (StorageMessage element : dataChatServiceClient.listMessages(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The conversation to list messages under. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMessagesPagedResponse listMessages(String parent) { - ListMessagesRequest request = ListMessagesRequest.newBuilder().setParent(parent).build(); - return listMessages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all messages for a given conversation. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ListMessagesRequest request =
-   *       ListMessagesRequest.newBuilder()
-   *           .setParent(
-   *               ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListMessagesResponse response = dataChatServiceClient.listMessagesCallable().call(request);
-   *     for (StorageMessage element : response.getMessagesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listMessagesCallable() { - return stub.listMessagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Queries data from a natural language user query. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   QueryDataRequest request =
-   *       QueryDataRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPrompt("prompt-979805852")
-   *           .setContext(QueryDataContext.newBuilder().build())
-   *           .setGenerationOptions(GenerationOptions.newBuilder().build())
-   *           .build();
-   *   QueryDataResponse response = dataChatServiceClient.queryData(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 QueryDataResponse queryData(QueryDataRequest request) { - return queryDataCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Queries data from a natural language user query. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   QueryDataRequest request =
-   *       QueryDataRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPrompt("prompt-979805852")
-   *           .setContext(QueryDataContext.newBuilder().build())
-   *           .setGenerationOptions(GenerationOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataChatServiceClient.queryDataCallable().futureCall(request);
-   *   // Do something.
-   *   QueryDataResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable queryDataCallable() { - return stub.queryDataCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Location element : dataChatServiceClient.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 can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataChatServiceClient.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 can be called in - * two ways: - * - *

* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLocationsResponse response =
-   *         dataChatServiceClient.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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   Location response = dataChatServiceClient.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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future = dataChatServiceClient.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 ListConversationsPagedResponse - extends AbstractPagedListResponse< - ListConversationsRequest, - ListConversationsResponse, - Conversation, - ListConversationsPage, - ListConversationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListConversationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListConversationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListConversationsPagedResponse(ListConversationsPage page) { - super(page, ListConversationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListConversationsPage - extends AbstractPage< - ListConversationsRequest, - ListConversationsResponse, - Conversation, - ListConversationsPage> { - - private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { - super(context, response); - } - - private static ListConversationsPage createEmptyPage() { - return new ListConversationsPage(null, null); - } - - @Override - protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { - return new ListConversationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListConversationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListConversationsRequest, - ListConversationsResponse, - Conversation, - ListConversationsPage, - ListConversationsFixedSizeCollection> { - - private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListConversationsFixedSizeCollection createEmptyCollection() { - return new ListConversationsFixedSizeCollection(null, 0); - } - - @Override - protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListConversationsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListMessagesPagedResponse - extends AbstractPagedListResponse< - ListMessagesRequest, - ListMessagesResponse, - StorageMessage, - ListMessagesPage, - ListMessagesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMessagesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListMessagesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListMessagesPagedResponse(ListMessagesPage page) { - super(page, ListMessagesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListMessagesPage - extends AbstractPage< - ListMessagesRequest, ListMessagesResponse, StorageMessage, ListMessagesPage> { - - private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { - super(context, response); - } - - private static ListMessagesPage createEmptyPage() { - return new ListMessagesPage(null, null); - } - - @Override - protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { - return new ListMessagesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListMessagesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListMessagesRequest, - ListMessagesResponse, - StorageMessage, - ListMessagesPage, - ListMessagesFixedSizeCollection> { - - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListMessagesFixedSizeCollection createEmptyCollection() { - return new ListMessagesFixedSizeCollection(null, 0); - } - - @Override - protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMessagesFixedSizeCollection(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( - PageContext context, - ListLocationsResponse response) { - super(context, response); - } - - private static ListLocationsPage createEmptyPage() { - return new ListLocationsPage(null, null); - } - - @Override - protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { - return new ListLocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLocationsFixedSizeCollection createEmptyCollection() { - return new ListLocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLocationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java deleted file mode 100644 index 7cc3da759bee..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -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.ServerStreamingCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataChatServiceStubSettings; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataChatServiceClient}. - * - *

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

    - *
  • The default service address (geminidataanalytics.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 createConversation: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataChatServiceSettings.Builder dataChatServiceSettingsBuilder =
- *     DataChatServiceSettings.newBuilder();
- * dataChatServiceSettingsBuilder
- *     .createConversationSettings()
- *     .setRetrySettings(
- *         dataChatServiceSettingsBuilder
- *             .createConversationSettings()
- *             .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());
- * DataChatServiceSettings dataChatServiceSettings = dataChatServiceSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataChatServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to chat. */ - public ServerStreamingCallSettings chatSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).chatSettings(); - } - - /** Returns the object with the settings used for calls to createConversation. */ - public UnaryCallSettings createConversationSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).createConversationSettings(); - } - - /** Returns the object with the settings used for calls to deleteConversation. */ - public UnaryCallSettings deleteConversationSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).deleteConversationSettings(); - } - - /** Returns the object with the settings used for calls to getConversation. */ - public UnaryCallSettings getConversationSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).getConversationSettings(); - } - - /** Returns the object with the settings used for calls to listConversations. */ - public PagedCallSettings< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).listConversationsSettings(); - } - - /** Returns the object with the settings used for calls to listMessages. */ - public PagedCallSettings - listMessagesSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).listMessagesSettings(); - } - - /** Returns the object with the settings used for calls to queryData. */ - public UnaryCallSettings queryDataSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).queryDataSettings(); - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return ((DataChatServiceStubSettings) getStubSettings()).getLocationSettings(); - } - - public static final DataChatServiceSettings create(DataChatServiceStubSettings stub) - throws IOException { - return new DataChatServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataChatServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DataChatServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DataChatServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataChatServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataChatServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DataChatServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DataChatServiceStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataChatServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataChatServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DataChatServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DataChatServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(DataChatServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DataChatServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DataChatServiceStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(DataChatServiceStubSettings.newHttpJsonBuilder()); - } - - public DataChatServiceStubSettings.Builder getStubSettingsBuilder() { - return ((DataChatServiceStubSettings.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 chat. */ - public ServerStreamingCallSettings.Builder chatSettings() { - return getStubSettingsBuilder().chatSettings(); - } - - /** Returns the builder for the settings used for calls to createConversation. */ - public UnaryCallSettings.Builder - createConversationSettings() { - return getStubSettingsBuilder().createConversationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteConversation. */ - public UnaryCallSettings.Builder - deleteConversationSettings() { - return getStubSettingsBuilder().deleteConversationSettings(); - } - - /** Returns the builder for the settings used for calls to getConversation. */ - public UnaryCallSettings.Builder - getConversationSettings() { - return getStubSettingsBuilder().getConversationSettings(); - } - - /** Returns the builder for the settings used for calls to listConversations. */ - public PagedCallSettings.Builder< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings() { - return getStubSettingsBuilder().listConversationsSettings(); - } - - /** Returns the builder for the settings used for calls to listMessages. */ - public PagedCallSettings.Builder< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> - listMessagesSettings() { - return getStubSettingsBuilder().listMessagesSettings(); - } - - /** Returns the builder for the settings used for calls to queryData. */ - public UnaryCallSettings.Builder queryDataSettings() { - return getStubSettingsBuilder().queryDataSettings(); - } - - /** 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 DataChatServiceSettings build() throws IOException { - return new DataChatServiceSettings(this); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json deleted file mode 100644 index 194d5d14d96f..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.geminidataanalytics.v1beta", - "libraryPackage": "com.google.cloud.geminidataanalytics.v1beta", - "services": { - "DataAgentService": { - "clients": { - "grpc": { - "libraryClient": "DataAgentServiceClient", - "rpcs": { - "CreateDataAgent": { - "methods": ["createDataAgentAsync", "createDataAgentAsync", "createDataAgentAsync", "createDataAgentOperationCallable", "createDataAgentCallable"] - }, - "CreateDataAgentSync": { - "methods": ["createDataAgentSync", "createDataAgentSync", "createDataAgentSync", "createDataAgentSyncCallable"] - }, - "DeleteDataAgent": { - "methods": ["deleteDataAgentAsync", "deleteDataAgentAsync", "deleteDataAgentAsync", "deleteDataAgentOperationCallable", "deleteDataAgentCallable"] - }, - "DeleteDataAgentSync": { - "methods": ["deleteDataAgentSync", "deleteDataAgentSync", "deleteDataAgentSync", "deleteDataAgentSyncCallable"] - }, - "GetDataAgent": { - "methods": ["getDataAgent", "getDataAgent", "getDataAgent", "getDataAgentCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "ListAccessibleDataAgents": { - "methods": ["listAccessibleDataAgents", "listAccessibleDataAgents", "listAccessibleDataAgents", "listAccessibleDataAgentsPagedCallable", "listAccessibleDataAgentsCallable"] - }, - "ListDataAgents": { - "methods": ["listDataAgents", "listDataAgents", "listDataAgents", "listDataAgentsPagedCallable", "listDataAgentsCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "UpdateDataAgent": { - "methods": ["updateDataAgentAsync", "updateDataAgentAsync", "updateDataAgentOperationCallable", "updateDataAgentCallable"] - }, - "UpdateDataAgentSync": { - "methods": ["updateDataAgentSync", "updateDataAgentSync", "updateDataAgentSyncCallable"] - } - } - } - } - }, - "DataChatService": { - "clients": { - "grpc": { - "libraryClient": "DataChatServiceClient", - "rpcs": { - "Chat": { - "methods": ["chatCallable"] - }, - "CreateConversation": { - "methods": ["createConversation", "createConversation", "createConversation", "createConversationCallable"] - }, - "DeleteConversation": { - "methods": ["deleteConversation", "deleteConversation", "deleteConversation", "deleteConversationCallable"] - }, - "GetConversation": { - "methods": ["getConversation", "getConversation", "getConversation", "getConversationCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "ListConversations": { - "methods": ["listConversations", "listConversations", "listConversations", "listConversationsPagedCallable", "listConversationsCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "ListMessages": { - "methods": ["listMessages", "listMessages", "listMessages", "listMessagesPagedCallable", "listMessagesCallable"] - }, - "QueryData": { - "methods": ["queryData", "queryDataCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java deleted file mode 100644 index 202a5f6e00fa..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Data Analytics API with Gemini - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= DataAgentServiceClient ======================= - * - *

Service Description: Service describing handlers for resources. - * - *

Sample for DataAgentServiceClient: - * - *

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

======================= DataChatServiceClient ======================= - * - *

Service Description: Service to ask a natural language question on top of BigQuery and Looker - * Studio datasources to get back streamed responses of various kinds to help provide a rich - * conversational answer. - * - *

Sample for DataChatServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   Conversation conversation = Conversation.newBuilder().build();
- *   String conversationId = "conversationId-1676095234";
- *   Conversation response =
- *       dataChatServiceClient.createConversation(parent, conversation, conversationId);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.geminidataanalytics.v1beta; - -import javax.annotation.Generated; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java deleted file mode 100644 index 3e1e7389b7dc..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListLocationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -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.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the DataAgentService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DataAgentServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable - listDataAgentsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listDataAgentsPagedCallable()"); - } - - public UnaryCallable listDataAgentsCallable() { - throw new UnsupportedOperationException("Not implemented: listDataAgentsCallable()"); - } - - public UnaryCallable - listAccessibleDataAgentsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listAccessibleDataAgentsPagedCallable()"); - } - - public UnaryCallable - listAccessibleDataAgentsCallable() { - throw new UnsupportedOperationException("Not implemented: listAccessibleDataAgentsCallable()"); - } - - public UnaryCallable getDataAgentCallable() { - throw new UnsupportedOperationException("Not implemented: getDataAgentCallable()"); - } - - public OperationCallable - createDataAgentOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createDataAgentOperationCallable()"); - } - - public UnaryCallable createDataAgentCallable() { - throw new UnsupportedOperationException("Not implemented: createDataAgentCallable()"); - } - - public UnaryCallable createDataAgentSyncCallable() { - throw new UnsupportedOperationException("Not implemented: createDataAgentSyncCallable()"); - } - - public OperationCallable - updateDataAgentOperationCallable() { - throw new UnsupportedOperationException("Not implemented: updateDataAgentOperationCallable()"); - } - - public UnaryCallable updateDataAgentCallable() { - throw new UnsupportedOperationException("Not implemented: updateDataAgentCallable()"); - } - - public UnaryCallable updateDataAgentSyncCallable() { - throw new UnsupportedOperationException("Not implemented: updateDataAgentSyncCallable()"); - } - - public OperationCallable - deleteDataAgentOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDataAgentOperationCallable()"); - } - - public UnaryCallable deleteDataAgentCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDataAgentCallable()"); - } - - public UnaryCallable deleteDataAgentSyncCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDataAgentSyncCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java deleted file mode 100644 index 7099372e0235..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java +++ /dev/null @@ -1,1020 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.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.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.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.OperationCallSettings; -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.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -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.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.time.Duration; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataAgentServiceStub}. - * - *

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

    - *
  • The default service address (geminidataanalytics.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 getDataAgent: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataAgentServiceStubSettings.Builder dataAgentServiceSettingsBuilder =
- *     DataAgentServiceStubSettings.newBuilder();
- * dataAgentServiceSettingsBuilder
- *     .getDataAgentSettings()
- *     .setRetrySettings(
- *         dataAgentServiceSettingsBuilder
- *             .getDataAgentSettings()
- *             .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());
- * DataAgentServiceStubSettings dataAgentServiceSettings = dataAgentServiceSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - * - *

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataAgentServiceStubSettings.Builder dataAgentServiceSettingsBuilder =
- *     DataAgentServiceStubSettings.newBuilder();
- * TimedRetryAlgorithm timedRetryAlgorithm =
- *     OperationalTimedPollAlgorithm.create(
- *         RetrySettings.newBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
- *             .setRetryDelayMultiplier(1.5)
- *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
- *             .setTotalTimeoutDuration(Duration.ofHours(24))
- *             .build());
- * dataAgentServiceSettingsBuilder
- *     .createClusterOperationSettings()
- *     .setPollingAlgorithm(timedRetryAlgorithm)
- *     .build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class DataAgentServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings; - private final PagedCallSettings< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings; - private final UnaryCallSettings getDataAgentSettings; - private final UnaryCallSettings createDataAgentSettings; - private final OperationCallSettings - createDataAgentOperationSettings; - private final UnaryCallSettings createDataAgentSyncSettings; - private final UnaryCallSettings updateDataAgentSettings; - private final OperationCallSettings - updateDataAgentOperationSettings; - private final UnaryCallSettings updateDataAgentSyncSettings; - private final UnaryCallSettings deleteDataAgentSettings; - private final OperationCallSettings - deleteDataAgentOperationSettings; - private final UnaryCallSettings deleteDataAgentSyncSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final PagedCallSettings< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings; - private final UnaryCallSettings getLocationSettings; - - private static final PagedListDescriptor - LIST_DATA_AGENTS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDataAgentsRequest injectToken(ListDataAgentsRequest payload, String token) { - return ListDataAgentsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListDataAgentsRequest injectPageSize( - ListDataAgentsRequest payload, int pageSize) { - return ListDataAgentsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListDataAgentsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListDataAgentsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListDataAgentsResponse payload) { - return payload.getDataAgentsList(); - } - }; - - private static final PagedListDescriptor< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> - LIST_ACCESSIBLE_DATA_AGENTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAccessibleDataAgentsRequest injectToken( - ListAccessibleDataAgentsRequest payload, String token) { - return ListAccessibleDataAgentsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListAccessibleDataAgentsRequest injectPageSize( - ListAccessibleDataAgentsRequest payload, int pageSize) { - return ListAccessibleDataAgentsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAccessibleDataAgentsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAccessibleDataAgentsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAccessibleDataAgentsResponse payload) { - return payload.getDataAgentsList(); - } - }; - - 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< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - LIST_DATA_AGENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDataAgentsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_DATA_AGENTS_PAGE_STR_DESC, request, context); - return ListDataAgentsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - LIST_ACCESSIBLE_DATA_AGENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAccessibleDataAgentsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> - pageContext = - PageContext.create( - callable, LIST_ACCESSIBLE_DATA_AGENTS_PAGE_STR_DESC, request, context); - return ListAccessibleDataAgentsPagedResponse.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 listDataAgents. */ - public PagedCallSettings< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings() { - return listDataAgentsSettings; - } - - /** Returns the object with the settings used for calls to listAccessibleDataAgents. */ - public PagedCallSettings< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings() { - return listAccessibleDataAgentsSettings; - } - - /** Returns the object with the settings used for calls to getDataAgent. */ - public UnaryCallSettings getDataAgentSettings() { - return getDataAgentSettings; - } - - /** Returns the object with the settings used for calls to createDataAgent. */ - public UnaryCallSettings createDataAgentSettings() { - return createDataAgentSettings; - } - - /** Returns the object with the settings used for calls to createDataAgent. */ - public OperationCallSettings - createDataAgentOperationSettings() { - return createDataAgentOperationSettings; - } - - /** Returns the object with the settings used for calls to createDataAgentSync. */ - public UnaryCallSettings createDataAgentSyncSettings() { - return createDataAgentSyncSettings; - } - - /** Returns the object with the settings used for calls to updateDataAgent. */ - public UnaryCallSettings updateDataAgentSettings() { - return updateDataAgentSettings; - } - - /** Returns the object with the settings used for calls to updateDataAgent. */ - public OperationCallSettings - updateDataAgentOperationSettings() { - return updateDataAgentOperationSettings; - } - - /** Returns the object with the settings used for calls to updateDataAgentSync. */ - public UnaryCallSettings updateDataAgentSyncSettings() { - return updateDataAgentSyncSettings; - } - - /** Returns the object with the settings used for calls to deleteDataAgent. */ - public UnaryCallSettings deleteDataAgentSettings() { - return deleteDataAgentSettings; - } - - /** Returns the object with the settings used for calls to deleteDataAgent. */ - public OperationCallSettings - deleteDataAgentOperationSettings() { - return deleteDataAgentOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteDataAgentSync. */ - public UnaryCallSettings deleteDataAgentSyncSettings() { - return deleteDataAgentSyncSettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** 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 DataAgentServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataAgentServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataAgentServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "geminidataanalytics"; - } - - /** 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 "geminidataanalytics.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "geminidataanalytics.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(DataAgentServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataAgentServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataAgentServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataAgentServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listDataAgentsSettings = settingsBuilder.listDataAgentsSettings().build(); - listAccessibleDataAgentsSettings = settingsBuilder.listAccessibleDataAgentsSettings().build(); - getDataAgentSettings = settingsBuilder.getDataAgentSettings().build(); - createDataAgentSettings = settingsBuilder.createDataAgentSettings().build(); - createDataAgentOperationSettings = settingsBuilder.createDataAgentOperationSettings().build(); - createDataAgentSyncSettings = settingsBuilder.createDataAgentSyncSettings().build(); - updateDataAgentSettings = settingsBuilder.updateDataAgentSettings().build(); - updateDataAgentOperationSettings = settingsBuilder.updateDataAgentOperationSettings().build(); - updateDataAgentSyncSettings = settingsBuilder.updateDataAgentSyncSettings().build(); - deleteDataAgentSettings = settingsBuilder.deleteDataAgentSettings().build(); - deleteDataAgentOperationSettings = settingsBuilder.deleteDataAgentOperationSettings().build(); - deleteDataAgentSyncSettings = settingsBuilder.deleteDataAgentSyncSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-geminidataanalytics") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for DataAgentServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings; - private final PagedCallSettings.Builder< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings; - private final UnaryCallSettings.Builder getDataAgentSettings; - private final UnaryCallSettings.Builder - createDataAgentSettings; - private final OperationCallSettings.Builder< - CreateDataAgentRequest, DataAgent, OperationMetadata> - createDataAgentOperationSettings; - private final UnaryCallSettings.Builder - createDataAgentSyncSettings; - private final UnaryCallSettings.Builder - updateDataAgentSettings; - private final OperationCallSettings.Builder< - UpdateDataAgentRequest, DataAgent, OperationMetadata> - updateDataAgentOperationSettings; - private final UnaryCallSettings.Builder - updateDataAgentSyncSettings; - private final UnaryCallSettings.Builder - deleteDataAgentSettings; - private final OperationCallSettings.Builder - deleteDataAgentOperationSettings; - private final UnaryCallSettings.Builder - deleteDataAgentSyncSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - 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.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) - .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) - .setTotalTimeoutDuration(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listDataAgentsSettings = PagedCallSettings.newBuilder(LIST_DATA_AGENTS_PAGE_STR_FACT); - listAccessibleDataAgentsSettings = - PagedCallSettings.newBuilder(LIST_ACCESSIBLE_DATA_AGENTS_PAGE_STR_FACT); - getDataAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDataAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDataAgentOperationSettings = OperationCallSettings.newBuilder(); - createDataAgentSyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataAgentOperationSettings = OperationCallSettings.newBuilder(); - updateDataAgentSyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDataAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDataAgentOperationSettings = OperationCallSettings.newBuilder(); - deleteDataAgentSyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listDataAgentsSettings, - listAccessibleDataAgentsSettings, - getDataAgentSettings, - createDataAgentSettings, - createDataAgentSyncSettings, - updateDataAgentSettings, - updateDataAgentSyncSettings, - deleteDataAgentSettings, - deleteDataAgentSyncSettings, - getIamPolicySettings, - setIamPolicySettings, - listLocationsSettings, - getLocationSettings); - initDefaults(this); - } - - protected Builder(DataAgentServiceStubSettings settings) { - super(settings); - - listDataAgentsSettings = settings.listDataAgentsSettings.toBuilder(); - listAccessibleDataAgentsSettings = settings.listAccessibleDataAgentsSettings.toBuilder(); - getDataAgentSettings = settings.getDataAgentSettings.toBuilder(); - createDataAgentSettings = settings.createDataAgentSettings.toBuilder(); - createDataAgentOperationSettings = settings.createDataAgentOperationSettings.toBuilder(); - createDataAgentSyncSettings = settings.createDataAgentSyncSettings.toBuilder(); - updateDataAgentSettings = settings.updateDataAgentSettings.toBuilder(); - updateDataAgentOperationSettings = settings.updateDataAgentOperationSettings.toBuilder(); - updateDataAgentSyncSettings = settings.updateDataAgentSyncSettings.toBuilder(); - deleteDataAgentSettings = settings.deleteDataAgentSettings.toBuilder(); - deleteDataAgentOperationSettings = settings.deleteDataAgentOperationSettings.toBuilder(); - deleteDataAgentSyncSettings = settings.deleteDataAgentSyncSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listDataAgentsSettings, - listAccessibleDataAgentsSettings, - getDataAgentSettings, - createDataAgentSettings, - createDataAgentSyncSettings, - updateDataAgentSettings, - updateDataAgentSyncSettings, - deleteDataAgentSettings, - deleteDataAgentSyncSettings, - getIamPolicySettings, - setIamPolicySettings, - 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 - .listDataAgentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listAccessibleDataAgentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataAgentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDataAgentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDataAgentSyncSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataAgentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataAgentSyncSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDataAgentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDataAgentSyncSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setIamPolicySettings() - .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")) - .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")); - - builder - .createDataAgentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DataAgent.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) - .setInitialRpcTimeoutDuration(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(300000L)) - .build())); - - builder - .updateDataAgentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DataAgent.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) - .setInitialRpcTimeoutDuration(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteDataAgentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) - .setInitialRpcTimeoutDuration(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(300000L)) - .build())); - - 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 listDataAgents. */ - public PagedCallSettings.Builder< - ListDataAgentsRequest, ListDataAgentsResponse, ListDataAgentsPagedResponse> - listDataAgentsSettings() { - return listDataAgentsSettings; - } - - /** Returns the builder for the settings used for calls to listAccessibleDataAgents. */ - public PagedCallSettings.Builder< - ListAccessibleDataAgentsRequest, - ListAccessibleDataAgentsResponse, - ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsSettings() { - return listAccessibleDataAgentsSettings; - } - - /** Returns the builder for the settings used for calls to getDataAgent. */ - public UnaryCallSettings.Builder getDataAgentSettings() { - return getDataAgentSettings; - } - - /** Returns the builder for the settings used for calls to createDataAgent. */ - public UnaryCallSettings.Builder createDataAgentSettings() { - return createDataAgentSettings; - } - - /** Returns the builder for the settings used for calls to createDataAgent. */ - public OperationCallSettings.Builder - createDataAgentOperationSettings() { - return createDataAgentOperationSettings; - } - - /** Returns the builder for the settings used for calls to createDataAgentSync. */ - public UnaryCallSettings.Builder - createDataAgentSyncSettings() { - return createDataAgentSyncSettings; - } - - /** Returns the builder for the settings used for calls to updateDataAgent. */ - public UnaryCallSettings.Builder updateDataAgentSettings() { - return updateDataAgentSettings; - } - - /** Returns the builder for the settings used for calls to updateDataAgent. */ - public OperationCallSettings.Builder - updateDataAgentOperationSettings() { - return updateDataAgentOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateDataAgentSync. */ - public UnaryCallSettings.Builder - updateDataAgentSyncSettings() { - return updateDataAgentSyncSettings; - } - - /** Returns the builder for the settings used for calls to deleteDataAgent. */ - public UnaryCallSettings.Builder deleteDataAgentSettings() { - return deleteDataAgentSettings; - } - - /** Returns the builder for the settings used for calls to deleteDataAgent. */ - public OperationCallSettings.Builder - deleteDataAgentOperationSettings() { - return deleteDataAgentOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteDataAgentSync. */ - public UnaryCallSettings.Builder deleteDataAgentSyncSettings() { - return deleteDataAgentSyncSettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** 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 DataAgentServiceStubSettings build() throws IOException { - return new DataAgentServiceStubSettings(this); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java deleted file mode 100644 index eaac65bc0c6b..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; -import com.google.cloud.geminidataanalytics.v1beta.Message; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the DataChatService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DataChatServiceStub implements BackgroundResource { - - public ServerStreamingCallable chatCallable() { - throw new UnsupportedOperationException("Not implemented: chatCallable()"); - } - - public UnaryCallable createConversationCallable() { - throw new UnsupportedOperationException("Not implemented: createConversationCallable()"); - } - - public UnaryCallable deleteConversationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteConversationCallable()"); - } - - public UnaryCallable getConversationCallable() { - throw new UnsupportedOperationException("Not implemented: getConversationCallable()"); - } - - public UnaryCallable - listConversationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listConversationsPagedCallable()"); - } - - public UnaryCallable - listConversationsCallable() { - throw new UnsupportedOperationException("Not implemented: listConversationsCallable()"); - } - - public UnaryCallable listMessagesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listMessagesPagedCallable()"); - } - - public UnaryCallable listMessagesCallable() { - throw new UnsupportedOperationException("Not implemented: listMessagesCallable()"); - } - - public UnaryCallable queryDataCallable() { - throw new UnsupportedOperationException("Not implemented: queryDataCallable()"); - } - - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java deleted file mode 100644 index 9605e9977dd7..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java +++ /dev/null @@ -1,750 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -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.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; -import com.google.cloud.geminidataanalytics.v1beta.Message; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataChatServiceStub}. - * - *

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

    - *
  • The default service address (geminidataanalytics.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 createConversation: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataChatServiceStubSettings.Builder dataChatServiceSettingsBuilder =
- *     DataChatServiceStubSettings.newBuilder();
- * dataChatServiceSettingsBuilder
- *     .createConversationSettings()
- *     .setRetrySettings(
- *         dataChatServiceSettingsBuilder
- *             .createConversationSettings()
- *             .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());
- * DataChatServiceStubSettings dataChatServiceSettings = dataChatServiceSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@BetaApi -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class DataChatServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final ServerStreamingCallSettings chatSettings; - private final UnaryCallSettings - createConversationSettings; - private final UnaryCallSettings deleteConversationSettings; - private final UnaryCallSettings getConversationSettings; - private final PagedCallSettings< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings; - private final PagedCallSettings< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> - listMessagesSettings; - private final UnaryCallSettings queryDataSettings; - private final PagedCallSettings< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings; - private final UnaryCallSettings getLocationSettings; - - private static final PagedListDescriptor< - ListConversationsRequest, ListConversationsResponse, Conversation> - LIST_CONVERSATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListConversationsRequest, ListConversationsResponse, Conversation>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListConversationsRequest injectToken( - ListConversationsRequest payload, String token) { - return ListConversationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListConversationsRequest injectPageSize( - ListConversationsRequest payload, int pageSize) { - return ListConversationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListConversationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListConversationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListConversationsResponse payload) { - return payload.getConversationsList(); - } - }; - - private static final PagedListDescriptor< - ListMessagesRequest, ListMessagesResponse, StorageMessage> - LIST_MESSAGES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListMessagesRequest injectToken(ListMessagesRequest payload, String token) { - return ListMessagesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListMessagesRequest injectPageSize(ListMessagesRequest payload, int pageSize) { - return ListMessagesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListMessagesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListMessagesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListMessagesResponse payload) { - return payload.getMessagesList(); - } - }; - - 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< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - LIST_CONVERSATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListConversationsRequest, - ListConversationsResponse, - ListConversationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListConversationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_CONVERSATIONS_PAGE_STR_DESC, request, context); - return ListConversationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> - LIST_MESSAGES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListMessagesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_MESSAGES_PAGE_STR_DESC, request, context); - return ListMessagesPagedResponse.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 chat. */ - public ServerStreamingCallSettings chatSettings() { - return chatSettings; - } - - /** Returns the object with the settings used for calls to createConversation. */ - public UnaryCallSettings createConversationSettings() { - return createConversationSettings; - } - - /** Returns the object with the settings used for calls to deleteConversation. */ - public UnaryCallSettings deleteConversationSettings() { - return deleteConversationSettings; - } - - /** Returns the object with the settings used for calls to getConversation. */ - public UnaryCallSettings getConversationSettings() { - return getConversationSettings; - } - - /** Returns the object with the settings used for calls to listConversations. */ - public PagedCallSettings< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings() { - return listConversationsSettings; - } - - /** Returns the object with the settings used for calls to listMessages. */ - public PagedCallSettings - listMessagesSettings() { - return listMessagesSettings; - } - - /** Returns the object with the settings used for calls to queryData. */ - public UnaryCallSettings queryDataSettings() { - return queryDataSettings; - } - - /** 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 DataChatServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataChatServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataChatServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "geminidataanalytics"; - } - - /** 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 "geminidataanalytics.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "geminidataanalytics.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(DataChatServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataChatServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataChatServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataChatServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - chatSettings = settingsBuilder.chatSettings().build(); - createConversationSettings = settingsBuilder.createConversationSettings().build(); - deleteConversationSettings = settingsBuilder.deleteConversationSettings().build(); - getConversationSettings = settingsBuilder.getConversationSettings().build(); - listConversationsSettings = settingsBuilder.listConversationsSettings().build(); - listMessagesSettings = settingsBuilder.listMessagesSettings().build(); - queryDataSettings = settingsBuilder.queryDataSettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-geminidataanalytics") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for DataChatServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final ServerStreamingCallSettings.Builder chatSettings; - private final UnaryCallSettings.Builder - createConversationSettings; - private final UnaryCallSettings.Builder - deleteConversationSettings; - private final UnaryCallSettings.Builder - getConversationSettings; - private final PagedCallSettings.Builder< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings; - private final PagedCallSettings.Builder< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> - listMessagesSettings; - private final UnaryCallSettings.Builder queryDataSettings; - 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.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) - .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) - .setTotalTimeoutDuration(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - chatSettings = ServerStreamingCallSettings.newBuilder(); - createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); - listMessagesSettings = PagedCallSettings.newBuilder(LIST_MESSAGES_PAGE_STR_FACT); - queryDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createConversationSettings, - deleteConversationSettings, - getConversationSettings, - listConversationsSettings, - listMessagesSettings, - queryDataSettings, - listLocationsSettings, - getLocationSettings); - initDefaults(this); - } - - protected Builder(DataChatServiceStubSettings settings) { - super(settings); - - chatSettings = settings.chatSettings.toBuilder(); - createConversationSettings = settings.createConversationSettings.toBuilder(); - deleteConversationSettings = settings.deleteConversationSettings.toBuilder(); - getConversationSettings = settings.getConversationSettings.toBuilder(); - listConversationsSettings = settings.listConversationsSettings.toBuilder(); - listMessagesSettings = settings.listMessagesSettings.toBuilder(); - queryDataSettings = settings.queryDataSettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createConversationSettings, - deleteConversationSettings, - getConversationSettings, - listConversationsSettings, - listMessagesSettings, - queryDataSettings, - 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 - .chatSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createConversationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteConversationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getConversationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listConversationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listMessagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .queryDataSettings() - .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")) - .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 chat. */ - public ServerStreamingCallSettings.Builder chatSettings() { - return chatSettings; - } - - /** Returns the builder for the settings used for calls to createConversation. */ - public UnaryCallSettings.Builder - createConversationSettings() { - return createConversationSettings; - } - - /** Returns the builder for the settings used for calls to deleteConversation. */ - public UnaryCallSettings.Builder - deleteConversationSettings() { - return deleteConversationSettings; - } - - /** Returns the builder for the settings used for calls to getConversation. */ - public UnaryCallSettings.Builder - getConversationSettings() { - return getConversationSettings; - } - - /** Returns the builder for the settings used for calls to listConversations. */ - public PagedCallSettings.Builder< - ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> - listConversationsSettings() { - return listConversationsSettings; - } - - /** Returns the builder for the settings used for calls to listMessages. */ - public PagedCallSettings.Builder< - ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> - listMessagesSettings() { - return listMessagesSettings; - } - - /** Returns the builder for the settings used for calls to queryData. */ - public UnaryCallSettings.Builder queryDataSettings() { - return queryDataSettings; - } - - /** 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 DataChatServiceStubSettings build() throws IOException { - return new DataChatServiceStubSettings(this); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceCallableFactory.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceCallableFactory.java deleted file mode 100644 index 96977d824145..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the DataAgentService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataAgentServiceCallableFactory 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceStub.java deleted file mode 100644 index d730ed177915..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataAgentServiceStub.java +++ /dev/null @@ -1,656 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.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.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -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.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the DataAgentService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataAgentServiceStub extends DataAgentServiceStub { - private static final MethodDescriptor - listDataAgentsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/ListDataAgents") - .setRequestMarshaller( - ProtoUtils.marshaller(ListDataAgentsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListDataAgentsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse> - listAccessibleDataAgentsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/ListAccessibleDataAgents") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAccessibleDataAgentsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccessibleDataAgentsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getDataAgentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/GetDataAgent") - .setRequestMarshaller(ProtoUtils.marshaller(GetDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataAgent.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createDataAgentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createDataAgentSyncMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgentSync") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataAgent.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateDataAgentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgent") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateDataAgentSyncMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgentSync") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataAgent.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteDataAgentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgent") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteDataAgentSyncMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgentSync") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteDataAgentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.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 listDataAgentsCallable; - private final UnaryCallable - listDataAgentsPagedCallable; - private final UnaryCallable - listAccessibleDataAgentsCallable; - private final UnaryCallable< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsPagedCallable; - private final UnaryCallable getDataAgentCallable; - private final UnaryCallable createDataAgentCallable; - private final OperationCallable - createDataAgentOperationCallable; - private final UnaryCallable createDataAgentSyncCallable; - private final UnaryCallable updateDataAgentCallable; - private final OperationCallable - updateDataAgentOperationCallable; - private final UnaryCallable updateDataAgentSyncCallable; - private final UnaryCallable deleteDataAgentCallable; - private final OperationCallable - deleteDataAgentOperationCallable; - private final UnaryCallable deleteDataAgentSyncCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - 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 GrpcDataAgentServiceStub create(DataAgentServiceStubSettings settings) - throws IOException { - return new GrpcDataAgentServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataAgentServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcDataAgentServiceStub( - DataAgentServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataAgentServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataAgentServiceStub( - DataAgentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataAgentServiceStub, 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 GrpcDataAgentServiceStub( - DataAgentServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcDataAgentServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataAgentServiceStub, 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 GrpcDataAgentServiceStub( - DataAgentServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listDataAgentsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listDataAgentsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - listAccessibleDataAgentsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listAccessibleDataAgentsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getDataAgentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataAgentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createDataAgentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataAgentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings createDataAgentSyncTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataAgentSyncMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateDataAgentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataAgentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("data_agent.name", String.valueOf(request.getDataAgent().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateDataAgentSyncTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataAgentSyncMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("data_agent.name", String.valueOf(request.getDataAgent().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteDataAgentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataAgentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings deleteDataAgentSyncTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataAgentSyncMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getResource()) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getResource()) - .build(); - 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.listDataAgentsCallable = - callableFactory.createUnaryCallable( - listDataAgentsTransportSettings, settings.listDataAgentsSettings(), clientContext); - this.listDataAgentsPagedCallable = - callableFactory.createPagedCallable( - listDataAgentsTransportSettings, settings.listDataAgentsSettings(), clientContext); - this.listAccessibleDataAgentsCallable = - callableFactory.createUnaryCallable( - listAccessibleDataAgentsTransportSettings, - settings.listAccessibleDataAgentsSettings(), - clientContext); - this.listAccessibleDataAgentsPagedCallable = - callableFactory.createPagedCallable( - listAccessibleDataAgentsTransportSettings, - settings.listAccessibleDataAgentsSettings(), - clientContext); - this.getDataAgentCallable = - callableFactory.createUnaryCallable( - getDataAgentTransportSettings, settings.getDataAgentSettings(), clientContext); - this.createDataAgentCallable = - callableFactory.createUnaryCallable( - createDataAgentTransportSettings, settings.createDataAgentSettings(), clientContext); - this.createDataAgentOperationCallable = - callableFactory.createOperationCallable( - createDataAgentTransportSettings, - settings.createDataAgentOperationSettings(), - clientContext, - operationsStub); - this.createDataAgentSyncCallable = - callableFactory.createUnaryCallable( - createDataAgentSyncTransportSettings, - settings.createDataAgentSyncSettings(), - clientContext); - this.updateDataAgentCallable = - callableFactory.createUnaryCallable( - updateDataAgentTransportSettings, settings.updateDataAgentSettings(), clientContext); - this.updateDataAgentOperationCallable = - callableFactory.createOperationCallable( - updateDataAgentTransportSettings, - settings.updateDataAgentOperationSettings(), - clientContext, - operationsStub); - this.updateDataAgentSyncCallable = - callableFactory.createUnaryCallable( - updateDataAgentSyncTransportSettings, - settings.updateDataAgentSyncSettings(), - clientContext); - this.deleteDataAgentCallable = - callableFactory.createUnaryCallable( - deleteDataAgentTransportSettings, settings.deleteDataAgentSettings(), clientContext); - this.deleteDataAgentOperationCallable = - callableFactory.createOperationCallable( - deleteDataAgentTransportSettings, - settings.deleteDataAgentOperationSettings(), - clientContext, - operationsStub); - this.deleteDataAgentSyncCallable = - callableFactory.createUnaryCallable( - deleteDataAgentSyncTransportSettings, - settings.deleteDataAgentSyncSettings(), - clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), 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 listDataAgentsCallable() { - return listDataAgentsCallable; - } - - @Override - public UnaryCallable - listDataAgentsPagedCallable() { - return listDataAgentsPagedCallable; - } - - @Override - public UnaryCallable - listAccessibleDataAgentsCallable() { - return listAccessibleDataAgentsCallable; - } - - @Override - public UnaryCallable - listAccessibleDataAgentsPagedCallable() { - return listAccessibleDataAgentsPagedCallable; - } - - @Override - public UnaryCallable getDataAgentCallable() { - return getDataAgentCallable; - } - - @Override - public UnaryCallable createDataAgentCallable() { - return createDataAgentCallable; - } - - @Override - public OperationCallable - createDataAgentOperationCallable() { - return createDataAgentOperationCallable; - } - - @Override - public UnaryCallable createDataAgentSyncCallable() { - return createDataAgentSyncCallable; - } - - @Override - public UnaryCallable updateDataAgentCallable() { - return updateDataAgentCallable; - } - - @Override - public OperationCallable - updateDataAgentOperationCallable() { - return updateDataAgentOperationCallable; - } - - @Override - public UnaryCallable updateDataAgentSyncCallable() { - return updateDataAgentSyncCallable; - } - - @Override - public UnaryCallable deleteDataAgentCallable() { - return deleteDataAgentCallable; - } - - @Override - public OperationCallable - deleteDataAgentOperationCallable() { - return deleteDataAgentOperationCallable; - } - - @Override - public UnaryCallable deleteDataAgentSyncCallable() { - return deleteDataAgentSyncCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceCallableFactory.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceCallableFactory.java deleted file mode 100644 index 4315f50851d1..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the DataChatService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataChatServiceCallableFactory 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java deleted file mode 100644 index 06934ec075af..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -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.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; -import com.google.cloud.geminidataanalytics.v1beta.Message; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the DataChatService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataChatServiceStub extends DataChatServiceStub { - private static final MethodDescriptor chatMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName("google.cloud.geminidataanalytics.v1beta.DataChatService/Chat") - .setRequestMarshaller(ProtoUtils.marshaller(ChatRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Message.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createConversationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/CreateConversation") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateConversationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteConversationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteConversationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getConversationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/GetConversation") - .setRequestMarshaller( - ProtoUtils.marshaller(GetConversationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listConversationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/ListConversations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListConversationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListConversationsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listMessagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/ListMessages") - .setRequestMarshaller(ProtoUtils.marshaller(ListMessagesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListMessagesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - queryDataMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/QueryData") - .setRequestMarshaller(ProtoUtils.marshaller(QueryDataRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(QueryDataResponse.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 ServerStreamingCallable chatCallable; - private final UnaryCallable createConversationCallable; - private final UnaryCallable deleteConversationCallable; - private final UnaryCallable getConversationCallable; - private final UnaryCallable - listConversationsCallable; - private final UnaryCallable - listConversationsPagedCallable; - private final UnaryCallable listMessagesCallable; - private final UnaryCallable - listMessagesPagedCallable; - private final UnaryCallable queryDataCallable; - 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 GrpcDataChatServiceStub create(DataChatServiceStubSettings settings) - throws IOException { - return new GrpcDataChatServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataChatServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcDataChatServiceStub( - DataChatServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataChatServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataChatServiceStub( - DataChatServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataChatServiceStub, 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 GrpcDataChatServiceStub( - DataChatServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcDataChatServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataChatServiceStub, 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 GrpcDataChatServiceStub( - DataChatServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings chatTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(chatMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getProject()) - .build(); - GrpcCallSettings createConversationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createConversationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings deleteConversationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConversationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings getConversationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConversationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - listConversationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listConversationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings listMessagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listMessagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings queryDataTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(queryDataMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .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.chatCallable = - callableFactory.createServerStreamingCallable( - chatTransportSettings, settings.chatSettings(), clientContext); - this.createConversationCallable = - callableFactory.createUnaryCallable( - createConversationTransportSettings, - settings.createConversationSettings(), - clientContext); - this.deleteConversationCallable = - callableFactory.createUnaryCallable( - deleteConversationTransportSettings, - settings.deleteConversationSettings(), - clientContext); - this.getConversationCallable = - callableFactory.createUnaryCallable( - getConversationTransportSettings, settings.getConversationSettings(), clientContext); - this.listConversationsCallable = - callableFactory.createUnaryCallable( - listConversationsTransportSettings, - settings.listConversationsSettings(), - clientContext); - this.listConversationsPagedCallable = - callableFactory.createPagedCallable( - listConversationsTransportSettings, - settings.listConversationsSettings(), - clientContext); - this.listMessagesCallable = - callableFactory.createUnaryCallable( - listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); - this.listMessagesPagedCallable = - callableFactory.createPagedCallable( - listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); - this.queryDataCallable = - callableFactory.createUnaryCallable( - queryDataTransportSettings, settings.queryDataSettings(), 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 ServerStreamingCallable chatCallable() { - return chatCallable; - } - - @Override - public UnaryCallable createConversationCallable() { - return createConversationCallable; - } - - @Override - public UnaryCallable deleteConversationCallable() { - return deleteConversationCallable; - } - - @Override - public UnaryCallable getConversationCallable() { - return getConversationCallable; - } - - @Override - public UnaryCallable - listConversationsCallable() { - return listConversationsCallable; - } - - @Override - public UnaryCallable - listConversationsPagedCallable() { - return listConversationsPagedCallable; - } - - @Override - public UnaryCallable listMessagesCallable() { - return listMessagesCallable; - } - - @Override - public UnaryCallable listMessagesPagedCallable() { - return listMessagesPagedCallable; - } - - @Override - public UnaryCallable queryDataCallable() { - return queryDataCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceCallableFactory.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceCallableFactory.java deleted file mode 100644 index 00a7eaabdbe3..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceCallableFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the DataAgentService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataAgentServiceCallableFactory - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceStub.java deleted file mode 100644 index a9cec9d83a5b..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataAgentServiceStub.java +++ /dev/null @@ -1,1091 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListLocationsPagedResponse; - -import com.google.api.HttpRule; -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.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -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.ImmutableMap; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the DataAgentService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataAgentServiceStub extends DataAgentServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(Empty.getDescriptor()) - .add(OperationMetadata.getDescriptor()) - .add(DataAgent.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - listDataAgentsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/ListDataAgents") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/dataAgents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListDataAgentsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse> - listAccessibleDataAgentsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/ListAccessibleDataAgents") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible", - 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, "creatorFilter", request.getCreatorFilterValue()); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccessibleDataAgentsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataAgentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/GetDataAgent") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*/dataAgents/*}", - 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(DataAgent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createDataAgentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/dataAgents", - 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, "dataAgentId", request.getDataAgentId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataAgent", request.getDataAgent(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateDataAgentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - createDataAgentSyncMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgentSync") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync", - 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, "dataAgentId", request.getDataAgentId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataAgent", request.getDataAgent(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataAgent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateDataAgentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgent") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{dataAgent.name=projects/*/locations/*/dataAgents/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "dataAgent.name", request.getDataAgent().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataAgent", request.getDataAgent(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateDataAgentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - updateDataAgentSyncMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgentSync") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{dataAgent.name=projects/*/locations/*/dataAgents/*}:updateSync", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "dataAgent.name", request.getDataAgent().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataAgent", request.getDataAgent(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataAgent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteDataAgentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgent") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*/dataAgents/*}", - 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, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteDataAgentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteDataAgentSyncMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgentSync") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync", - 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, "requestId", request.getRequestId()); - 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 - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataAgentService/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private 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 listDataAgentsCallable; - private final UnaryCallable - listDataAgentsPagedCallable; - private final UnaryCallable - listAccessibleDataAgentsCallable; - private final UnaryCallable< - ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsPagedResponse> - listAccessibleDataAgentsPagedCallable; - private final UnaryCallable getDataAgentCallable; - private final UnaryCallable createDataAgentCallable; - private final OperationCallable - createDataAgentOperationCallable; - private final UnaryCallable createDataAgentSyncCallable; - private final UnaryCallable updateDataAgentCallable; - private final OperationCallable - updateDataAgentOperationCallable; - private final UnaryCallable updateDataAgentSyncCallable; - private final UnaryCallable deleteDataAgentCallable; - private final OperationCallable - deleteDataAgentOperationCallable; - private final UnaryCallable deleteDataAgentSyncCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDataAgentServiceStub create(DataAgentServiceStubSettings settings) - throws IOException { - return new HttpJsonDataAgentServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataAgentServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonDataAgentServiceStub( - DataAgentServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataAgentServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataAgentServiceStub( - DataAgentServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataAgentServiceStub, 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 HttpJsonDataAgentServiceStub( - DataAgentServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonDataAgentServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataAgentServiceStub, 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 HttpJsonDataAgentServiceStub( - DataAgentServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", - HttpRule.newBuilder() - .setPost("/v1beta/{name=projects/*/locations/*/operations/*}:cancel") - .build()) - .put( - "google.longrunning.Operations.DeleteOperation", - HttpRule.newBuilder() - .setDelete("/v1beta/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.GetOperation", - HttpRule.newBuilder() - .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.ListOperations", - HttpRule.newBuilder() - .setGet("/v1beta/{name=projects/*/locations/*}/operations") - .build()) - .build()); - - HttpJsonCallSettings - listDataAgentsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDataAgentsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - listAccessibleDataAgentsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAccessibleDataAgentsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getDataAgentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDataAgentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createDataAgentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createDataAgentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings createDataAgentSyncTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createDataAgentSyncMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateDataAgentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateDataAgentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("data_agent.name", String.valueOf(request.getDataAgent().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings updateDataAgentSyncTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateDataAgentSyncMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("data_agent.name", String.valueOf(request.getDataAgent().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteDataAgentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDataAgentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings deleteDataAgentSyncTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDataAgentSyncMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getResource()) - .build(); - HttpJsonCallSettings setIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getResource()) - .build(); - 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.listDataAgentsCallable = - callableFactory.createUnaryCallable( - listDataAgentsTransportSettings, settings.listDataAgentsSettings(), clientContext); - this.listDataAgentsPagedCallable = - callableFactory.createPagedCallable( - listDataAgentsTransportSettings, settings.listDataAgentsSettings(), clientContext); - this.listAccessibleDataAgentsCallable = - callableFactory.createUnaryCallable( - listAccessibleDataAgentsTransportSettings, - settings.listAccessibleDataAgentsSettings(), - clientContext); - this.listAccessibleDataAgentsPagedCallable = - callableFactory.createPagedCallable( - listAccessibleDataAgentsTransportSettings, - settings.listAccessibleDataAgentsSettings(), - clientContext); - this.getDataAgentCallable = - callableFactory.createUnaryCallable( - getDataAgentTransportSettings, settings.getDataAgentSettings(), clientContext); - this.createDataAgentCallable = - callableFactory.createUnaryCallable( - createDataAgentTransportSettings, settings.createDataAgentSettings(), clientContext); - this.createDataAgentOperationCallable = - callableFactory.createOperationCallable( - createDataAgentTransportSettings, - settings.createDataAgentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.createDataAgentSyncCallable = - callableFactory.createUnaryCallable( - createDataAgentSyncTransportSettings, - settings.createDataAgentSyncSettings(), - clientContext); - this.updateDataAgentCallable = - callableFactory.createUnaryCallable( - updateDataAgentTransportSettings, settings.updateDataAgentSettings(), clientContext); - this.updateDataAgentOperationCallable = - callableFactory.createOperationCallable( - updateDataAgentTransportSettings, - settings.updateDataAgentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.updateDataAgentSyncCallable = - callableFactory.createUnaryCallable( - updateDataAgentSyncTransportSettings, - settings.updateDataAgentSyncSettings(), - clientContext); - this.deleteDataAgentCallable = - callableFactory.createUnaryCallable( - deleteDataAgentTransportSettings, settings.deleteDataAgentSettings(), clientContext); - this.deleteDataAgentOperationCallable = - callableFactory.createOperationCallable( - deleteDataAgentTransportSettings, - settings.deleteDataAgentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteDataAgentSyncCallable = - callableFactory.createUnaryCallable( - deleteDataAgentSyncTransportSettings, - settings.deleteDataAgentSyncSettings(), - clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), 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(listDataAgentsMethodDescriptor); - methodDescriptors.add(listAccessibleDataAgentsMethodDescriptor); - methodDescriptors.add(getDataAgentMethodDescriptor); - methodDescriptors.add(createDataAgentMethodDescriptor); - methodDescriptors.add(createDataAgentSyncMethodDescriptor); - methodDescriptors.add(updateDataAgentMethodDescriptor); - methodDescriptors.add(updateDataAgentSyncMethodDescriptor); - methodDescriptors.add(deleteDataAgentMethodDescriptor); - methodDescriptors.add(deleteDataAgentSyncMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable listDataAgentsCallable() { - return listDataAgentsCallable; - } - - @Override - public UnaryCallable - listDataAgentsPagedCallable() { - return listDataAgentsPagedCallable; - } - - @Override - public UnaryCallable - listAccessibleDataAgentsCallable() { - return listAccessibleDataAgentsCallable; - } - - @Override - public UnaryCallable - listAccessibleDataAgentsPagedCallable() { - return listAccessibleDataAgentsPagedCallable; - } - - @Override - public UnaryCallable getDataAgentCallable() { - return getDataAgentCallable; - } - - @Override - public UnaryCallable createDataAgentCallable() { - return createDataAgentCallable; - } - - @Override - public OperationCallable - createDataAgentOperationCallable() { - return createDataAgentOperationCallable; - } - - @Override - public UnaryCallable createDataAgentSyncCallable() { - return createDataAgentSyncCallable; - } - - @Override - public UnaryCallable updateDataAgentCallable() { - return updateDataAgentCallable; - } - - @Override - public OperationCallable - updateDataAgentOperationCallable() { - return updateDataAgentOperationCallable; - } - - @Override - public UnaryCallable updateDataAgentSyncCallable() { - return updateDataAgentSyncCallable; - } - - @Override - public UnaryCallable deleteDataAgentCallable() { - return deleteDataAgentCallable; - } - - @Override - public OperationCallable - deleteDataAgentOperationCallable() { - return deleteDataAgentOperationCallable; - } - - @Override - public UnaryCallable deleteDataAgentSyncCallable() { - return deleteDataAgentSyncCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceCallableFactory.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceCallableFactory.java deleted file mode 100644 index e77813a2d0ba..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceCallableFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the DataChatService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataChatServiceCallableFactory - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java deleted file mode 100644 index 53d0218b7e56..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java +++ /dev/null @@ -1,732 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -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.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; -import com.google.cloud.geminidataanalytics.v1beta.Message; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the DataChatService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataChatServiceStub extends DataChatServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor chatMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.geminidataanalytics.v1beta.DataChatService/Chat") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}:chat", - 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(Message.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createConversationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/CreateConversation") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/conversations", - 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, "conversationId", request.getConversationId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("conversation", request.getConversation(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Conversation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteConversationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*/conversations/*}", - 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 - getConversationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/GetConversation") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*/conversations/*}", - 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(Conversation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listConversationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/ListConversations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}/conversations", - 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(ListConversationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listMessagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/ListMessages") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*/conversations/*}/messages", - 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(ListMessagesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - queryDataMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataChatService/QueryData") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=projects/*/locations/*}:queryData", - 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(QueryDataResponse.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 ServerStreamingCallable chatCallable; - private final UnaryCallable createConversationCallable; - private final UnaryCallable deleteConversationCallable; - private final UnaryCallable getConversationCallable; - private final UnaryCallable - listConversationsCallable; - private final UnaryCallable - listConversationsPagedCallable; - private final UnaryCallable listMessagesCallable; - private final UnaryCallable - listMessagesPagedCallable; - private final UnaryCallable queryDataCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDataChatServiceStub create(DataChatServiceStubSettings settings) - throws IOException { - return new HttpJsonDataChatServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataChatServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonDataChatServiceStub( - DataChatServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataChatServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataChatServiceStub( - DataChatServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataChatServiceStub, 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 HttpJsonDataChatServiceStub( - DataChatServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonDataChatServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataChatServiceStub, 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 HttpJsonDataChatServiceStub( - DataChatServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings chatTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(chatMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getProject()) - .build(); - HttpJsonCallSettings - createConversationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createConversationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings deleteConversationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteConversationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings getConversationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getConversationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - listConversationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listConversationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings listMessagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listMessagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings queryDataTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(queryDataMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .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.chatCallable = - callableFactory.createServerStreamingCallable( - chatTransportSettings, settings.chatSettings(), clientContext); - this.createConversationCallable = - callableFactory.createUnaryCallable( - createConversationTransportSettings, - settings.createConversationSettings(), - clientContext); - this.deleteConversationCallable = - callableFactory.createUnaryCallable( - deleteConversationTransportSettings, - settings.deleteConversationSettings(), - clientContext); - this.getConversationCallable = - callableFactory.createUnaryCallable( - getConversationTransportSettings, settings.getConversationSettings(), clientContext); - this.listConversationsCallable = - callableFactory.createUnaryCallable( - listConversationsTransportSettings, - settings.listConversationsSettings(), - clientContext); - this.listConversationsPagedCallable = - callableFactory.createPagedCallable( - listConversationsTransportSettings, - settings.listConversationsSettings(), - clientContext); - this.listMessagesCallable = - callableFactory.createUnaryCallable( - listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); - this.listMessagesPagedCallable = - callableFactory.createPagedCallable( - listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); - this.queryDataCallable = - callableFactory.createUnaryCallable( - queryDataTransportSettings, settings.queryDataSettings(), 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(chatMethodDescriptor); - methodDescriptors.add(createConversationMethodDescriptor); - methodDescriptors.add(deleteConversationMethodDescriptor); - methodDescriptors.add(getConversationMethodDescriptor); - methodDescriptors.add(listConversationsMethodDescriptor); - methodDescriptors.add(listMessagesMethodDescriptor); - methodDescriptors.add(queryDataMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - return methodDescriptors; - } - - @Override - public ServerStreamingCallable chatCallable() { - return chatCallable; - } - - @Override - public UnaryCallable createConversationCallable() { - return createConversationCallable; - } - - @Override - public UnaryCallable deleteConversationCallable() { - return deleteConversationCallable; - } - - @Override - public UnaryCallable getConversationCallable() { - return getConversationCallable; - } - - @Override - public UnaryCallable - listConversationsCallable() { - return listConversationsCallable; - } - - @Override - public UnaryCallable - listConversationsPagedCallable() { - return listConversationsPagedCallable; - } - - @Override - public UnaryCallable listMessagesCallable() { - return listMessagesCallable; - } - - @Override - public UnaryCallable listMessagesPagedCallable() { - return listMessagesPagedCallable; - } - - @Override - public UnaryCallable queryDataCallable() { - return queryDataCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json deleted file mode 100644 index 7889c90b6a69..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ /dev/null @@ -1,3908 +0,0 @@ -[ - { - "name": "com.google.api.BatchingConfigProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.BatchingConfigProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.BatchingDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.BatchingDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.BatchingSettingsProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.BatchingSettingsProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "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, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$ExperimentalFeatures", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.SelectiveGapicGeneration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.SelectiveGapicGeneration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "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.geminidataanalytics.v1beta.AgentContextReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentContextReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisEvent", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisEvent$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisOptions$Python", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisOptions$Python$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryJob", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryJob$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Blob", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Blob$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions$NoImage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions$NoImage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions$SvgOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartOptions$ImageOptions$SvgOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChartResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChatRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChatRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ChatRequest$ThinkingMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$ClarificationQuestionType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$SelectionMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference$Engine", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$SchemaPaths", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$SchemaPaths$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$Source", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Conversation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Conversation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ConversationOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ConversationOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ConversationReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ConversationReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Credentials", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Credentials$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAgent", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAgent$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAgentContext", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAgentContext$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAgentContext$ContextVersion", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataFilter", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataFilter$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataFilterType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Datasource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Datasource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ErrorMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ErrorMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQueries", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQueries$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Column", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Column$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Row", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Row$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Field", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Field$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$CreatorFilter", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerQuery$Filter", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.LookerQuery$Filter$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Message", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Message$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials$SecretBased", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials$SecretBased$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials$TokenBased", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials$TokenBased$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OperationMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OperationMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataContext", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataContext$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Schema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Schema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaQuery", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaQuery$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SchemaResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference$Engine", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StorageMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StorageMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SystemMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SystemMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TextMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TextMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TextMessage$TextType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.UserMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.UserMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.GetLocationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.GetLocationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.ListLocationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.ListLocationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.ListLocationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.ListLocationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.location.Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditConfigDelta", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditConfigDelta$Action", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditConfigDelta$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditLogConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditLogConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.AuditLogConfig$LogType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.Binding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.Binding$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.BindingDelta", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.BindingDelta$Action", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.BindingDelta$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.GetIamPolicyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.GetPolicyOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.GetPolicyOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.Policy", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.Policy$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.PolicyDelta", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.PolicyDelta$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.SetIamPolicyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.TestIamPermissionsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.TestIamPermissionsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.BoolValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.BoolValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.BytesValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.BytesValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$Edition", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DoubleValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DoubleValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FloatValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FloatValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Int32Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Int32Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Int64Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Int64Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.ListValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.ListValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.NullValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.StringValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.StringValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Struct", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Struct$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.UInt32Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.UInt32Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.UInt64Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.UInt64Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.type.Expr", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.type.Expr$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientHttpJsonTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientHttpJsonTest.java deleted file mode 100644 index 3d81cfa8befb..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1255 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.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.api.resourcenames.ResourceName; -import com.google.cloud.geminidataanalytics.v1beta.stub.HttpJsonDataAgentServiceStub; -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.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -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 DataAgentServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static DataAgentServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataAgentServiceStub.getMethodDescriptors(), - DataAgentServiceSettings.getDefaultEndpoint()); - DataAgentServiceSettings settings = - DataAgentServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataAgentServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataAgentServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listDataAgentsTest() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListDataAgentsResponse expectedResponse = - ListDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListDataAgentsPagedResponse pagedListResponse = client.listDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().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 listDataAgentsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataAgentsTest2() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListDataAgentsResponse expectedResponse = - ListDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListDataAgentsPagedResponse pagedListResponse = client.listDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().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 listDataAgentsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccessibleDataAgentsTest() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListAccessibleDataAgentsResponse expectedResponse = - ListAccessibleDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListAccessibleDataAgentsPagedResponse pagedListResponse = - client.listAccessibleDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().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 listAccessibleDataAgentsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listAccessibleDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccessibleDataAgentsTest2() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListAccessibleDataAgentsResponse expectedResponse = - ListAccessibleDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListAccessibleDataAgentsPagedResponse pagedListResponse = - client.listAccessibleDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().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 listAccessibleDataAgentsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listAccessibleDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - DataAgent actualResponse = client.getDataAgent(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 getDataAgentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.getDataAgent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataAgentTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - - DataAgent actualResponse = client.getDataAgent(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 getDataAgentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - client.getDataAgent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataAgentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createDataAgentTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataAgentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createDataAgentSyncTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentSync(parent, dataAgent, dataAgentId); - 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 createDataAgentSyncExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataAgentSyncTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentSync(parent, dataAgent, dataAgentId); - 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 createDataAgentSyncExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - DataAgent dataAgent = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataAgent actualResponse = client.updateDataAgentAsync(dataAgent, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDataAgentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataAgent dataAgent = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataAgentAsync(dataAgent, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void updateDataAgentSyncTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataAgent dataAgent = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataAgent actualResponse = client.updateDataAgentSync(dataAgent, 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 updateDataAgentSyncExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataAgent dataAgent = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataAgentSync(dataAgent, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataAgentTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - client.deleteDataAgentAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataAgentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.deleteDataAgentAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteDataAgentTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - - client.deleteDataAgentAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataAgentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - client.deleteDataAgentAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteDataAgentSyncTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - client.deleteDataAgentSync(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 deleteDataAgentSyncExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.deleteDataAgentSync(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataAgentSyncTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - - client.deleteDataAgentSync(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 deleteDataAgentSyncExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-8616/locations/location-8616/dataAgents/dataAgent-8616"; - client.deleteDataAgentSync(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-3285/locations/location-3285/dataAgents/dataAgent-3285"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-3285/locations/location-3285/dataAgents/dataAgent-3285"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - Policy actualResponse = client.setIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.setIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-3285/locations/location-3285/dataAgents/dataAgent-3285"; - - Policy actualResponse = client.setIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-3285/locations/location-3285/dataAgents/dataAgent-3285"; - client.setIamPolicy(resource); - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientTest.java deleted file mode 100644 index 592ae0506e3e..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClientTest.java +++ /dev/null @@ -1,1116 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListAccessibleDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.ListDataAgentsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient.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.api.gax.rpc.StatusCode; -import com.google.api.resourcenames.ResourceName; -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.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -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 DataAgentServiceClientTest { - private static MockDataAgentService mockDataAgentService; - private static MockLocations mockLocations; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataAgentServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataAgentService = new MockDataAgentService(); - mockLocations = new MockLocations(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataAgentService, mockLocations)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataAgentServiceSettings settings = - DataAgentServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataAgentServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listDataAgentsTest() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListDataAgentsResponse expectedResponse = - ListDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListDataAgentsPagedResponse pagedListResponse = client.listDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().get(0), resources.get(0)); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataAgentsRequest actualRequest = ((ListDataAgentsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataAgentsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataAgentsTest2() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListDataAgentsResponse expectedResponse = - ListDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDataAgentsPagedResponse pagedListResponse = client.listDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().get(0), resources.get(0)); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataAgentsRequest actualRequest = ((ListDataAgentsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataAgentsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccessibleDataAgentsTest() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListAccessibleDataAgentsResponse expectedResponse = - ListAccessibleDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListAccessibleDataAgentsPagedResponse pagedListResponse = - client.listAccessibleDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().get(0), resources.get(0)); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccessibleDataAgentsRequest actualRequest = - ((ListAccessibleDataAgentsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccessibleDataAgentsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listAccessibleDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccessibleDataAgentsTest2() throws Exception { - DataAgent responsesElement = DataAgent.newBuilder().build(); - ListAccessibleDataAgentsResponse expectedResponse = - ListAccessibleDataAgentsResponse.newBuilder() - .setNextPageToken("") - .addAllDataAgents(Arrays.asList(responsesElement)) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListAccessibleDataAgentsPagedResponse pagedListResponse = - client.listAccessibleDataAgents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataAgentsList().get(0), resources.get(0)); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccessibleDataAgentsRequest actualRequest = - ((ListAccessibleDataAgentsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccessibleDataAgentsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listAccessibleDataAgents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - DataAgent actualResponse = client.getDataAgent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataAgentRequest actualRequest = ((GetDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataAgentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.getDataAgent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataAgentTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataAgent actualResponse = client.getDataAgent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataAgentRequest actualRequest = ((GetDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataAgentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String name = "name3373707"; - client.getDataAgent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataAgentService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataAgentRequest actualRequest = ((CreateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(dataAgentId, actualRequest.getDataAgentId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataAgentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createDataAgentTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataAgentService.addResponse(resultOperation); - - String parent = "parent-995424086"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataAgentRequest actualRequest = ((CreateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(dataAgentId, actualRequest.getDataAgentId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataAgentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String parent = "parent-995424086"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createDataAgentSyncTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataAgentRequest actualRequest = ((CreateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(dataAgentId, actualRequest.getDataAgentId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataAgentSyncExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataAgentSyncTest2() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - - DataAgent actualResponse = client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataAgentRequest actualRequest = ((CreateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(dataAgentId, actualRequest.getDataAgentId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataAgentSyncExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String parent = "parent-995424086"; - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - client.createDataAgentSync(parent, dataAgent, dataAgentId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataAgentTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataAgentService.addResponse(resultOperation); - - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataAgent actualResponse = client.updateDataAgentAsync(dataAgent, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataAgentRequest actualRequest = ((UpdateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataAgentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataAgentAsync(dataAgent, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateDataAgentSyncTest() throws Exception { - DataAgent expectedResponse = - DataAgent.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataAgent actualResponse = client.updateDataAgentSync(dataAgent, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataAgentRequest actualRequest = ((UpdateDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(dataAgent, actualRequest.getDataAgent()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataAgentSyncExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataAgentSync(dataAgent, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataAgentTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataAgentService.addResponse(resultOperation); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - client.deleteDataAgentAsync(name).get(); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataAgentRequest actualRequest = ((DeleteDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataAgentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.deleteDataAgentAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteDataAgentTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDataAgentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataAgentService.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteDataAgentAsync(name).get(); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataAgentRequest actualRequest = ((DeleteDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataAgentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDataAgentAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteDataAgentSyncTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataAgentService.addResponse(expectedResponse); - - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - client.deleteDataAgentSync(name); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataAgentRequest actualRequest = ((DeleteDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataAgentSyncExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.deleteDataAgentSync(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataAgentSyncTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataAgentService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteDataAgentSync(name); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataAgentRequest actualRequest = ((DeleteDataAgentRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataAgentSyncExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDataAgentSync(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - - Policy actualResponse = client.setIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - client.setIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataAgentService.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.setIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataAgentService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataAgentService.addException(exception); - - try { - String resource = "resource-341064690"; - client.setIamPolicy(resource); - 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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java deleted file mode 100644 index 7aaf92df1cc7..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -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.geminidataanalytics.v1beta.stub.HttpJsonDataChatServiceStub; -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 DataChatServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static DataChatServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataChatServiceStub.getMethodDescriptors(), - DataChatServiceSettings.getDefaultEndpoint()); - DataChatServiceSettings settings = - DataChatServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataChatServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataChatServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void chatTest() throws Exception {} - - @Test - public void chatExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - } - - @Test - public void createConversationTest() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - - Conversation actualResponse = client.createConversation(parent, conversation, conversationId); - 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 createConversationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - client.createConversation(parent, conversation, conversationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversationTest2() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - - Conversation actualResponse = client.createConversation(parent, conversation, conversationId); - 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 createConversationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - client.createConversation(parent, conversation, conversationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - client.deleteConversation(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 deleteConversationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.deleteConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; - - client.deleteConversation(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 deleteConversationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; - client.deleteConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversationTest() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - Conversation actualResponse = client.getConversation(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 getConversationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.getConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversationTest2() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; - - Conversation actualResponse = client.getConversation(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 getConversationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; - client.getConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversationsTest() throws Exception { - Conversation responsesElement = Conversation.newBuilder().build(); - ListConversationsResponse expectedResponse = - ListConversationsResponse.newBuilder() - .setNextPageToken("") - .addAllConversations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversationsList().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 listConversationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listConversations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversationsTest2() throws Exception { - Conversation responsesElement = Conversation.newBuilder().build(); - ListConversationsResponse expectedResponse = - ListConversationsResponse.newBuilder() - .setNextPageToken("") - .addAllConversations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversationsList().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 listConversationsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listConversations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMessagesTest() throws Exception { - StorageMessage responsesElement = StorageMessage.newBuilder().build(); - ListMessagesResponse expectedResponse = - ListMessagesResponse.newBuilder() - .setNextPageToken("") - .addAllMessages(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - ListMessagesPagedResponse pagedListResponse = client.listMessages(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMessagesList().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 listMessagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.listMessages(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMessagesTest2() throws Exception { - StorageMessage responsesElement = StorageMessage.newBuilder().build(); - ListMessagesResponse expectedResponse = - ListMessagesResponse.newBuilder() - .setNextPageToken("") - .addAllMessages(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-8053/locations/location-8053/conversations/conversation-8053"; - - ListMessagesPagedResponse pagedListResponse = client.listMessages(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMessagesList().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 listMessagesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-8053/locations/location-8053/conversations/conversation-8053"; - client.listMessages(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryDataTest() throws Exception { - QueryDataResponse expectedResponse = - QueryDataResponse.newBuilder() - .setGeneratedQuery("generatedQuery-1655820167") - .setIntentExplanation("intentExplanation-258914851") - .setQueryResult(ExecutedQueryResult.newBuilder().build()) - .setNaturalLanguageAnswer("naturalLanguageAnswer425313727") - .addAllDisambiguationQuestion(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - - QueryDataResponse actualResponse = client.queryData(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 queryDataExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - client.queryData(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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java deleted file mode 100644 index a55658bef262..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java +++ /dev/null @@ -1,731 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListConversationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListLocationsPagedResponse; -import static com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient.ListMessagesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StatusCode; -import com.google.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 java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DataChatServiceClientTest { - private static MockDataChatService mockDataChatService; - private static MockLocations mockLocations; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataChatServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataChatService = new MockDataChatService(); - mockLocations = new MockLocations(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataChatService, mockLocations)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataChatServiceSettings settings = - DataChatServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataChatServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void chatTest() throws Exception { - Message expectedResponse = - Message.newBuilder() - .setTimestamp(Timestamp.newBuilder().build()) - .setMessageId("messageId-1440013438") - .build(); - mockDataChatService.addResponse(expectedResponse); - ChatRequest request = - ChatRequest.newBuilder() - .setProject(ProjectName.of("[PROJECT]").toString()) - .setParent("parent-995424086") - .addAllMessages(new ArrayList()) - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - ServerStreamingCallable callable = client.chatCallable(); - callable.serverStreamingCall(request, responseObserver); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void chatExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - ChatRequest request = - ChatRequest.newBuilder() - .setProject(ProjectName.of("[PROJECT]").toString()) - .setParent("parent-995424086") - .addAllMessages(new ArrayList()) - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - ServerStreamingCallable callable = client.chatCallable(); - 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 createConversationTest() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockDataChatService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - - Conversation actualResponse = client.createConversation(parent, conversation, conversationId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversationRequest actualRequest = ((CreateConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(conversation, actualRequest.getConversation()); - Assert.assertEquals(conversationId, actualRequest.getConversationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - client.createConversation(parent, conversation, conversationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversationTest2() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockDataChatService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - - Conversation actualResponse = client.createConversation(parent, conversation, conversationId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversationRequest actualRequest = ((CreateConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(conversation, actualRequest.getConversation()); - Assert.assertEquals(conversationId, actualRequest.getConversationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - String parent = "parent-995424086"; - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - client.createConversation(parent, conversation, conversationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataChatService.addResponse(expectedResponse); - - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - client.deleteConversation(name); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.deleteConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataChatService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteConversation(name); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - String name = "name3373707"; - client.deleteConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversationTest() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockDataChatService.addResponse(expectedResponse); - - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - Conversation actualResponse = client.getConversation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.getConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversationTest2() throws Exception { - Conversation expectedResponse = - Conversation.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .addAllAgents(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setLastUsedTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockDataChatService.addResponse(expectedResponse); - - String name = "name3373707"; - - Conversation actualResponse = client.getConversation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - String name = "name3373707"; - client.getConversation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversationsTest() throws Exception { - Conversation responsesElement = Conversation.newBuilder().build(); - ListConversationsResponse expectedResponse = - ListConversationsResponse.newBuilder() - .setNextPageToken("") - .addAllConversations(Arrays.asList(responsesElement)) - .build(); - mockDataChatService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listConversations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversationsTest2() throws Exception { - Conversation responsesElement = Conversation.newBuilder().build(); - ListConversationsResponse expectedResponse = - ListConversationsResponse.newBuilder() - .setNextPageToken("") - .addAllConversations(Arrays.asList(responsesElement)) - .build(); - mockDataChatService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listConversations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMessagesTest() throws Exception { - StorageMessage responsesElement = StorageMessage.newBuilder().build(); - ListMessagesResponse expectedResponse = - ListMessagesResponse.newBuilder() - .setNextPageToken("") - .addAllMessages(Arrays.asList(responsesElement)) - .build(); - mockDataChatService.addResponse(expectedResponse); - - ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - - ListMessagesPagedResponse pagedListResponse = client.listMessages(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMessagesList().get(0), resources.get(0)); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMessagesRequest actualRequest = ((ListMessagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMessagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - client.listMessages(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMessagesTest2() throws Exception { - StorageMessage responsesElement = StorageMessage.newBuilder().build(); - ListMessagesResponse expectedResponse = - ListMessagesResponse.newBuilder() - .setNextPageToken("") - .addAllMessages(Arrays.asList(responsesElement)) - .build(); - mockDataChatService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListMessagesPagedResponse pagedListResponse = client.listMessages(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMessagesList().get(0), resources.get(0)); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMessagesRequest actualRequest = ((ListMessagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMessagesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listMessages(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryDataTest() throws Exception { - QueryDataResponse expectedResponse = - QueryDataResponse.newBuilder() - .setGeneratedQuery("generatedQuery-1655820167") - .setIntentExplanation("intentExplanation-258914851") - .setQueryResult(ExecutedQueryResult.newBuilder().build()) - .setNaturalLanguageAnswer("naturalLanguageAnswer425313727") - .addAllDisambiguationQuestion(new ArrayList()) - .build(); - mockDataChatService.addResponse(expectedResponse); - - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - - QueryDataResponse actualResponse = client.queryData(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataChatService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - QueryDataRequest actualRequest = ((QueryDataRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getPrompt(), actualRequest.getPrompt()); - Assert.assertEquals(request.getContext(), actualRequest.getContext()); - Assert.assertEquals(request.getGenerationOptions(), actualRequest.getGenerationOptions()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void queryDataExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataChatService.addException(exception); - - try { - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - client.queryData(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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentService.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentService.java deleted file mode 100644 index c14614785011..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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 MockDataAgentService implements MockGrpcService { - private final MockDataAgentServiceImpl serviceImpl; - - public MockDataAgentService() { - serviceImpl = new MockDataAgentServiceImpl(); - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentServiceImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentServiceImpl.java deleted file mode 100644 index 3cab51ac003c..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataAgentServiceImpl.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import com.google.api.core.BetaApi; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceGrpc.DataAgentServiceImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.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 MockDataAgentServiceImpl extends DataAgentServiceImplBase { - private List requests; - private Queue responses; - - public MockDataAgentServiceImpl() { - 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 listDataAgents( - ListDataAgentsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDataAgentsResponse) { - requests.add(request); - responseObserver.onNext(((ListDataAgentsResponse) 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 ListDataAgents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDataAgentsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAccessibleDataAgents( - ListAccessibleDataAgentsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAccessibleDataAgentsResponse) { - requests.add(request); - responseObserver.onNext(((ListAccessibleDataAgentsResponse) 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 ListAccessibleDataAgents, expected %s" - + " or %s", - response == null ? "null" : response.getClass().getName(), - ListAccessibleDataAgentsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataAgent( - GetDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataAgent) { - requests.add(request); - responseObserver.onNext(((DataAgent) 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 GetDataAgent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataAgent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDataAgent( - CreateDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDataAgent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDataAgentSync( - CreateDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataAgent) { - requests.add(request); - responseObserver.onNext(((DataAgent) 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 CreateDataAgentSync, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataAgent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataAgent( - UpdateDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDataAgent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataAgentSync( - UpdateDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataAgent) { - requests.add(request); - responseObserver.onNext(((DataAgent) 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 UpdateDataAgentSync, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataAgent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDataAgent( - DeleteDataAgentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDataAgent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDataAgentSync( - DeleteDataAgentRequest 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 DeleteDataAgentSync, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatService.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatService.java deleted file mode 100644 index e23471ee8faf..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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 MockDataChatService implements MockGrpcService { - private final MockDataChatServiceImpl serviceImpl; - - public MockDataChatService() { - serviceImpl = new MockDataChatServiceImpl(); - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java deleted file mode 100644 index 8cfb6a5fb27b..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import com.google.api.core.BetaApi; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceGrpc.DataChatServiceImplBase; -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 MockDataChatServiceImpl extends DataChatServiceImplBase { - private List requests; - private Queue responses; - - public MockDataChatServiceImpl() { - 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 chat(ChatRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Message) { - requests.add(request); - responseObserver.onNext(((Message) 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 Chat, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Message.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createConversation( - CreateConversationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Conversation) { - requests.add(request); - responseObserver.onNext(((Conversation) 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 CreateConversation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Conversation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteConversation( - DeleteConversationRequest 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 DeleteConversation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getConversation( - GetConversationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Conversation) { - requests.add(request); - responseObserver.onNext(((Conversation) 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 GetConversation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Conversation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listConversations( - ListConversationsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListConversationsResponse) { - requests.add(request); - responseObserver.onNext(((ListConversationsResponse) 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 ListConversations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListConversationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listMessages( - ListMessagesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListMessagesResponse) { - requests.add(request); - responseObserver.onNext(((ListMessagesResponse) 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 ListMessages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListMessagesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryData( - QueryDataRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryDataResponse) { - requests.add(request); - responseObserver.onNext(((QueryDataResponse) 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 QueryData, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryDataResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocations.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocations.java deleted file mode 100644 index 7e411c715ac6..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocations.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.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 MockLocations implements MockGrpcService { - private final MockLocationsImpl serviceImpl; - - public MockLocations() { - serviceImpl = new MockLocationsImpl(); - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocationsImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocationsImpl.java deleted file mode 100644 index 96ca366d6148..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockLocationsImpl.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import com.google.api.core.BetaApi; -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.cloud.location.LocationsGrpc.LocationsImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockLocationsImpl extends LocationsImplBase { - private List requests; - private Queue responses; - - public MockLocationsImpl() { - 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 listLocations( - ListLocationsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLocationsResponse) { - requests.add(request); - responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLocationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Location) { - requests.add(request); - responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Location.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java index 4b0e9e58c1f6..bb525b0029ca 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java @@ -116,29 +116,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "5google/cloud/geminidataanalytics/v1beta/context.proto\022\'google.cloud.geminidata" + "analytics.v1beta\032\037google/api/field_behav" - + "ior.proto\0328google/cloud/geminidataanalyt" - + "ics/v1beta/datasource.proto\032\036google/protobuf/wrappers.proto\"\331\010\n" + + "ior.proto\0328google/cloud/geminidataanalytics/v1beta/datasource.proto\032\036google/protobuf/wrappers.proto\"\331\010\n" + "\007Context\022\037\n" + "\022system_instruction\030\001 \001(\tB\003\340A\001\022a\n" - + "\025datasource_references\030\007 \001(\0132=.google.cloud.geminidat" - + "aanalytics.v1beta.DatasourceReferencesB\003\340A\002\022R\n" - + "\007options\030\003 \001(\0132<.google.cloud.gemi" - + "nidataanalytics.v1beta.ConversationOptionsB\003\340A\001\022S\n" - + "\017example_queries\030\005 \003(\01325.googl" - + "e.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\022^\n" - + "\025looker_golden_queries\030\013 " - + "\003(\0132:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\003\340A\001\022R\n" + + "\025datasource_references\030\007" + + " \001(\0132=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\003\340A\002\022R\n" + + "\007options\030\003" + + " \001(\0132<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\003\340A\001\022S\n" + + "\017example_queries\030\005" + + " \003(\01325.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\022^\n" + + "\025looker_golden_queries\030\013" + + " \003(\0132:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\003\340A\001\022R\n" + "\016glossary_terms\030\010" + " \003(\01325.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\003\340A\001\022f\n" - + "\024schema_relationships\030\t \003(\0132C.google.cloud.ge" - + "minidataanalytics.v1beta.Context.SchemaRelationshipB\003\340A\001\032\204\004\n" + + "\024schema_relationships\030\t" + + " \003(\0132C.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\003\340A\001\032\204\004\n" + "\022SchemaRelationship\022j\n" - + "\021left_schema_paths\030\001 \001(\0132O.google.clou" - + "d.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\022k\n" - + "\022right_schema_paths\030\002 \001(\0132O.google.cloud.geminidat" - + "aanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\022[\n" - + "\007sources\030\003 \003(\0162J.goog" - + "le.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\022\030\n" + + "\021left_schema_paths\030\001" + + " \001(\0132O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\022k\n" + + "\022right_schema_paths\030\002" + + " \001(\0132O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\022[\n" + + "\007sources\030\003" + + " \003(\0162J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\022\030\n" + "\020confidence_score\030\004 \001(\002\032/\n" + "\013SchemaPaths\022\021\n" + "\ttable_fqn\030\001 \001(\t\022\r\n" @@ -154,14 +153,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005query\"\215\001\n" + "\021LookerGoldenQuery\022\'\n" + "\032natural_language_questions\030\004 \003(\tB\003\340A\001\022O\n" - + "\014looker_query\030\005 \001(\01324.google" - + ".cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001\"\210\002\n" + + "\014looker_query\030\005" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001\"\210\002\n" + "\013LookerQuery\022\022\n" + "\005model\030\001 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\002 \001(\tB\003\340A\002\022\023\n" + "\006fields\030\003 \003(\tB\003\340A\001\022Q\n" - + "\007filters\030\004 \003(\0132;.google.clou" - + "d.geminidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + + "\007filters\030\004" + + " \003(\0132;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + "\005sorts\030\005 \003(\tB\003\340A\001\022\027\n" + "\005limit\030\006 \001(\tB\003\340A\001H\000\210\001\001\0320\n" + "\006Filter\022\022\n" @@ -183,19 +182,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032big_query_max_billed_bytes\030\001" + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\326\002\n" + "\014ChartOptions\022V\n" - + "\005image\030\001 \001(\0132B.go" - + "ogle.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\003\340A\001\032\355\001\n" + + "\005image\030\001" + + " \001(\0132B.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\003\340A\001\032\355\001\n" + "\014ImageOptions\022^\n" - + "\010no_image\030\001 \001(\0132J.google.cloud.g" - + "eminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\000\022\\\n" - + "\003svg\030\002 \001(\0132M.goo" - + "gle.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\000\032\t\n" + + "\010no_image\030\001" + + " \001(\0132J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\000\022\\\n" + + "\003svg\030\002" + + " \001(\0132M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\000\032" + + "\t\n" + "\007NoImage\032\014\n\n" + "SvgOptionsB\006\n" + "\004kind\"\207\001\n" + "\017AnalysisOptions\022T\n" - + "\006python\030\001 \001(\0132?.google.cloud." - + "geminidataanalytics.v1beta.AnalysisOptions.PythonB\003\340A\001\032\036\n" + + "\006python\030\001" + + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\003\340A\001\032\036\n" + "\006Python\022\024\n" + "\007enabled\030\001 \001(\010B\003\340A\001B\235\002\n" + "+com.google.cloud.geminidataanalytics.v1betaB\014ContextProtoP\001Z]cloud.go" diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java index a4e17a0ebdbc..cc50380d61c3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java @@ -80,35 +80,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ":google/cloud/geminidataanalytics/v1beta/conversation.proto\022\'google.cloud.gemin" + "idataanalytics.v1beta\032\037google/api/field_" - + "behavior.proto\032\033google/api/field_info.pr" - + "oto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\312\003\n" + + "behavior.proto\032\033google/api/field_info.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\312\003\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\001\340A\010\022\023\n" + "\006agents\030\002 \003(\tB\003\340A\002\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" + "\016last_used_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" - + "\006labels\030\t \003(\0132A.google.cloud.geminidataanal" - + "ytics.v1beta.Conversation.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\t" + + " \003(\0132A.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\230\001\352A\224\001\n" - + "/geminidataanalytics.googleapis.com/Conversation\022Dprojects/{pro" - + "ject}/locations/{location}/conversations/{conversation}*\r" + + "/geminidataanalytics.googleapis.com/Conversation\022Dprojects/{project}/locations/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"\365\001\n" + "\031CreateConversationRequest\022G\n" + "\006parent\030\001 \001(" + "\tB7\340A\002\372A1\022/geminidataanalytics.googleapis.com/Conversation\022\034\n" + "\017conversation_id\030\002 \001(\tB\003\340A\001\022P\n" - + "\014conversation\030\003 \001(\0132" - + "5.google.cloud.geminidataanalytics.v1beta.ConversationB\003\340A\002\022\037\n\n" + + "\014conversation\030\003" + + " \001(\01325.google.cloud.geminidataanalytics.v1beta.ConversationB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"_\n" + "\026GetConversationRequest\022E\n" + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\"\251\001\n" + "\030ListConversationsRequest\022G\n" - + "\006parent\030\001 \001(\tB7\340A\002\372" - + "A1\022/geminidataanalytics.googleapis.com/Conversation\022\026\n" + + "\006parent\030\001 \001(" + + "\tB7\340A\002\372A1\022/geminidataanalytics.googleapis.com/Conversation\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\202\001\n" diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceProto.java index e20d3dd60c6a..44fd6c52a869 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceProto.java @@ -97,8 +97,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "icy.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\325\001\n" + "\025ListDataAgentsRequest\022D\n" - + "\006parent\030\001 \001(\tB4\340A\002\372A.\022,gemini" - + "dataanalytics.googleapis.com/DataAgent\022\026\n" + + "\006parent\030\001 \001(" + + "\tB4\340A\002\372A.\022,geminidataanalytics.googleapis.com/DataAgent\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -117,8 +117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\031\n" + "\014show_deleted\030\006 \001(\010B\003\340A\001\022s\n" - + "\016creator_filter\030\007 \001(\0162V.google.cloud.geminidataanalytics.v1bet" - + "a.ListAccessibleDataAgentsRequest.CreatorFilterB\003\340A\001\"a\n\r" + + "\016creator_filter\030\007" + + " \001(\0162V.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilterB\003\340A\001\"a\n\r" + "CreatorFilter\022\036\n" + "\032CREATOR_FILTER_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\020\n" @@ -136,8 +136,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,geminidataanalytics.googleapis.com/DataAgent\022\032\n\r" + "data_agent_id\030\002 \001(\tB\003\340A\001\022K\n\n" - + "data_agent\030\003 \001(\01322.google.cl" - + "oud.geminidataanalytics.v1beta.DataAgentB\003\340A\002\022\037\n\n" + + "data_agent\030\003" + + " \001(\01322.google.cloud.geminidataanalytics.v1beta.DataAgentB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\274\001\n" + "\026UpdateDataAgentRequest\0224\n" + "\013update_mask\030\001" @@ -160,53 +160,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020DataAgentService\022\326\001\n" + "\016ListDataAgents\022>.google.cloud.geminidat" + "aanalytics.v1beta.ListDataAgentsRequest\032?.google.cloud.geminidataanalytics.v1bet" - + "a.ListDataAgentsResponse\"C\332A\006parent\202\323\344\223\002" - + "4\0222/v1beta/{parent=projects/*/locations/*}/dataAgents\022\203\002\n" + + "a.ListDataAgentsResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1beta/{parent=projects/*/locations/*}/dataAgents\022\203\002\n" + "\030ListAccessibleDataAgents\022H.google.cloud.geminidataanalytics.v1" + "beta.ListAccessibleDataAgentsRequest\032I.google.cloud.geminidataanalytics.v1beta.L" - + "istAccessibleDataAgentsResponse\"R\332A\006pare" - + "nt\202\323\344\223\002C\022A/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\022\303\001\n" + + "istAccessibleDataAgentsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\022\303\001\n" + "\014GetDataAgent\022<.google.cloud.geminidataan" - + "alytics.v1beta.GetDataAgentRequest\0322.google.cloud.geminidataanalytics.v1beta.Dat" - + "aAgent\"A\332A\004name\202\323\344\223\0024\0222/v1beta/{name=projects/*/locations/*/dataAgents/*}\022\375\001\n" - + "\017CreateDataAgent\022?.google.cloud.geminidataa" - + "nalytics.v1beta.CreateDataAgentRequest\032\035.google.longrunning.Operation\"\211\001\312A\036\n" - + "\tDataAgent\022\021OperationMetadata\332A\037parent,data_" - + "agent,data_agent_id\202\323\344\223\002@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\n" + + "alytics.v1beta.GetDataAgentRequest\0322.google.cloud.geminidataanalytics.v1beta.DataAgent\"A\332A\004name\202\323\344\223\0024\0222/v1beta/{name=projects/*/locations/*/dataAgents/*}\022\375\001\n" + + "\017CreateDataAgent\022?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\032\035.google.longrunning.Operation\"\211\001\312A\036\n" + + "\tDataAgent\022\021OperationMetadata\332A\037parent,data_agent,data_agent_id\202\323\344\223\002@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\n" + "data_agent\022\377\001\n" + "\023CreateDataAgentSync\022?.google.cloud.geminidataanalytics.v1beta.Crea" + "teDataAgentRequest\0322.google.cloud.gemini" + "dataanalytics.v1beta.DataAgent\"s\332A\037paren" - + "t,data_agent,data_agent_id\202\323\344\223\002K\"=/v1bet" - + "a/{parent=projects/*/locations/*}/dataAgents:createSync:\n" + + "t,data_agent,data_agent_id\202\323\344\223\002K\"=/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync:\n" + "data_agent\022\377\001\n" - + "\017UpdateDataAgent\022?.google.cloud.geminidataanalyti" - + "cs.v1beta.UpdateDataAgentRequest\032\035.google.longrunning.Operation\"\213\001\312A\036\n" - + "\tDataAgent\022\021OperationMetadata\332A\026data_agent,update_" - + "mask\202\323\344\223\002K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\n" + + "\017UpdateDataAgent\022?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\032\035.google.longrunning.Operation\"\213\001\312A\036\n" + + "\tDataAgent\022\021OperationMetadata\332A\026data_agent,update_mask\202\323\344\223\002K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\n" + "data_agent\022\201\002\n" + "\023UpdateDataAgentSync\022?.google.cloud.geminidataanalytics.v1beta.UpdateDa" + "taAgentRequest\0322.google.cloud.geminidata" + "analytics.v1beta.DataAgent\"u\332A\026data_agen" - + "t,update_mask\202\323\344\223\002V2H/v1beta/{data_agent" - + ".name=projects/*/locations/*/dataAgents/*}:updateSync:\n" + + "t,update_mask\202\323\344\223\002V2H/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync:\n" + "data_agent\022\341\001\n" - + "\017DeleteDataAgent\022?.google.cloud.geminidataanalytics" - + ".v1beta.DeleteDataAgentRequest\032\035.google.longrunning.Operation\"n\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "4*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\022\274\001\n" + + "\017DeleteDataAgent\022?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\032\035.google.longrunning.Operation\"n\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0024*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\022\274\001\n" + "\023DeleteDataAgentSync\022?.google.cloud.geminidataanalytics.v1beta." + "DeleteDataAgentRequest\032\026.google.protobuf" - + ".Empty\"L\332A\004name\202\323\344\223\002?*=/v1beta/{name=pro" - + "jects/*/locations/*/dataAgents/*}:deleteSync\022\244\001\n" + + ".Empty\"L\332A\004name\202\323\344\223\002?*=/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync\022\244\001\n" + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.Policy" - + "\"Y\332A\010resource\202\323\344\223\002H\"C/v1beta/{resource=p" - + "rojects/*/locations/*/dataAgents/*}:getIamPolicy:\001*\022\244\001\n" + + "\"Y\332A\010resource\202\323\344\223\002H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy:\001*\022\244\001\n" + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.google.iam.v1" + ".Policy\"Y\332A\010resource\202\323\344\223\002H\"C/v1beta/{res" + "ource=projects/*/locations/*/dataAgents/" - + "*}:setIamPolicy:\001*\032V\312A\"geminidataanalyti" - + "cs.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\246\002\n" + + "*}:setIamPolicy:\001*\032V\312A\"geminidataanalytics.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\246\002\n" + "+com.google.cloud.geminidataanalytics.v1betaB\025Data" + "AgentServiceProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidat" + "aanalyticspb;geminidataanalyticspb\252\002\'Goo" diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java index 92e66569577e..d34b3cbc76fa 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java @@ -213,37 +213,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/resource.proto\0325google/cloud/geminidataanalytics/v1beta/context.proto\032:go" + "ogle/cloud/geminidataanalytics/v1beta/conversation.proto\0329google/cloud/geminidat" + "aanalytics/v1beta/credentials.proto\0328google/cloud/geminidataanalytics/v1beta/dat" - + "asource.proto\032\033google/protobuf/empty.pro" - + "to\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\220\002\n" + + "asource.proto\032\033google/protobuf/empty.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\220\002\n" + "\020QueryDataRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\023\n" + "\006prompt\030\002 \001(\tB\003\340A\002\022O\n" - + "\007context\030\003 \001(\01329.google.cloud.g" - + "eminidataanalytics.v1beta.QueryDataContextB\003\340A\002\022[\n" - + "\022generation_options\030\004 \001(\0132:.go" - + "ogle.cloud.geminidataanalytics.v1beta.GenerationOptionsB\003\340A\001\"\270\001\n" + + "\007context\030\003" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\003\340A\002\022[\n" + + "\022generation_options\030\004" + + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\003\340A\001\"\270\001\n" + "\021GenerationOptions\022\"\n" + "\025generate_query_result\030\001 \001(\010B\003\340A\001\022-\n" + " generate_natural_language_answer\030\002 \001(\010B\003\340A\001\022!\n" + "\024generate_explanation\030\003 \001(\010B\003\340A\001\022-\n" + " generate_disambiguation_question\030\004 \001(\010B\003\340A\001\"\364\001\n" + "\020QueryDataContext\022a\n" - + "\025datasource_references\030\001 \001(\0132=.google.cloud.gemin" - + "idataanalytics.v1beta.DatasourceReferencesB\003\340A\002\022}\n" - + "$parameterized_secure_view_parameters\030\002 \001(\0132J.google.cloud.geminidataa" - + "nalytics.v1beta.ParameterizedSecureViewParametersB\003\340A\001\"\313\001\n" + + "\025datasource_references\030\001" + + " \001(\0132=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\003\340A\002\022}\n" + + "$parameterized_secure_view_parameters\030\002" + + " \001(\0132J.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParametersB\003\340A\001\"\313\001\n" + "!ParameterizedSecureViewParameters\022s\n\n" - + "parameters\030\001 \003(\0132Z.google.cloud.geminidataanalytics.v1beta.Param" - + "eterizedSecureViewParameters.ParametersEntryB\003\340A\001\0321\n" + + "parameters\030\001" + + " \003(\0132Z.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParametersEntryB\003\340A\001\0321\n" + "\017ParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\336\001\n" + "\021QueryDataResponse\022\027\n" + "\017generated_query\030\001 \001(\t\022\032\n" + "\022intent_explanation\030\002 \001(\t\022R\n" - + "\014query_result\030\003 \001(\0132<." - + "google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\022\037\n" + + "\014query_result\030\003" + + " \001(\0132<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\022\037\n" + "\027natural_language_answer\030\004 \001(\t\022\037\n" + "\027disambiguation_question\030\005 \003(\t\"\244\003\n" + "\023ExecutedQueryResult\022T\n" @@ -260,8 +259,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005Value\022\r\n" + "\005value\030\001 \001(\t\032Y\n" + "\003Row\022R\n" - + "\006values\030\001 \003(\013" - + "2B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\244\001\n" + + "\006values\030\001" + + " \003(\0132B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\244\001\n" + "\023ListMessagesRequest\022G\n" + "\006parent\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022\026\n" @@ -269,29 +268,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"z\n" + "\024ListMessagesResponse\022I\n" - + "\010messages\030\001 \003(\01327." - + "google.cloud.geminidataanalytics.v1beta.StorageMessage\022\027\n" + + "\010messages\030\001" + + " \003(\01327.google.cloud.geminidataanalytics.v1beta.StorageMessage\022\027\n" + "\017next_page_token\030\002 \001(\t\"g\n" + "\016StorageMessage\022\022\n\n" + "message_id\030\001 \001(\t\022A\n" + "\007message\030\002" + " \001(\01320.google.cloud.geminidataanalytics.v1beta.Message\"\372\005\n" + "\013ChatRequest\022O\n" - + "\016inline_context\030e \001(\01320.google.cloud." - + "geminidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" - + "\026conversation_reference\030g \001(\0132>.goog" - + "le.cloud.geminidataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" - + "\022data_agent_context\030h \001(\01329.google.cloud.geminidataan" - + "alytics.v1beta.DataAgentContextB\003\340A\001H\000\022u\n" - + "\037client_managed_resource_context\030i \001(\0132" - + "E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\003\340A\001H\000\022F\n" + + "\016inline_context\030e" + + " \001(\01320.google.cloud.geminidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" + + "\026conversation_reference\030g" + + " \001(\0132>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" + + "\022data_agent_context\030h" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\001H\000\022u\n" + + "\037client_managed_resource_context\030i" + + " \001(\0132E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\003\340A\001H\000\022F\n" + "\007project\030\001 \001(\tB5\030\001\340A\001\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\023\n" + "\006parent\030\003 \001(\tB\003\340A\002\022G\n" - + "\010messages\030\002 \003(\01320.google.cl" - + "oud.geminidataanalytics.v1beta.MessageB\003\340A\002\022]\n\r" - + "thinking_mode\030\t \001(\0162A.google.clou" - + "d.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\003\340A\001\"E\n" + + "\010messages\030\002" + + " \003(\01320.google.cloud.geminidataanalytics.v1beta.MessageB\003\340A\002\022]\n\r" + + "thinking_mode\030\t" + + " \001(\0162A.google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\003\340A\001\"E\n" + "\014ThinkingMode\022\035\n" + "\031THINKING_MODE_UNSPECIFIED\020\000\022\010\n" + "\004FAST\020\001\022\014\n" @@ -300,10 +299,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020DataAgentContext\022H\n\n" + "data_agent\030\001 \001(\tB4\340A\002\372A.\n" + ",geminidataanalytics.googleapis.com/DataAgent\022N\n" - + "\013credentials\030\002 \001(\01324.google.cloud" - + ".geminidataanalytics.v1beta.CredentialsB\003\340A\001\022f\n" - + "\017context_version\030\003 \001(\0162H.google.c" - + "loud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + + "\013credentials\030\002" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\022f\n" + + "\017context_version\030\003" + + " \001(\0162H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + "\016ContextVersion\022\037\n" + "\033CONTEXT_VERSION_UNSPECIFIED\020\000\022\013\n" + "\007STAGING\020\001\022\r\n" @@ -311,18 +310,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ConversationReference\022M\n" + "\014conversation\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022Z\n" - + "\022data_agent_context\030\003 \001(\013" - + "29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\242\001\n" + + "\022data_agent_context\030\003" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\242\001\n" + "\034ClientManagedResourceContext\022M\n" - + "\016inline_context\030\001 \001(" - + "\01320.google.cloud.geminidataanalytics.v1beta.ContextB\003\340A\002\022\034\n" + + "\016inline_context\030\001" + + " \001(\01320.google.cloud.geminidataanalytics.v1beta.ContextB\003\340A\002\022\034\n" + "\017conversation_id\030\002 \001(\tB\003\340A\001\022\025\n" + "\010agent_id\030\003 \001(\tB\003\340A\001\"\376\001\n" + "\007Message\022L\n" - + "\014user_message\030\002 \001(\01324.google.cloud.g" - + "eminidataanalytics.v1beta.UserMessageH\000\022P\n" - + "\016system_message\030\003 \001(\01326.google.cloud.g" - + "eminidataanalytics.v1beta.SystemMessageH\000\0222\n" + + "\014user_message\030\002" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.UserMessageH\000\022P\n" + + "\016system_message\030\003" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.SystemMessageH\000\0222\n" + "\ttimestamp\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" + "message_id\030\004 \001(\tB\003\340A\001B\006\n" + "\004kind\"%\n" @@ -330,29 +329,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001 \001(\tH\000B\006\n" + "\004kind\"\245\005\n\r" + "SystemMessage\022D\n" - + "\004text\030\001 \001(\01324." - + "google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" - + "\006schema\030\002 \001(\01326.google.c" - + "loud.geminidataanalytics.v1beta.SchemaMessageH\000\022D\n" + + "\004text\030\001" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" + + "\006schema\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\000\022D\n" + "\004data\030\003" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.DataMessageH\000\022L\n" + "\010analysis\030\004" + " \001(\01328.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\000\022F\n" + "\005chart\030\005" + " \001(\01325.google.cloud.geminidataanalytics.v1beta.ChartMessageH\000\022F\n" - + "\005error\030\006 \001" - + "(\01325.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\000\022W\n" + + "\005error\030\006" + + " \001(\01325.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\000\022W\n" + "\017example_queries\030\r" + " \001(\01327.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022[\n\r" - + "clarification\030\016 \001(\0132=.google.cloud.geminidataana" - + "lytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n" + + "clarification\030\016" + + " \001(\0132=.google.cloud.geminidataanalytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n" + "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n" + "\004kindB\013\n" + "\t_group_id\"\356\001\n" + "\013TextMessage\022\022\n" + "\005parts\030\001 \003(\tB\003\340A\001\022U\n" - + "\ttext_type\030\002 \001(\0162=.google.cloud.gemi" - + "nidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n" + + "\ttext_type\030\002" + + " \001(\0162=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n" + "\021thought_signature\030\003 \001(\014B\003\340A\001\"T\n" + "\010TextType\022\031\n" + "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n" @@ -360,10 +359,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007THOUGHT\020\002\022\014\n" + "\010PROGRESS\020\003\"\247\001\n\r" + "SchemaMessage\022E\n" - + "\005query\030\001 \001(\0132" - + "4.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" - + "\006result\030\002 \001(\01325.google" - + ".cloud.geminidataanalytics.v1beta.SchemaResultH\000B\006\n" + + "\005query\030\001" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" + + "\006result\030\002" + + " \001(\01325.google.cloud.geminidataanalytics.v1beta.SchemaResultH\000B\006\n" + "\004kind\"$\n" + "\013SchemaQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\"]\n" @@ -374,25 +373,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005query\030\001" + " \001(\01322.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + "generated_sql\030\002 \001(\tH\000\022E\n" - + "\006result\030\003 \001(\01323.go" - + "ogle.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" - + "\026generated_looker_query\030\004 \001" - + "(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" + + "\006result\030\003" + + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" + + "\026generated_looker_query\030\004" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" + "big_query_job\030\005" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + "\004kind\"\337\001\n" + "\tDataQuery\022K\n" - + "\006looker\030\004 \001(\01324.google.cloud.gemin" - + "idataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + + "\006looker\030\004" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022M\n" - + "\013datasources\030\002 \003(\01323.google.cloud.g" - + "eminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + + "\013datasources\030\002" + + " \003(\01323.google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + "query_type\"\307\001\n\n" + "DataResult\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022D\n" - + "\006schema\030\005 \001(\0132/.google.cloud" - + ".geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + + "\006schema\030\005" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" + "\016formatted_data\030\006" + " \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" @@ -400,15 +399,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010location\030\005 \001(\tB\003\340A\001\022_\n" - + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanaly" - + "tics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + + "\021destination_table\030\003" + + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + "\006schema\030\007" + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + "\017AnalysisMessage\022G\n" - + "\005query\030\001 \001(\01326.google.cloud." - + "geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" - + "\016progress_event\030\002 \001(\01326.google.clou" - + "d.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + + "\005query\030\001" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" + + "\016progress_event\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + "\004kind\"F\n\r" + "AnalysisQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\036\n" @@ -437,17 +436,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n" + "\013ChartResult\0221\n" + "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" - + "\005image\030\003 \001(\0132-.google.clou" - + "d.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + + "\005image\030\003" + + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + "\014ErrorMessage\022\021\n" + "\004text\030\001 \001(\tB\003\340A\003\"\363\003\n" + "\025ClarificationQuestion\022\025\n" + "\010question\030\001 \001(\tB\003\340A\002\022i\n" - + "\016selection_mode\030\002 \001(\0162L.google.clou" - + "d.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n" + + "\016selection_mode\030\002" + + " \001(\0162L.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n" + "\007options\030\003 \003(\tB\003\340A\002\022\202\001\n" - + "\033clarification_question_type\030\004 \001(\0162X.google.cloud.geminidataanaly" - + "tics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r" + + "\033clarification_question_type\030\004" + + " \001(\0162X.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r" + "SelectionMode\022\036\n" + "\032SELECTION_MODE_UNSPECIFIED\020\000\022\021\n\r" + "SINGLE_SELECT\020\001\022\020\n" @@ -457,8 +456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FILTER_VALUES\020\001\022\n\n" + "\006FIELDS\020\002\"n\n" + "\024ClarificationMessage\022V\n" - + "\tquestions\030\001 \003(\0132>.google.cloud.gemini" - + "dataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n" + + "\tquestions\030\001" + + " \003(\0132>.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n" + "\016ExampleQueries\022S\n" + "\017example_queries\030\001" + " \003(\01325.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" @@ -467,35 +466,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004data\030\002 \001(\014B\003\340A\0022\256\014\n" + "\017DataChatService\022\251\001\n" + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatReq" - + "uest\0320.google.cloud.geminidataanalytics." - + "v1beta.Message\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + + "uest\0320.google.cloud.geminidataanalytics.v1beta.Message\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + "\022CreateConversation\022B.google.cloud.geminida" + "taanalytics.v1beta.CreateConversationRequest\0325.google.cloud.geminidataanalytics." + "v1beta.Conversation\"q\332A#parent,conversat" - + "ion,conversation_id\202\323\344\223\002E\"5/v1beta/{pare" - + "nt=projects/*/locations/*}/conversations:\014conversation\022\266\001\n" + + "ion,conversation_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n" + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta." + "DeleteConversationRequest\032\026.google.proto" - + "buf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta/{name=" - + "projects/*/locations/*/conversations/*}\022\317\001\n" + + "buf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1beta.GetConversationReq" + "uest\0325.google.cloud.geminidataanalytics." - + "v1beta.Conversation\"D\332A\004name\202\323\344\223\0027\0225/v1b" - + "eta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + + "v1beta.Conversation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + "\021ListConversations\022A.google.cloud.geminidataanalytics.v1beta.ListCo" + "nversationsRequest\032B.google.cloud.geminidataanalytics.v1beta.ListConversationsRe" - + "sponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{parent" - + "=projects/*/locations/*}/conversations\022\336\001\n" + + "sponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" + "\014ListMessages\022<.google.cloud.geminidat" + "aanalytics.v1beta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta." - + "ListMessagesResponse\"Q\332A\006parent\202\323\344\223\002B\022@/" - + "v1beta/{parent=projects/*/locations/*/conversations/*}/messages\022\300\001\n" + + "ListMessagesResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\022\300\001\n" + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta." + "QueryDataRequest\032:.google.cloud.geminida" + "taanalytics.v1beta.QueryDataResponse\"<\202\323" + "\344\223\0026\"1/v1beta/{parent=projects/*/locatio" - + "ns/*}:queryData:\001*\032V\312A\"geminidataanalyti" - + "cs.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" + + "ns/*}:queryData:\001*\032V\312A\"geminidataanalytics.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" + "+com.google.cloud.geminidataanalytics.v1betaB\024Data" + "ChatServiceProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidata" + "analyticspb;geminidataanalyticspb\252\002\'Goog" diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java index af9b0cca1ecb..735e9a4506da 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java @@ -125,41 +125,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "8google/cloud/geminidataanalytics/v1beta/datasource.proto\022\'google.cloud.geminid" + "ataanalytics.v1beta\032\037google/api/field_be" + "havior.proto\032;google/cloud/geminidataanalytics/v1beta/agent_context.proto\0329googl" - + "e/cloud/geminidataanalytics/v1beta/crede" - + "ntials.proto\032\034google/protobuf/struct.proto\"\240\004\n" + + "e/cloud/geminidataanalytics/v1beta/credentials.proto\032\034google/protobuf/struct.proto\"\240\004\n" + "\024DatasourceReferences\022N\n" - + "\002bq\030\001 \001(\0132" - + "@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" - + "\006studio\030\002 " - + "\001(\0132C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" - + "\006looker\030\003 \001(\0132@.google.cloud.geminidataanal" - + "ytics.v1beta.LookerExploreReferencesH\000\022L\n" + + "\002bq\030\001" + + " \001(\0132@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" + + "\006studio\030\002" + + " \001(\0132C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" + + "\006looker\030\003" + + " \001(\0132@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\000\022L\n" + "\007alloydb\030\010" + " \001(\01329.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" - + "\021spanner_reference\030\t \001(\01329.google.cloud.g" - + "eminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" + + "\021spanner_reference\030\t" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" + "\023cloud_sql_reference\030\n" + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\000B\014\n\n" + "references\"y\n" + "\027BigQueryTableReferences\022^\n" - + "\020table_references\030\001 \003" - + "(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\"\247\001\n" + + "\020table_references\030\001" + + " \003(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\"\247\001\n" + "\026BigQueryTableReference\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "dataset_id\030\003 \001(\tB\003\340A\002\022\025\n" + "\010table_id\030\004 \001(\tB\003\340A\002\022D\n" - + "\006schema\030\006 \001(\0132/.google.cl" - + "oud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + + "\006schema\030\006" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + "\032StudioDatasourceReferences\022]\n" - + "\021studio_references\030\002 \003(\0132B.google.cloud.gemin" - + "idataanalytics.v1beta.StudioDatasourceReference\"7\n" + + "\021studio_references\030\002" + + " \003(\0132B.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference\"7\n" + "\031StudioDatasourceReference\022\032\n\r" + "datasource_id\030\001 \001(\tB\003\340A\002\"\334\001\n" + "\020AlloyDbReference\022b\n" - + "\022database_reference\030\001 \001(\0132A.goog" - + "le.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\003\340A\002\022d\n" - + "\027agent_context_reference\030\003 \001(\0132>.google.cloud.gemini" - + "dataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\255\001\n" + + "\022database_reference\030\001" + + " \001(\0132A.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\003" + + " \001(\0132>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\255\001\n" + "\030AlloyDbDatabaseReference\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\002 \001(\tB\003\340A\002\022\027\n\n" @@ -168,13 +167,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013database_id\030\005 \001(\tB\003\340A\002\022\026\n" + "\ttable_ids\030\006 \003(\tB\003\340A\001\"\334\001\n" + "\020SpannerReference\022b\n" - + "\022database_reference\030\001 \001(\0132A.googl" - + "e.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\003\340A\002\022d\n" - + "\027agent_context_reference\030\002 \001(\0132>.google.cloud.geminid" - + "ataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\265\002\n" + + "\022database_reference\030\001" + + " \001(\0132A.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\002" + + " \001(\0132>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\265\002\n" + "\030SpannerDatabaseReference\022]\n" - + "\006engine\030\006 \001(\0162H.google.cloud.geminidataana" - + "lytics.v1beta.SpannerDatabaseReference.EngineB\003\340A\002\022\027\n\n" + + "\006engine\030\006" + + " \001(\0162H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\003\340A\002\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\002 \001(\tB\003\340A\002\022\030\n" + "\013instance_id\030\003 \001(\tB\003\340A\002\022\030\n" @@ -185,13 +184,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GOOGLE_SQL\020\001\022\016\n\n" + "POSTGRESQL\020\002\"\336\001\n" + "\021CloudSqlReference\022c\n" - + "\022database_reference\030\001 \001(\0132B.google.cloud.geminidataanalyt" - + "ics.v1beta.CloudSqlDatabaseReferenceB\003\340A\002\022d\n" - + "\027agent_context_reference\030\002 \001(\0132>.goo" - + "gle.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\262\002\n" + + "\022database_reference\030\001" + + " \001(\0132B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\002" + + " \001(\0132>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\262\002\n" + "\031CloudSqlDatabaseReference\022^\n" - + "\006engine\030\001 \001(\0162I.google.c" - + "loud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\003\340A\002\022\027\n\n" + + "\006engine\030\001" + + " \001(\0162I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\003\340A\002\022\027\n\n" + "project_id\030\002 \001(\tB\003\340A\002\022\023\n" + "\006region\030\003 \001(\tB\003\340A\002\022\030\n" + "\013instance_id\030\004 \001(\tB\003\340A\002\022\030\n" @@ -202,15 +201,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "POSTGRESQL\020\001\022\t\n" + "\005MYSQL\020\002\"\313\001\n" + "\027LookerExploreReferences\022`\n" - + "\022explore_references\030\001 \003(\0132?.google.cl" - + "oud.geminidataanalytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" - + "\013credentials\030\002 \001(\0132" - + "4.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + + "\022explore_references\030\001" + + " \003(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" + + "\013credentials\030\002" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022j\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132B.goo" - + "gle.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + + " \001(\0132B.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + "\014lookml_model\030\004 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\005 \001(\tB\003\340A\002\022D\n" + "\006schema\030\010" @@ -220,17 +218,17 @@ 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\"\212\005\n\n" + "Datasource\022c\n" - + "\030bigquery_table_reference\030\001 \001(\0132?.google.cloud.geminidataa" - + "nalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001" + + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022c\n" - + "\030looker_explore_reference\030\004 \001(\0132?.google.clou" - + "d.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022W\n" - + "\022alloy_db_reference\030\014 \001(" - + "\01329.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + + "\030looker_explore_reference\030\004" + + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022W\n" + + "\022alloy_db_reference\030\014" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + "\021spanner_reference\030\r" + " \001(\01329.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" - + "\023cloud_sql_reference\030\016 \001(\0132:.google.cloud.gemin" - + "idataanalytics.v1beta.CloudSqlReferenceH\000\022D\n" + + "\023cloud_sql_reference\030\016" + + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\000\022D\n" + "\006schema\030\007" + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\0223\n\r" + "struct_schema\030\n" @@ -261,8 +259,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "DataFilter\022\022\n" + "\005field\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\022J\n" - + "\004type\030\003 \001(\01627.google.cloud.gemi" - + "nidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + + "\004type\030\003" + + " \001(\01627.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + "\016DataFilterType\022 \n" + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + "ALWAYS_FILTER\020\001B\240\002\n" diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetCredentialsProvider.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 52f7727e6526..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceSettings; -import com.google.cloud.geminidataanalytics.v1beta.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceSettings dataAgentServiceSettings = - DataAgentServiceSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DataAgentServiceClient dataAgentServiceClient = - DataAgentServiceClient.create(dataAgentServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_Create_SetCredentialsProvider_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetEndpoint.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 3d8f2cb55836..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_Create_SetEndpoint_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceSettings; -import com.google.cloud.geminidataanalytics.v1beta.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceSettings dataAgentServiceSettings = - DataAgentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - DataAgentServiceClient dataAgentServiceClient = - DataAgentServiceClient.create(dataAgentServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_Create_SetEndpoint_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateUseHttpJsonTransport.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 8be07fb6cfe3..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_Create_UseHttpJsonTransport_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceSettings; - -public class SyncCreateUseHttpJsonTransport { - - public static void main(String[] args) throws Exception { - syncCreateUseHttpJsonTransport(); - } - - public static void syncCreateUseHttpJsonTransport() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceSettings dataAgentServiceSettings = - DataAgentServiceSettings.newHttpJsonBuilder().build(); - DataAgentServiceClient dataAgentServiceClient = - DataAgentServiceClient.create(dataAgentServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_Create_UseHttpJsonTransport_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgent.java deleted file mode 100644 index 2d8544b66ff5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgent.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.longrunning.Operation; - -public class AsyncCreateDataAgent { - - public static void main(String[] args) throws Exception { - asyncCreateDataAgent(); - } - - public static void asyncCreateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDataAgentId("dataAgentId1752773622") - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.createDataAgentCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgentLRO.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgentLRO.java deleted file mode 100644 index c07fbd0a3bf5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/AsyncCreateDataAgentLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; - -public class AsyncCreateDataAgentLRO { - - public static void main(String[] args) throws Exception { - asyncCreateDataAgentLRO(); - } - - public static void asyncCreateDataAgentLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDataAgentId("dataAgentId1752773622") - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - dataAgentServiceClient.createDataAgentOperationCallable().futureCall(request); - // Do something. - DataAgent response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_LRO_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgent.java deleted file mode 100644 index 8dd1780f1af4..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgent.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgent { - - public static void main(String[] args) throws Exception { - syncCreateDataAgent(); - } - - public static void syncCreateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDataAgentId("dataAgentId1752773622") - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - DataAgent response = dataAgentServiceClient.createDataAgentAsync(request).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentLocationnameDataagentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentLocationnameDataagentString.java deleted file mode 100644 index ccb9a4c624c3..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentLocationnameDataagentString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_LocationnameDataagentString_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgentLocationnameDataagentString { - - public static void main(String[] args) throws Exception { - syncCreateDataAgentLocationnameDataagentString(); - } - - public static void syncCreateDataAgentLocationnameDataagentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - DataAgent response = - dataAgentServiceClient.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_LocationnameDataagentString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentStringDataagentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentStringDataagentString.java deleted file mode 100644 index e346c5384bce..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagent/SyncCreateDataAgentStringDataagentString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_StringDataagentString_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgentStringDataagentString { - - public static void main(String[] args) throws Exception { - syncCreateDataAgentStringDataagentString(); - } - - public static void syncCreateDataAgentStringDataagentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - DataAgent response = - dataAgentServiceClient.createDataAgentAsync(parent, dataAgent, dataAgentId).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_StringDataagentString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/AsyncCreateDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/AsyncCreateDataAgentSync.java deleted file mode 100644 index 06b7404e8aae..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/AsyncCreateDataAgentSync.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class AsyncCreateDataAgentSync { - - public static void main(String[] args) throws Exception { - asyncCreateDataAgentSync(); - } - - public static void asyncCreateDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDataAgentId("dataAgentId1752773622") - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.createDataAgentSyncCallable().futureCall(request); - // Do something. - DataAgent response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSync.java deleted file mode 100644 index 50d1f0b07f12..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSync.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] -import com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgentSync { - - public static void main(String[] args) throws Exception { - syncCreateDataAgentSync(); - } - - public static void syncCreateDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - CreateDataAgentRequest request = - CreateDataAgentRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDataAgentId("dataAgentId1752773622") - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - DataAgent response = dataAgentServiceClient.createDataAgentSync(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncLocationnameDataagentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncLocationnameDataagentString.java deleted file mode 100644 index f9f8d9ff79b5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncLocationnameDataagentString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_LocationnameDataagentString_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgentSyncLocationnameDataagentString { - - public static void main(String[] args) throws Exception { - syncCreateDataAgentSyncLocationnameDataagentString(); - } - - public static void syncCreateDataAgentSyncLocationnameDataagentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - DataAgent response = - dataAgentServiceClient.createDataAgentSync(parent, dataAgent, dataAgentId); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_LocationnameDataagentString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncStringDataagentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncStringDataagentString.java deleted file mode 100644 index 7b4c8409e86a..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/createdataagentsync/SyncCreateDataAgentSyncStringDataagentString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_StringDataagentString_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateDataAgentSyncStringDataagentString { - - public static void main(String[] args) throws Exception { - syncCreateDataAgentSyncStringDataagentString(); - } - - public static void syncCreateDataAgentSyncStringDataagentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - DataAgent dataAgent = DataAgent.newBuilder().build(); - String dataAgentId = "dataAgentId1752773622"; - DataAgent response = - dataAgentServiceClient.createDataAgentSync(parent, dataAgent, dataAgentId); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_StringDataagentString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgent.java deleted file mode 100644 index 302a8276e425..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgent.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.longrunning.Operation; - -public class AsyncDeleteDataAgent { - - public static void main(String[] args) throws Exception { - asyncDeleteDataAgent(); - } - - public static void asyncDeleteDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.deleteDataAgentCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgentLRO.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgentLRO.java deleted file mode 100644 index 6e19170d24f6..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/AsyncDeleteDataAgentLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.protobuf.Empty; - -public class AsyncDeleteDataAgentLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteDataAgentLRO(); - } - - public static void asyncDeleteDataAgentLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - dataAgentServiceClient.deleteDataAgentOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_LRO_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgent.java deleted file mode 100644 index add7493018bf..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgent.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgent { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgent(); - } - - public static void syncDeleteDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setRequestId("requestId693933066") - .build(); - dataAgentServiceClient.deleteDataAgentAsync(request).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentDataagentname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentDataagentname.java deleted file mode 100644 index 0b5fecadd269..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentDataagentname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_Dataagentname_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgentDataagentname { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgentDataagentname(); - } - - public static void syncDeleteDataAgentDataagentname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - dataAgentServiceClient.deleteDataAgentAsync(name).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_Dataagentname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentString.java deleted file mode 100644 index 8f51248344c7..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagent/SyncDeleteDataAgentString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgentString { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgentString(); - } - - public static void syncDeleteDataAgentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString(); - dataAgentServiceClient.deleteDataAgentAsync(name).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/AsyncDeleteDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/AsyncDeleteDataAgentSync.java deleted file mode 100644 index df12b71e0eab..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/AsyncDeleteDataAgentSync.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.protobuf.Empty; - -public class AsyncDeleteDataAgentSync { - - public static void main(String[] args) throws Exception { - asyncDeleteDataAgentSync(); - } - - public static void asyncDeleteDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.deleteDataAgentSyncCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSync.java deleted file mode 100644 index b2a760ae941f..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSync.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgentSync { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgentSync(); - } - - public static void syncDeleteDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DeleteDataAgentRequest request = - DeleteDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setRequestId("requestId693933066") - .build(); - dataAgentServiceClient.deleteDataAgentSync(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncDataagentname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncDataagentname.java deleted file mode 100644 index 6dd7d2001114..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncDataagentname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_Dataagentname_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgentSyncDataagentname { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgentSyncDataagentname(); - } - - public static void syncDeleteDataAgentSyncDataagentname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - dataAgentServiceClient.deleteDataAgentSync(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_Dataagentname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncString.java deleted file mode 100644 index caf07a03fef5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/deletedataagentsync/SyncDeleteDataAgentSyncString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteDataAgentSyncString { - - public static void main(String[] args) throws Exception { - syncDeleteDataAgentSyncString(); - } - - public static void syncDeleteDataAgentSyncString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString(); - dataAgentServiceClient.deleteDataAgentSync(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/AsyncGetDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/AsyncGetDataAgent.java deleted file mode 100644 index 52f984470867..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/AsyncGetDataAgent.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; - -public class AsyncGetDataAgent { - - public static void main(String[] args) throws Exception { - asyncGetDataAgent(); - } - - public static void asyncGetDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetDataAgentRequest request = - GetDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .build(); - ApiFuture future = - dataAgentServiceClient.getDataAgentCallable().futureCall(request); - // Do something. - DataAgent response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgent.java deleted file mode 100644 index df0571b20849..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgent.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest; - -public class SyncGetDataAgent { - - public static void main(String[] args) throws Exception { - syncGetDataAgent(); - } - - public static void syncGetDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetDataAgentRequest request = - GetDataAgentRequest.newBuilder() - .setName(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .build(); - DataAgent response = dataAgentServiceClient.getDataAgent(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentDataagentname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentDataagentname.java deleted file mode 100644 index ca865b219fb2..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentDataagentname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_Dataagentname_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; - -public class SyncGetDataAgentDataagentname { - - public static void main(String[] args) throws Exception { - syncGetDataAgentDataagentname(); - } - - public static void syncGetDataAgentDataagentname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DataAgentName name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - DataAgent response = dataAgentServiceClient.getDataAgent(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_Dataagentname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentString.java deleted file mode 100644 index c3ba3078fc9e..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getdataagent/SyncGetDataAgentString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; - -public class SyncGetDataAgentString { - - public static void main(String[] args) throws Exception { - syncGetDataAgentString(); - } - - public static void syncGetDataAgentString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String name = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString(); - DataAgent response = dataAgentServiceClient.getDataAgent(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/AsyncGetIamPolicy.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index ad2bb2634ede..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class AsyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncGetIamPolicy(); - } - - public static void asyncGetIamPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = dataAgentServiceClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicy.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index c359c464de58..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - syncGetIamPolicy(); - } - - public static void syncGetIamPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = dataAgentServiceClient.getIamPolicy(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyResourcename.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index d7cd6cf57b11..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_Resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - Policy response = dataAgentServiceClient.getIamPolicy(resource); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_Resourcename_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 8d12f9307690..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ProjectName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String resource = ProjectName.of("[PROJECT]").toString(); - Policy response = dataAgentServiceClient.getIamPolicy(resource); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/AsyncGetLocation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/AsyncGetLocation.java deleted file mode 100644 index 0a83e6013bef..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/AsyncGetLocation.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.Location; - -public class AsyncGetLocation { - - public static void main(String[] args) throws Exception { - asyncGetLocation(); - } - - public static void asyncGetLocation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = dataAgentServiceClient.getLocationCallable().futureCall(request); - // Do something. - Location response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/SyncGetLocation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/SyncGetLocation.java deleted file mode 100644 index 8d2c73051692..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/getlocation/SyncGetLocation.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.Location; - -public class SyncGetLocation { - - public static void main(String[] args) throws Exception { - syncGetLocation(); - } - - public static void syncGetLocation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - Location response = dataAgentServiceClient.getLocation(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgents.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgents.java deleted file mode 100644 index e4424ffc0c35..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgents.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class AsyncListAccessibleDataAgents { - - public static void main(String[] args) throws Exception { - asyncListAccessibleDataAgents(); - } - - public static void asyncListAccessibleDataAgents() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListAccessibleDataAgentsRequest request = - ListAccessibleDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - ApiFuture future = - dataAgentServiceClient.listAccessibleDataAgentsPagedCallable().futureCall(request); - // Do something. - for (DataAgent element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgentsPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgentsPaged.java deleted file mode 100644 index 426c6b59f0c3..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/AsyncListAccessibleDataAgentsPaged.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.common.base.Strings; - -public class AsyncListAccessibleDataAgentsPaged { - - public static void main(String[] args) throws Exception { - asyncListAccessibleDataAgentsPaged(); - } - - public static void asyncListAccessibleDataAgentsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListAccessibleDataAgentsRequest request = - ListAccessibleDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - while (true) { - ListAccessibleDataAgentsResponse response = - dataAgentServiceClient.listAccessibleDataAgentsCallable().call(request); - for (DataAgent element : response.getDataAgentsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgents.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgents.java deleted file mode 100644 index f6524aea5cd4..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgents.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListAccessibleDataAgents { - - public static void main(String[] args) throws Exception { - syncListAccessibleDataAgents(); - } - - public static void syncListAccessibleDataAgents() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListAccessibleDataAgentsRequest request = - ListAccessibleDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - for (DataAgent element : - dataAgentServiceClient.listAccessibleDataAgents(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsLocationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsLocationname.java deleted file mode 100644 index f86cfca47c29..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsLocationname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_Locationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListAccessibleDataAgentsLocationname { - - public static void main(String[] args) throws Exception { - syncListAccessibleDataAgentsLocationname(); - } - - public static void syncListAccessibleDataAgentsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (DataAgent element : - dataAgentServiceClient.listAccessibleDataAgents(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_Locationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsString.java deleted file mode 100644 index f51f10fb2f5b..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listaccessibledataagents/SyncListAccessibleDataAgentsString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListAccessibleDataAgentsString { - - public static void main(String[] args) throws Exception { - syncListAccessibleDataAgentsString(); - } - - public static void syncListAccessibleDataAgentsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (DataAgent element : - dataAgentServiceClient.listAccessibleDataAgents(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgents.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgents.java deleted file mode 100644 index 0be93a732b55..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgents.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class AsyncListDataAgents { - - public static void main(String[] args) throws Exception { - asyncListDataAgents(); - } - - public static void asyncListDataAgents() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListDataAgentsRequest request = - ListDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - ApiFuture future = - dataAgentServiceClient.listDataAgentsPagedCallable().futureCall(request); - // Do something. - for (DataAgent element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgentsPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgentsPaged.java deleted file mode 100644 index 94b99e63d64f..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/AsyncListDataAgentsPaged.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.common.base.Strings; - -public class AsyncListDataAgentsPaged { - - public static void main(String[] args) throws Exception { - asyncListDataAgentsPaged(); - } - - public static void asyncListDataAgentsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListDataAgentsRequest request = - ListDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - while (true) { - ListDataAgentsResponse response = - dataAgentServiceClient.listDataAgentsCallable().call(request); - for (DataAgent element : response.getDataAgentsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgents.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgents.java deleted file mode 100644 index c7110bd01047..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgents.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListDataAgents { - - public static void main(String[] args) throws Exception { - syncListDataAgents(); - } - - public static void syncListDataAgents() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListDataAgentsRequest request = - ListDataAgentsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .setShowDeleted(true) - .build(); - for (DataAgent element : dataAgentServiceClient.listDataAgents(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsLocationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsLocationname.java deleted file mode 100644 index 8a589411a229..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_Locationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListDataAgentsLocationname { - - public static void main(String[] args) throws Exception { - syncListDataAgentsLocationname(); - } - - public static void syncListDataAgentsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (DataAgent element : dataAgentServiceClient.listDataAgents(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_Locationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsString.java deleted file mode 100644 index a47381a71bc5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listdataagents/SyncListDataAgentsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListDataAgentsString { - - public static void main(String[] args) throws Exception { - syncListDataAgentsString(); - } - - public static void syncListDataAgentsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (DataAgent element : dataAgentServiceClient.listDataAgents(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocations.java deleted file mode 100644 index 8c3d1b23f905..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocations.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.Location; - -public class AsyncListLocations { - - public static void main(String[] args) throws Exception { - asyncListLocations(); - } - - public static void asyncListLocations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataAgentServiceClient.listLocationsPagedCallable().futureCall(request); - // Do something. - for (Location element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocationsPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocationsPaged.java deleted file mode 100644 index de7739197e8c..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/AsyncListLocationsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.base.Strings; - -public class AsyncListLocationsPaged { - - public static void main(String[] args) throws Exception { - asyncListLocationsPaged(); - } - - public static void asyncListLocationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListLocationsResponse response = - dataAgentServiceClient.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; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/SyncListLocations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/SyncListLocations.java deleted file mode 100644 index 3cac5a899113..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/listlocations/SyncListLocations.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.Location; - -public class SyncListLocations { - - public static void main(String[] args) throws Exception { - syncListLocations(); - } - - public static void syncListLocations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Location element : dataAgentServiceClient.listLocations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/AsyncSetIamPolicy.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index d9a9b814c9b5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncSetIamPolicy(); - } - - public static void asyncSetIamPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataAgentServiceClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicy.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index 247670c03783..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class SyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicy(); - } - - public static void syncSetIamPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = dataAgentServiceClient.setIamPolicy(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyResourcename.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyResourcename.java deleted file mode 100644 index bca8a28b75d4..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_Resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentName; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcename(); - } - - public static void syncSetIamPolicyResourcename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - ResourceName resource = DataAgentName.of("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"); - Policy response = dataAgentServiceClient.setIamPolicy(resource); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_Resourcename_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyString.java deleted file mode 100644 index f711bbf055fc..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/setiampolicy/SyncSetIamPolicyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ProjectName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyString(); - } - - public static void syncSetIamPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - String resource = ProjectName.of("[PROJECT]").toString(); - Policy response = dataAgentServiceClient.setIamPolicy(resource); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgent.java deleted file mode 100644 index f36af7dd35bf..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgent.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateDataAgent { - - public static void main(String[] args) throws Exception { - asyncUpdateDataAgent(); - } - - public static void asyncUpdateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - UpdateDataAgentRequest request = - UpdateDataAgentRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.updateDataAgentCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgentLRO.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgentLRO.java deleted file mode 100644 index c4d89307da98..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/AsyncUpdateDataAgentLRO.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.OperationMetadata; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateDataAgentLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateDataAgentLRO(); - } - - public static void asyncUpdateDataAgentLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - UpdateDataAgentRequest request = - UpdateDataAgentRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - dataAgentServiceClient.updateDataAgentOperationCallable().futureCall(request); - // Do something. - DataAgent response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_LRO_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgent.java deleted file mode 100644 index bcbf1e1d4efe..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgent.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDataAgent { - - public static void main(String[] args) throws Exception { - syncUpdateDataAgent(); - } - - public static void syncUpdateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - UpdateDataAgentRequest request = - UpdateDataAgentRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - DataAgent response = dataAgentServiceClient.updateDataAgentAsync(request).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgentDataagentFieldmask.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgentDataagentFieldmask.java deleted file mode 100644 index b654861e2396..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagent/SyncUpdateDataAgentDataagentFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_DataagentFieldmask_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDataAgentDataagentFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateDataAgentDataagentFieldmask(); - } - - public static void syncUpdateDataAgentDataagentFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - DataAgent response = dataAgentServiceClient.updateDataAgentAsync(dataAgent, updateMask).get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_DataagentFieldmask_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/AsyncUpdateDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/AsyncUpdateDataAgentSync.java deleted file mode 100644 index 9354b5893c61..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/AsyncUpdateDataAgentSync.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateDataAgentSync { - - public static void main(String[] args) throws Exception { - asyncUpdateDataAgentSync(); - } - - public static void asyncUpdateDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - UpdateDataAgentRequest request = - UpdateDataAgentRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataAgentServiceClient.updateDataAgentSyncCallable().futureCall(request); - // Do something. - DataAgent response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSync.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSync.java deleted file mode 100644 index f97aa2bcfc44..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSync.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDataAgentSync { - - public static void main(String[] args) throws Exception { - syncUpdateDataAgentSync(); - } - - public static void syncUpdateDataAgentSync() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - UpdateDataAgentRequest request = - UpdateDataAgentRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDataAgent(DataAgent.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - DataAgent response = dataAgentServiceClient.updateDataAgentSync(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSyncDataagentFieldmask.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSyncDataagentFieldmask.java deleted file mode 100644 index 92e6119bf411..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservice/updatedataagentsync/SyncUpdateDataAgentSyncDataagentFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_DataagentFieldmask_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgent; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDataAgentSyncDataagentFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateDataAgentSyncDataagentFieldmask(); - } - - public static void syncUpdateDataAgentSyncDataagentFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.create()) { - DataAgent dataAgent = DataAgent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - DataAgent response = dataAgentServiceClient.updateDataAgentSync(dataAgent, updateMask); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_DataagentFieldmask_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/createdataagent/SyncCreateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/createdataagent/SyncCreateDataAgent.java deleted file mode 100644 index 8c53c09465cf..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/createdataagent/SyncCreateDataAgent.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentServiceSettings_CreateDataAgent_sync] -import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.retrying.TimedRetryAlgorithm; -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceSettings; -import java.time.Duration; - -public class SyncCreateDataAgent { - - public static void main(String[] args) throws Exception { - syncCreateDataAgent(); - } - - public static void syncCreateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceSettings.Builder dataAgentServiceSettingsBuilder = - DataAgentServiceSettings.newBuilder(); - TimedRetryAlgorithm timedRetryAlgorithm = - OperationalTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(500)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(5000)) - .setTotalTimeoutDuration(Duration.ofHours(24)) - .build()); - dataAgentServiceSettingsBuilder - .createClusterOperationSettings() - .setPollingAlgorithm(timedRetryAlgorithm) - .build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentServiceSettings_CreateDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/getdataagent/SyncGetDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/getdataagent/SyncGetDataAgent.java deleted file mode 100644 index 42c4ac9b15e4..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataagentservicesettings/getdataagent/SyncGetDataAgent.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentServiceSettings_GetDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceSettings; -import java.time.Duration; - -public class SyncGetDataAgent { - - public static void main(String[] args) throws Exception { - syncGetDataAgent(); - } - - public static void syncGetDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceSettings.Builder dataAgentServiceSettingsBuilder = - DataAgentServiceSettings.newBuilder(); - dataAgentServiceSettingsBuilder - .getDataAgentSettings() - .setRetrySettings( - dataAgentServiceSettingsBuilder - .getDataAgentSettings() - .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()); - DataAgentServiceSettings dataAgentServiceSettings = dataAgentServiceSettingsBuilder.build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentServiceSettings_GetDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/chat/AsyncChat.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/chat/AsyncChat.java deleted file mode 100644 index ae80345d6a1c..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/chat/AsyncChat.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_Chat_async] -import com.google.api.gax.rpc.ServerStream; -import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.Message; -import com.google.cloud.geminidataanalytics.v1beta.ProjectName; -import java.util.ArrayList; - -public class AsyncChat { - - public static void main(String[] args) throws Exception { - asyncChat(); - } - - public static void asyncChat() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ChatRequest request = - ChatRequest.newBuilder() - .setProject(ProjectName.of("[PROJECT]").toString()) - .setParent("parent-995424086") - .addAllMessages(new ArrayList()) - .build(); - ServerStream stream = dataChatServiceClient.chatCallable().call(request); - for (Message response : stream) { - // Do something when a response is received. - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_Chat_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetCredentialsProvider.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 9da8fb58bf73..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceSettings; -import com.google.cloud.geminidataanalytics.v1beta.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataChatServiceSettings dataChatServiceSettings = - DataChatServiceSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DataChatServiceClient dataChatServiceClient = - DataChatServiceClient.create(dataChatServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_Create_SetCredentialsProvider_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetEndpoint.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 6e8502958bbf..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_Create_SetEndpoint_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceSettings; -import com.google.cloud.geminidataanalytics.v1beta.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataChatServiceSettings dataChatServiceSettings = - DataChatServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - DataChatServiceClient dataChatServiceClient = - DataChatServiceClient.create(dataChatServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_Create_SetEndpoint_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateUseHttpJsonTransport.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 79b84f005142..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_Create_UseHttpJsonTransport_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceSettings; - -public class SyncCreateUseHttpJsonTransport { - - public static void main(String[] args) throws Exception { - syncCreateUseHttpJsonTransport(); - } - - public static void syncCreateUseHttpJsonTransport() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataChatServiceSettings dataChatServiceSettings = - DataChatServiceSettings.newHttpJsonBuilder().build(); - DataChatServiceClient dataChatServiceClient = - DataChatServiceClient.create(dataChatServiceSettings); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_Create_UseHttpJsonTransport_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/AsyncCreateConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/AsyncCreateConversation.java deleted file mode 100644 index 495e81b2101a..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/AsyncCreateConversation.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class AsyncCreateConversation { - - public static void main(String[] args) throws Exception { - asyncCreateConversation(); - } - - public static void asyncCreateConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - CreateConversationRequest request = - CreateConversationRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setConversationId("conversationId-1676095234") - .setConversation(Conversation.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - dataChatServiceClient.createConversationCallable().futureCall(request); - // Do something. - Conversation response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversation.java deleted file mode 100644 index 569a507021c9..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversation.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateConversation { - - public static void main(String[] args) throws Exception { - syncCreateConversation(); - } - - public static void syncCreateConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - CreateConversationRequest request = - CreateConversationRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setConversationId("conversationId-1676095234") - .setConversation(Conversation.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - Conversation response = dataChatServiceClient.createConversation(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationLocationnameConversationString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationLocationnameConversationString.java deleted file mode 100644 index a18721fdbf16..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationLocationnameConversationString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_LocationnameConversationString_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateConversationLocationnameConversationString { - - public static void main(String[] args) throws Exception { - syncCreateConversationLocationnameConversationString(); - } - - public static void syncCreateConversationLocationnameConversationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - Conversation response = - dataChatServiceClient.createConversation(parent, conversation, conversationId); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_LocationnameConversationString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationStringConversationString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationStringConversationString.java deleted file mode 100644 index 3d67d3a6f0d6..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/createconversation/SyncCreateConversationStringConversationString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_StringConversationString_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncCreateConversationStringConversationString { - - public static void main(String[] args) throws Exception { - syncCreateConversationStringConversationString(); - } - - public static void syncCreateConversationStringConversationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Conversation conversation = Conversation.newBuilder().build(); - String conversationId = "conversationId-1676095234"; - Conversation response = - dataChatServiceClient.createConversation(parent, conversation, conversationId); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_StringConversationString_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java deleted file mode 100644 index 511e6ef14695..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.protobuf.Empty; - -public class AsyncDeleteConversation { - - public static void main(String[] args) throws Exception { - asyncDeleteConversation(); - } - - public static void asyncDeleteConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - DeleteConversationRequest request = - DeleteConversationRequest.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .build(); - ApiFuture future = - dataChatServiceClient.deleteConversationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java deleted file mode 100644 index 45f9c1a608d1..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteConversation { - - public static void main(String[] args) throws Exception { - syncDeleteConversation(); - } - - public static void syncDeleteConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - DeleteConversationRequest request = - DeleteConversationRequest.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .build(); - dataChatServiceClient.deleteConversation(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java deleted file mode 100644 index 02a707bad546..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_Conversationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteConversationConversationname { - - public static void main(String[] args) throws Exception { - syncDeleteConversationConversationname(); - } - - public static void syncDeleteConversationConversationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - dataChatServiceClient.deleteConversation(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_Conversationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java deleted file mode 100644 index 665ea3fada67..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteConversationString { - - public static void main(String[] args) throws Exception { - syncDeleteConversationString(); - } - - public static void syncDeleteConversationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString(); - dataChatServiceClient.deleteConversation(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/AsyncGetConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/AsyncGetConversation.java deleted file mode 100644 index e31aefd1b3bc..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/AsyncGetConversation.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetConversation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; - -public class AsyncGetConversation { - - public static void main(String[] args) throws Exception { - asyncGetConversation(); - } - - public static void asyncGetConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - GetConversationRequest request = - GetConversationRequest.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .build(); - ApiFuture future = - dataChatServiceClient.getConversationCallable().futureCall(request); - // Do something. - Conversation response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversation.java deleted file mode 100644 index 8e9dba725468..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversation.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetConversation_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; - -public class SyncGetConversation { - - public static void main(String[] args) throws Exception { - syncGetConversation(); - } - - public static void syncGetConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - GetConversationRequest request = - GetConversationRequest.newBuilder() - .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .build(); - Conversation response = dataChatServiceClient.getConversation(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationConversationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationConversationname.java deleted file mode 100644 index 3913070c0675..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationConversationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetConversation_Conversationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; - -public class SyncGetConversationConversationname { - - public static void main(String[] args) throws Exception { - syncGetConversationConversationname(); - } - - public static void syncGetConversationConversationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - Conversation response = dataChatServiceClient.getConversation(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_Conversationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationString.java deleted file mode 100644 index e6ddbe16574b..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getconversation/SyncGetConversationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetConversation_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; - -public class SyncGetConversationString { - - public static void main(String[] args) throws Exception { - syncGetConversationString(); - } - - public static void syncGetConversationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString(); - Conversation response = dataChatServiceClient.getConversation(name); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/AsyncGetLocation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/AsyncGetLocation.java deleted file mode 100644 index b4c778179844..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/AsyncGetLocation.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetLocation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.Location; - -public class AsyncGetLocation { - - public static void main(String[] args) throws Exception { - asyncGetLocation(); - } - - public static void asyncGetLocation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = dataChatServiceClient.getLocationCallable().futureCall(request); - // Do something. - Location response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetLocation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/SyncGetLocation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/SyncGetLocation.java deleted file mode 100644 index a9044c49a0bf..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/getlocation/SyncGetLocation.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_GetLocation_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.Location; - -public class SyncGetLocation { - - public static void main(String[] args) throws Exception { - syncGetLocation(); - } - - public static void syncGetLocation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - Location response = dataChatServiceClient.getLocation(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetLocation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversations.java deleted file mode 100644 index 093219fbe130..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversations.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListConversations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class AsyncListConversations { - - public static void main(String[] args) throws Exception { - asyncListConversations(); - } - - public static void asyncListConversations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListConversationsRequest request = - ListConversationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - dataChatServiceClient.listConversationsPagedCallable().futureCall(request); - // Do something. - for (Conversation element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversationsPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversationsPaged.java deleted file mode 100644 index 9bb6b3c12559..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/AsyncListConversationsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListConversations_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.common.base.Strings; - -public class AsyncListConversationsPaged { - - public static void main(String[] args) throws Exception { - asyncListConversationsPaged(); - } - - public static void asyncListConversationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListConversationsRequest request = - ListConversationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListConversationsResponse response = - dataChatServiceClient.listConversationsCallable().call(request); - for (Conversation element : response.getConversationsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversations.java deleted file mode 100644 index c721ecc074f3..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversations.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListConversations_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListConversations { - - public static void main(String[] args) throws Exception { - syncListConversations(); - } - - public static void syncListConversations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListConversationsRequest request = - ListConversationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Conversation element : dataChatServiceClient.listConversations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsLocationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsLocationname.java deleted file mode 100644 index b0fad4de8afe..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListConversations_Locationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListConversationsLocationname { - - public static void main(String[] args) throws Exception { - syncListConversationsLocationname(); - } - - public static void syncListConversationsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Conversation element : dataChatServiceClient.listConversations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_Locationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsString.java deleted file mode 100644 index 4f8d7fa14e45..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listconversations/SyncListConversationsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListConversations_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.Conversation; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; - -public class SyncListConversationsString { - - public static void main(String[] args) throws Exception { - syncListConversationsString(); - } - - public static void syncListConversationsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Conversation element : dataChatServiceClient.listConversations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocations.java deleted file mode 100644 index ee8bad56546b..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocations.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListLocations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.Location; - -public class AsyncListLocations { - - public static void main(String[] args) throws Exception { - asyncListLocations(); - } - - public static void asyncListLocations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataChatServiceClient.listLocationsPagedCallable().futureCall(request); - // Do something. - for (Location element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListLocations_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocationsPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocationsPaged.java deleted file mode 100644 index df83800ae064..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/AsyncListLocationsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListLocations_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.base.Strings; - -public class AsyncListLocationsPaged { - - public static void main(String[] args) throws Exception { - asyncListLocationsPaged(); - } - - public static void asyncListLocationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListLocationsResponse response = - dataChatServiceClient.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; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListLocations_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/SyncListLocations.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/SyncListLocations.java deleted file mode 100644 index 25629701d65e..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listlocations/SyncListLocations.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListLocations_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.Location; - -public class SyncListLocations { - - public static void main(String[] args) throws Exception { - syncListLocations(); - } - - public static void syncListLocations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Location element : dataChatServiceClient.listLocations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListLocations_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessages.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessages.java deleted file mode 100644 index e98bb0ec58b3..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessages.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListMessages_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; - -public class AsyncListMessages { - - public static void main(String[] args) throws Exception { - asyncListMessages(); - } - - public static void asyncListMessages() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListMessagesRequest request = - ListMessagesRequest.newBuilder() - .setParent( - ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - dataChatServiceClient.listMessagesPagedCallable().futureCall(request); - // Do something. - for (StorageMessage element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessagesPaged.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessagesPaged.java deleted file mode 100644 index 29aed61b3740..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/AsyncListMessagesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListMessages_Paged_async] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; -import com.google.common.base.Strings; - -public class AsyncListMessagesPaged { - - public static void main(String[] args) throws Exception { - asyncListMessagesPaged(); - } - - public static void asyncListMessagesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListMessagesRequest request = - ListMessagesRequest.newBuilder() - .setParent( - ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListMessagesResponse response = dataChatServiceClient.listMessagesCallable().call(request); - for (StorageMessage element : response.getMessagesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_Paged_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessages.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessages.java deleted file mode 100644 index 6b4c75e71b0a..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessages.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListMessages_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; - -public class SyncListMessages { - - public static void main(String[] args) throws Exception { - syncListMessages(); - } - - public static void syncListMessages() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ListMessagesRequest request = - ListMessagesRequest.newBuilder() - .setParent( - ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (StorageMessage element : dataChatServiceClient.listMessages(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesConversationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesConversationname.java deleted file mode 100644 index c60e73a2e61e..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesConversationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListMessages_Conversationname_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; - -public class SyncListMessagesConversationname { - - public static void main(String[] args) throws Exception { - syncListMessagesConversationname(); - } - - public static void syncListMessagesConversationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); - for (StorageMessage element : dataChatServiceClient.listMessages(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_Conversationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesString.java deleted file mode 100644 index fc5c98486a24..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/listmessages/SyncListMessagesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_ListMessages_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.ConversationName; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; - -public class SyncListMessagesString { - - public static void main(String[] args) throws Exception { - syncListMessagesString(); - } - - public static void syncListMessagesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString(); - for (StorageMessage element : dataChatServiceClient.listMessages(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java deleted file mode 100644 index 31222e99390b..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_QueryData_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GenerationOptions; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataContext; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; - -public class AsyncQueryData { - - public static void main(String[] args) throws Exception { - asyncQueryData(); - } - - public static void asyncQueryData() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - ApiFuture future = - dataChatServiceClient.queryDataCallable().futureCall(request); - // Do something. - QueryDataResponse response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java deleted file mode 100644 index 34ba691fe0ac..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GenerationOptions; -import com.google.cloud.geminidataanalytics.v1beta.LocationName; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataContext; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; -import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; - -public class SyncQueryData { - - public static void main(String[] args) throws Exception { - syncQueryData(); - } - - public static void syncQueryData() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { - QueryDataRequest request = - QueryDataRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPrompt("prompt-979805852") - .setContext(QueryDataContext.newBuilder().build()) - .setGenerationOptions(GenerationOptions.newBuilder().build()) - .build(); - QueryDataResponse response = dataChatServiceClient.queryData(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservicesettings/createconversation/SyncCreateConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservicesettings/createconversation/SyncCreateConversation.java deleted file mode 100644 index 69da9efc0b60..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservicesettings/createconversation/SyncCreateConversation.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatServiceSettings_CreateConversation_sync] -import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceSettings; -import java.time.Duration; - -public class SyncCreateConversation { - - public static void main(String[] args) throws Exception { - syncCreateConversation(); - } - - public static void syncCreateConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataChatServiceSettings.Builder dataChatServiceSettingsBuilder = - DataChatServiceSettings.newBuilder(); - dataChatServiceSettingsBuilder - .createConversationSettings() - .setRetrySettings( - dataChatServiceSettingsBuilder - .createConversationSettings() - .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()); - DataChatServiceSettings dataChatServiceSettings = dataChatServiceSettingsBuilder.build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatServiceSettings_CreateConversation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/createdataagent/SyncCreateDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/createdataagent/SyncCreateDataAgent.java deleted file mode 100644 index aba9590ee958..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/createdataagent/SyncCreateDataAgent.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentServiceStubSettings_CreateDataAgent_sync] -import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.retrying.TimedRetryAlgorithm; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataAgentServiceStubSettings; -import java.time.Duration; - -public class SyncCreateDataAgent { - - public static void main(String[] args) throws Exception { - syncCreateDataAgent(); - } - - public static void syncCreateDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceStubSettings.Builder dataAgentServiceSettingsBuilder = - DataAgentServiceStubSettings.newBuilder(); - TimedRetryAlgorithm timedRetryAlgorithm = - OperationalTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(500)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(5000)) - .setTotalTimeoutDuration(Duration.ofHours(24)) - .build()); - dataAgentServiceSettingsBuilder - .createClusterOperationSettings() - .setPollingAlgorithm(timedRetryAlgorithm) - .build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentServiceStubSettings_CreateDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/getdataagent/SyncGetDataAgent.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/getdataagent/SyncGetDataAgent.java deleted file mode 100644 index d1c8992dcd1b..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/dataagentservicestubsettings/getdataagent/SyncGetDataAgent.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub.samples; - -// [START geminidataanalytics_v1beta_generated_DataAgentServiceStubSettings_GetDataAgent_sync] -import com.google.cloud.geminidataanalytics.v1beta.stub.DataAgentServiceStubSettings; -import java.time.Duration; - -public class SyncGetDataAgent { - - public static void main(String[] args) throws Exception { - syncGetDataAgent(); - } - - public static void syncGetDataAgent() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataAgentServiceStubSettings.Builder dataAgentServiceSettingsBuilder = - DataAgentServiceStubSettings.newBuilder(); - dataAgentServiceSettingsBuilder - .getDataAgentSettings() - .setRetrySettings( - dataAgentServiceSettingsBuilder - .getDataAgentSettings() - .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()); - DataAgentServiceStubSettings dataAgentServiceSettings = dataAgentServiceSettingsBuilder.build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentServiceStubSettings_GetDataAgent_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/datachatservicestubsettings/createconversation/SyncCreateConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/datachatservicestubsettings/createconversation/SyncCreateConversation.java deleted file mode 100644 index 6789c1143aa5..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/stub/datachatservicestubsettings/createconversation/SyncCreateConversation.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub.samples; - -// [START geminidataanalytics_v1beta_generated_DataChatServiceStubSettings_CreateConversation_sync] -import com.google.cloud.geminidataanalytics.v1beta.stub.DataChatServiceStubSettings; -import java.time.Duration; - -public class SyncCreateConversation { - - public static void main(String[] args) throws Exception { - syncCreateConversation(); - } - - public static void syncCreateConversation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataChatServiceStubSettings.Builder dataChatServiceSettingsBuilder = - DataChatServiceStubSettings.newBuilder(); - dataChatServiceSettingsBuilder - .createConversationSettings() - .setRetrySettings( - dataChatServiceSettingsBuilder - .createConversationSettings() - .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()); - DataChatServiceStubSettings dataChatServiceSettings = dataChatServiceSettingsBuilder.build(); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatServiceStubSettings_CreateConversation_sync] diff --git a/librarian.yaml b/librarian.yaml index 4c8beab8f6a9..35619a3f9842 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -57,7 +57,6 @@ libraries: - path: google/cloud/accessapproval/v1 java: api_description_override: enables controlling access to your organization's data by Google personnel. - released_version: 2.93.0 name_pretty_override: Access Approval product_documentation_override: https://cloud.google.com/access-approval/docs/ - name: accesscontextmanager @@ -74,7 +73,6 @@ libraries: java: api_description_override: n/a artifact_id: google-identity-accesscontextmanager - released_version: 1.93.0 name_pretty_override: Identity Access Context Manager product_documentation_override: n/a - name: admanager @@ -87,7 +85,6 @@ libraries: artifact_id: ad-manager client_documentation_override: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview group_id: com.google.api-ads - released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Ad Manager API product_documentation_override: https://developers.google.com/ad-manager/api/beta @@ -99,7 +96,6 @@ libraries: omit_common_resources: true java: api_description_override: An API for accessing Advisory Notifications in Google Cloud. - released_version: 0.81.0 name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ - name: aiplatform @@ -130,7 +126,6 @@ libraries: - google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java java: api_description_override: is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle. - released_version: 3.93.0 name_pretty_override: Vertex AI product_documentation_override: https://cloud.google.com/vertex-ai/docs rest_documentation: https://cloud.google.com/vertex-ai/docs/reference/rest @@ -155,7 +150,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. - released_version: 0.81.0 name_pretty_override: AlloyDB product_documentation_override: https://cloud.google.com/alloydb/ rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest @@ -186,7 +180,6 @@ libraries: java: api_id_override: connectors.googleapis.com api_description_override: AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. - released_version: 0.70.0 name_pretty_override: AlloyDB connectors product_documentation_override: https://cloud.google.com/alloydb/docs rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest @@ -201,7 +194,6 @@ libraries: artifact_id: google-analytics-admin codeowner_team: '@googleapis/analytics-dpe' group_id: com.google.analytics - released_version: 0.102.0 name_pretty_override: Analytics Admin product_documentation_override: https://developers.google.com/analytics - name: analytics-data @@ -215,7 +207,6 @@ libraries: artifact_id: google-analytics-data codeowner_team: '@googleapis/analytics-dpe' group_id: com.google.analytics - released_version: 0.103.0 name_pretty_override: Analytics Data product_documentation_override: https://developers.google.com/analytics/trusted-testing/analytics-data - name: analyticshub @@ -224,7 +215,6 @@ libraries: - path: google/cloud/bigquery/analyticshub/v1 java: api_description_override: TBD - released_version: 0.89.0 name_pretty_override: Analytics Hub API product_documentation_override: https://cloud.google.com/bigquery/TBD - name: api-gateway @@ -234,7 +224,6 @@ libraries: java: api_id_override: apigateway.googleapis.com api_description_override: enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. - released_version: 2.92.0 name_pretty_override: API Gateway product_documentation_override: https://cloud.google.com/api-gateway/docs rest_documentation: https://cloud.google.com/api-gateway/docs/reference/rest @@ -244,7 +233,6 @@ libraries: - path: google/cloud/apigeeconnect/v1 java: api_description_override: allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. - released_version: 2.92.0 name_pretty_override: Apigee Connect product_documentation_override: https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/ - name: apigee-registry @@ -259,7 +247,6 @@ libraries: api_id_override: apigeeregistry.googleapis.com api_description_override: allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. api_shortname_override: apigee-registry - released_version: 0.92.0 name_pretty_override: Registry API product_documentation_override: https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api - name: apihub @@ -273,7 +260,6 @@ libraries: api_id_override: apihub.googleapis.com api_description_override: API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview - released_version: 0.45.0 library_type_override: GAPIC_AUTO name_pretty_override: API hub API product_documentation_override: https://cloud.google.com/apigee/docs/apihub/what-is-api-hub @@ -283,7 +269,6 @@ libraries: - path: google/api/apikeys/v2 java: api_description_override: API Keys lets you create and manage your API keys for your projects. - released_version: 0.90.0 name_pretty_override: API Keys API product_documentation_override: https://cloud.google.com/api-keys/ - name: appengine-admin @@ -293,7 +278,6 @@ libraries: java: api_description_override: you to manage your App Engine applications. codeowner_team: '@googleapis/aap-dpes' - released_version: 2.92.0 name_pretty_override: App Engine Admin API product_documentation_override: https://cloud.google.com/appengine/docs/admin-api/ - name: apphub @@ -306,7 +290,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: App Hub simplifies the process of building, running, and managing applications on Google Cloud. - released_version: 0.56.0 name_pretty_override: App Hub API product_documentation_override: https://cloud.google.com/app-hub/docs/overview rpc_documentation: https://cloud.google.com/app-hub/docs/reference/rpc @@ -321,7 +304,6 @@ libraries: api_id_override: appoptimize.googleapis.com api_description_override: The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of their cloud applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview - released_version: 0.2.0 library_type_override: GAPIC_AUTO name_pretty_override: App Optimize API product_documentation_override: https://docs.cloud.google.com/app-optimize/overview @@ -333,7 +315,6 @@ libraries: api_description_override: provides programmatic methods to the Area 120 Tables API. artifact_id: google-area120-tables group_id: com.google.area120 - released_version: 0.96.0 name_pretty_override: Area 120 Tables product_documentation_override: https://area120.google.com/ - name: artifact-registry @@ -350,7 +331,6 @@ libraries: java: api_description_override: provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. codeowner_team: '@googleapis/aap-dpes' - released_version: 1.91.0 name_pretty_override: Artifact Registry product_documentation_override: https://cloud.google.com/artifact-registry rest_documentation: https://cloud.google.com/artifact-registry/docs/reference/rest @@ -370,7 +350,6 @@ libraries: api_reference: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview api_description_override: provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187210 - released_version: 3.96.0 name_pretty_override: Cloud Asset Inventory product_documentation_override: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview - name: assured-workloads @@ -380,7 +359,6 @@ libraries: - path: google/cloud/assuredworkloads/v1beta1 java: api_description_override: allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. - released_version: 2.92.0 name_pretty_override: Assured Workloads for Government product_documentation_override: https://cloud.google.com/assured-workloads/ rest_documentation: https://cloud.google.com/assured-workloads/docs/reference/rest @@ -395,7 +373,6 @@ libraries: api_id_override: auditmanager.googleapis.com api_description_override: Lists information about the supported locations for this service. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview - released_version: 0.10.0 library_type_override: GAPIC_AUTO name_pretty_override: Audit Manager API product_documentation_override: https://cloud.google.com/audit-manager/docs @@ -407,7 +384,6 @@ libraries: java: api_description_override: makes the power of machine learning available to you even if you have limited knowledge of machine learning. You can use AutoML to build on Google's machine learning capabilities to create your own custom machine learning models that are tailored to your business needs, and then integrate those models into your applications and web sites. issue_tracker_override: https://issuetracker.google.com/savedsearches/559744 - released_version: 2.92.0 name_pretty_override: Cloud Auto ML product_documentation_override: https://cloud.google.com/automl/docs/ rest_documentation: https://cloud.google.com/automl/docs/reference/rest @@ -424,7 +400,6 @@ libraries: api_id_override: backupdr.googleapis.com api_description_override: 'Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview - released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Backup and DR Service API product_documentation_override: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr @@ -438,7 +413,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. - released_version: 0.92.0 name_pretty_override: Bare Metal Solution product_documentation_override: https://cloud.google.com/bare-metal/docs rest_documentation: https://cloud.google.com/bare-metal/docs/reference/rest @@ -457,7 +431,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: n/a - released_version: 0.92.0 name_pretty_override: Cloud Batch product_documentation_override: https://cloud.google.com/ - name: beyondcorp-appconnections @@ -471,7 +444,6 @@ libraries: java: api_description_override: is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. api_shortname_override: beyondcorp-appconnections - released_version: 0.90.0 name_pretty_override: BeyondCorp AppConnections product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-appconnectors @@ -485,7 +457,6 @@ libraries: java: api_description_override: provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. api_shortname_override: beyondcorp-appconnectors - released_version: 0.90.0 name_pretty_override: BeyondCorp AppConnectors product_documentation_override: cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-appgateways @@ -500,7 +471,6 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-appgateways - released_version: 0.90.0 name_pretty_override: BeyondCorp AppGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-clientconnectorservices @@ -515,7 +485,6 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientconnectorservices - released_version: 0.90.0 name_pretty_override: BeyondCorp ClientConnectorServices product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-clientgateways @@ -530,7 +499,6 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientgateways - released_version: 0.90.0 name_pretty_override: BeyondCorp ClientGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: biglake @@ -542,7 +510,6 @@ libraries: - path: google/cloud/bigquery/biglake/v1alpha1 java: api_description_override: The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. - released_version: 0.80.0 name_pretty_override: BigLake product_documentation_override: https://cloud.google.com/biglake - name: bigquery-data-exchange @@ -554,7 +521,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. - released_version: 2.87.0 name_pretty_override: Analytics Hub product_documentation_override: https://cloud.google.com/analytics-hub - name: bigqueryconnection @@ -565,7 +531,6 @@ libraries: java: api_description_override: allows users to manage BigQuery connections to external data sources. client_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 - released_version: 2.94.0 name_pretty_override: Cloud BigQuery Connection product_documentation_override: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest - name: bigquerydatapolicy @@ -577,7 +542,6 @@ libraries: - path: google/cloud/bigquery/datapolicies/v1beta1 java: api_description_override: Allows users to manage BigQuery data policies. - released_version: 0.89.0 name_pretty_override: BigQuery DataPolicy API product_documentation_override: https://cloud.google.com/bigquery/docs/reference/datapolicy/ - name: bigquerydatatransfer @@ -592,7 +556,6 @@ libraries: java: api_description_override: transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis. issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 - released_version: 2.92.0 name_pretty_override: BigQuery Data Transfer Service product_documentation_override: https://cloud.google.com/bigquery/transfer/ - name: bigquerymigration @@ -602,7 +565,6 @@ libraries: - path: google/cloud/bigquery/migration/v2alpha java: api_description_override: BigQuery Migration API - released_version: 0.95.0 name_pretty_override: BigQuery Migration product_documentation_override: https://cloud.google.com/bigquery/docs rest_documentation: https://cloud.google.com/bigquery/docs/reference/rest @@ -612,7 +574,6 @@ libraries: - path: google/cloud/bigquery/reservation/v1 java: api_description_override: allows users to manage their flat-rate BigQuery reservations. - released_version: 2.93.0 name_pretty_override: Cloud BigQuery Reservation product_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc - name: bigquerystorage @@ -740,7 +701,6 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history codeowner_team: '@googleapis/bigquery-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 - released_version: 3.28.0 library_type_override: GAPIC_COMBO name_pretty_override: BigQuery Storage product_documentation_override: https://cloud.google.com/bigquery/docs/reference/storage/ @@ -767,7 +727,6 @@ libraries: - google-cloud-bigtable-bom extra_versioned_modules: google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 - released_version: 2.78.1 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Bigtable product_documentation_override: https://cloud.google.com/bigtable @@ -783,7 +742,6 @@ libraries: java: api_description_override: allows developers to manage their billing accounts or browse the catalog of SKUs and pricing. issue_tracker_override: https://issuetracker.google.com/savedsearches/559770 - released_version: 2.92.0 name_pretty_override: Cloud Billing product_documentation_override: https://cloud.google.com/billing/docs rest_documentation: https://cloud.google.com/billing/docs/reference/rest @@ -795,7 +753,6 @@ libraries: - path: google/cloud/billing/budgets/v1beta1 java: api_description_override: allows you to avoid surprises on your bill by creating budgets to monitor all your Google Cloud charges in one place. - released_version: 2.92.0 name_pretty_override: Cloud Billing Budgets product_documentation_override: https://cloud.google.com/billing/docs/how-to/budgets - name: binary-authorization @@ -807,7 +764,6 @@ libraries: api_id_override: binaryauthorization.googleapis.com api_description_override: ' is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware' codeowner_team: '@googleapis/aap-dpes' - released_version: 1.91.0 name_pretty_override: Binary Authorization product_documentation_override: https://cloud.google.com/binary-authorization/docs rest_documentation: https://cloud.google.com/binary-authorization/docs/reference/rest @@ -820,7 +776,6 @@ libraries: api_id_override: capacityplanner.googleapis.com api_description_override: Provides programmatic access to Capacity Planner features. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview - released_version: 0.15.0 library_type_override: GAPIC_AUTO name_pretty_override: Capacity Planner API product_documentation_override: https://cloud.google.com/capacity-planner/docs @@ -834,7 +789,6 @@ libraries: java: api_id_override: certificatemanager.googleapis.com api_description_override: lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. - released_version: 0.95.0 name_pretty_override: Certificate Manager product_documentation_override: https://cloud.google.com/certificate-manager/docs - name: ces @@ -852,7 +806,6 @@ libraries: api_id_override: ces.googleapis.com api_description_override: Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview - released_version: 0.8.0 library_type_override: GAPIC_AUTO name_pretty_override: Gemini Enterprise for Customer Experience API product_documentation_override: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps @@ -863,7 +816,6 @@ libraries: - path: google/cloud/channel/v1 java: api_description_override: With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. - released_version: 3.96.0 name_pretty_override: Channel Services product_documentation_override: https://cloud.google.com/channel/docs rest_documentation: https://cloud.google.com/channel/docs/reference/rest @@ -874,7 +826,6 @@ libraries: - path: google/chat/v1 java: api_description_override: The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. - released_version: 0.56.0 name_pretty_override: Google Chat API product_documentation_override: https://developers.google.com/chat/concepts rest_documentation: https://developers.google.com/chat/api/reference/rest @@ -886,7 +837,6 @@ libraries: api_id_override: chronicle.googleapis.com api_description_override: The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview - released_version: 0.30.0 library_type_override: GAPIC_AUTO name_pretty_override: Chronicle API product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview @@ -905,7 +855,6 @@ libraries: api_id_override: cloudapiregistry.googleapis.com api_description_override: Cloud API Registry lets you discover, govern, use, and monitor Model Context Protocol (MCP) servers and tools provided by Google, or by your organization through Apigee API hub. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview - released_version: 0.11.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud API Registry API product_documentation_override: https://docs.cloud.google.com/api-registry/docs/overview @@ -923,7 +872,6 @@ libraries: artifact_id: google-cloud-build codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/5226584 - released_version: 3.94.0 name_pretty_override: Cloud Build product_documentation_override: https://cloud.google.com/cloud-build/ - name: cloudcommerceconsumerprocurement @@ -933,7 +881,6 @@ libraries: - path: google/cloud/commerce/consumer/procurement/v1alpha1 java: api_description_override: Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. - released_version: 0.90.0 name_pretty_override: Cloud Commerce Consumer Procurement product_documentation_override: https://cloud.google.com/marketplace/ - name: cloudcontrolspartner @@ -943,7 +890,6 @@ libraries: - path: google/cloud/cloudcontrolspartner/v1beta java: api_description_override: Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. - released_version: 0.56.0 name_pretty_override: Cloud Controls Partner API product_documentation_override: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners - name: cloudquotas @@ -960,7 +906,6 @@ libraries: Cloud Quotas API provides GCP service consumers with management and observability for resource usage, quotas, and restrictions of the services they consume. - released_version: 0.60.0 name_pretty_override: Cloud Quotas API product_documentation_override: https://cloud.google.com/cloudquotas/docs/ - name: cloudsecuritycompliance @@ -974,7 +919,6 @@ libraries: api_id_override: cloudsecuritycompliance.googleapis.com api_description_override: Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview - released_version: 0.19.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Security Compliance API product_documentation_override: https://cloud.google.com/security-command-center/docs/compliance-manager-overview @@ -985,7 +929,6 @@ libraries: - path: google/cloud/support/v2beta java: api_description_override: Manages Google Cloud technical support cases for Customer Care support offerings. - released_version: 0.76.0 name_pretty_override: Google Cloud Support API product_documentation_override: https://cloud.google.com/support/docs/reference/support-api/ - name: common-protos @@ -1088,7 +1031,6 @@ libraries: - proto-google-common-protos-bom - proto-google-common-protos group_id: com.google.api.grpc - released_version: 2.71.0 library_type_override: OTHER name_pretty_override: Common Protos product_documentation_override: https://github.com/googleapis/api-common-protos @@ -1112,7 +1054,6 @@ libraries: excluded_dependencies: grpc-google-cloud-compute-v1 excluded_poms: - grpc-google-cloud-compute-v1 - released_version: 1.102.0 name_pretty_override: Compute Engine product_documentation_override: https://cloud.google.com/compute/ - name: confidentialcomputing @@ -1128,7 +1069,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. - released_version: 0.78.0 name_pretty_override: Confidential Computing API product_documentation_override: https://cloud.google.com/confidential-computing/ - name: configdelivery @@ -1146,7 +1086,6 @@ libraries: api_id_override: configdelivery.googleapis.com api_description_override: ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview - released_version: 0.26.0 library_type_override: GAPIC_AUTO name_pretty_override: Config Delivery API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages @@ -1159,7 +1098,6 @@ libraries: api_id_override: connectgateway.googleapis.com api_description_override: The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview - released_version: 0.44.0 library_type_override: GAPIC_AUTO name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway @@ -1170,7 +1108,6 @@ libraries: java: api_description_override: ' helps users detect and visualize patterns in their contact center data.' codeowner_team: '@googleapis/api-contact-center-insights' - released_version: 2.92.0 name_pretty_override: CCAI Insights product_documentation_override: https://cloud.google.com/dialogflow/priv/docs/insights/ - name: container @@ -1185,7 +1122,6 @@ libraries: api_description_override: is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs. codeowner_team: '@googleapis/cloud-sdk-java-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 - released_version: 2.95.0 name_pretty_override: Kubernetes Engine product_documentation_override: https://cloud.google.com/kubernetes-engine/ rest_documentation: https://cloud.google.com/kubernetes-engine/docs/reference/rest @@ -1205,7 +1141,6 @@ libraries: api_description_override: is a service that provides vulnerability scanning and metadata storage for software artifacts. The service performs vulnerability scans on built software artifacts, such as the images in Container Registry, then stores the resulting metadata and makes it available for consumption through an API. The metadata may come from several sources, including vulnerability scanning, other Cloud services, and third-party providers. codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 - released_version: 2.93.0 name_pretty_override: Cloud Container Analysis product_documentation_override: https://cloud.google.com/container-registry/docs/container-analysis - name: contentwarehouse @@ -1214,7 +1149,6 @@ libraries: - path: google/cloud/contentwarehouse/v1 java: api_description_override: Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. - released_version: 0.88.0 name_pretty_override: Document AI Warehouse product_documentation_override: https://cloud.google.com/document-warehouse/docs/overview - name: data-fusion @@ -1224,7 +1158,6 @@ libraries: - path: google/cloud/datafusion/v1beta1 java: api_description_override: is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. - released_version: 1.92.0 name_pretty_override: Cloud Data Fusion product_documentation_override: https://cloud.google.com/data-fusion/docs rest_documentation: https://cloud.google.com/data-fusion/docs/reference/rest @@ -1236,7 +1169,6 @@ libraries: api_id_override: databasecenter.googleapis.com api_description_override: Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center's fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview - released_version: 0.13.0 library_type_override: GAPIC_AUTO name_pretty_override: Database Center API product_documentation_override: https://cloud.google.com/database-center/docs/overview @@ -1255,7 +1187,6 @@ libraries: - proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java java: api_description_override: is a fully managed and highly scalable data discovery and metadata management service. - released_version: 1.98.0 name_pretty_override: Data Catalog product_documentation_override: https://cloud.google.com/data-catalog - name: dataflow @@ -1264,7 +1195,6 @@ libraries: - path: google/dataflow/v1beta3 java: api_description_override: is a managed service for executing a wide variety of data processing patterns. - released_version: 0.96.0 name_pretty_override: Dataflow product_documentation_override: https://cloud.google.com/dataflow/docs rest_documentation: https://cloud.google.com/dataflow/docs/reference/rest @@ -1284,7 +1214,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Help analytics teams manage data inside BigQuery using SQL. - released_version: 0.91.0 name_pretty_override: Cloud Dataform product_documentation_override: https://cloud.google.com/dataform/docs - name: datalabeling @@ -1295,7 +1224,6 @@ libraries: - google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java java: api_description_override: is a service that lets you work with human labelers to generate highly accurate labels for a collection of data that you can use to train your machine learning models. - released_version: 0.212.0 name_pretty_override: Data Labeling product_documentation_override: https://cloud.google.com/ai-platform/data-labeling/docs/ rest_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rest @@ -1307,7 +1235,6 @@ libraries: - path: google/cloud/datacatalog/lineage/configmanagement/v1 java: api_description_override: Lineage is used to track data flows between assets over time. - released_version: 0.84.0 name_pretty_override: Data Lineage product_documentation_override: https://cloud.google.com/dataplex/docs/about-data-lineage - name: datamanager @@ -1320,7 +1247,6 @@ libraries: artifact_id: data-manager client_documentation_override: https://cloud.google.com/java/docs/reference/data-manager/latest/overview group_id: com.google.api-ads - released_version: 0.13.0 library_type_override: GAPIC_AUTO name_pretty_override: Data Manager API product_documentation_override: https://developers.google.com/data-manager @@ -1335,7 +1261,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. - released_version: 1.90.0 name_pretty_override: Cloud Dataplex product_documentation_override: https://cloud.google.com/dataplex rest_documentation: https://cloud.google.com/dataplex/docs/reference/rest @@ -1351,7 +1276,6 @@ libraries: api_description_override: is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop. codeowner_team: '@googleapis/api-dataproc' issue_tracker_override: https://issuetracker.google.com/savedsearches/559745 - released_version: 4.89.0 name_pretty_override: Dataproc product_documentation_override: https://cloud.google.com/dataproc rest_documentation: https://cloud.google.com/dataproc/docs/reference/rest @@ -1376,7 +1300,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. - released_version: 2.93.0 name_pretty_override: Dataproc Metastore product_documentation_override: https://cloud.google.com/dataproc-metastore/docs rest_documentation: https://cloud.google.com/dataproc-metastore/docs/reference/rest @@ -1401,7 +1324,6 @@ libraries: - grpc-google-cloud-datastore-v1 extra_versioned_modules: datastore-v1-proto-client issue_tracker_override: https://issuetracker.google.com/savedsearches/559768 - released_version: 3.0.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Datastore product_documentation_override: https://cloud.google.com/datastore @@ -1417,7 +1339,6 @@ libraries: - path: google/cloud/datastream/v1alpha1 java: api_description_override: is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. - released_version: 1.91.0 name_pretty_override: Datastream product_documentation_override: https://cloud.google.com/datastream/docs rest_documentation: https://cloud.google.com/datastream/docs/reference/rest @@ -1432,7 +1353,6 @@ libraries: java: api_description_override: is a service that automates delivery of your applications to a series of target environments in a defined sequence codeowner_team: '@googleapis/aap-dpes' - released_version: 1.90.0 name_pretty_override: Google Cloud Deploy product_documentation_override: https://cloud.google.com/deploy/docs - name: developerconnect @@ -1446,7 +1366,6 @@ libraries: api_id_override: developerconnect.googleapis.com api_description_override: Connect third-party source code management to Google client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview - released_version: 0.49.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Connect API product_documentation_override: https://cloud.google.com/developer-connect/docs/overview @@ -1459,7 +1378,6 @@ libraries: api_description_override: The Developer Knowledge API provides access to Google's developer knowledge artifact_id: google-cloud-developer-knowledge client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview - released_version: 0.0.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Knowledge API product_documentation_override: https://developers.google.com/knowledge @@ -1471,7 +1389,6 @@ libraries: api_id_override: devicestreaming.googleapis.com api_description_override: The Cloud API for device streaming usage. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview - released_version: 0.32.0 library_type_override: GAPIC_AUTO name_pretty_override: Device Streaming API product_documentation_override: https://cloud.google.com/device-streaming/docs @@ -1498,7 +1415,6 @@ libraries: java: api_description_override: is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. Dialogflow Enterprise Edition users have access to Google Cloud Support and a service level agreement (SLA) for production deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5300385 - released_version: 4.98.0 name_pretty_override: Dialogflow API product_documentation_override: https://cloud.google.com/dialogflow-enterprise/ - name: dialogflow-cx @@ -1515,7 +1431,6 @@ libraries: java: api_description_override: provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. api_shortname_override: dialogflow-cx - released_version: 0.103.0 name_pretty_override: Dialogflow CX product_documentation_override: https://cloud.google.com/dialogflow/cx/docs rest_documentation: https://cloud.google.com/dialogflow/cx/docs/reference/rest @@ -1537,7 +1452,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). - released_version: 0.88.0 name_pretty_override: Discovery Engine API product_documentation_override: https://cloud.google.com/discovery-engine/media/docs - name: distributedcloudedge @@ -1551,7 +1465,6 @@ libraries: api_id_override: edgecontainer.googleapis.com api_description_override: Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. api_shortname_override: distributedcloudedge - released_version: 0.89.0 name_pretty_override: Google Distributed Cloud Edge product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/ - name: dlp @@ -1576,7 +1489,6 @@ libraries: java: api_description_override: provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images. issue_tracker_override: https://issuetracker.google.com/savedsearches/5548083 - released_version: 3.96.0 name_pretty_override: Cloud Data Loss Prevention product_documentation_override: https://cloud.google.com/dlp/docs/ rest_documentation: https://cloud.google.com/dlp/docs/reference/rest @@ -1588,7 +1500,6 @@ libraries: java: api_id_override: datamigration.googleapis.com api_description_override: makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. - released_version: 2.91.0 name_pretty_override: Database Migration Service product_documentation_override: https://cloud.google.com/database-migration/docs rest_documentation: https://cloud.google.com/database-migration/docs/reference/rest @@ -1606,7 +1517,6 @@ libraries: java: api_description_override: allows developers to unlock insights from your documents with machine learning. issue_tracker_override: https://issuetracker.google.com/savedsearches/559755 - released_version: 2.96.0 name_pretty_override: Document AI product_documentation_override: https://cloud.google.com/compute/docs/documentai/ - name: domains @@ -1617,7 +1527,6 @@ libraries: - path: google/cloud/domains/v1alpha2 java: api_description_override: allows you to register and manage domains by using Cloud Domains. - released_version: 1.89.0 name_pretty_override: Cloud Domains product_documentation_override: https://cloud.google.com/domains - name: edgenetwork @@ -1629,7 +1538,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Network management API for Distributed Cloud Edge. - released_version: 0.60.0 name_pretty_override: Distributed Cloud Edge Network API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs/overview - name: enterpriseknowledgegraph @@ -1638,7 +1546,6 @@ libraries: - path: google/cloud/enterpriseknowledgegraph/v1 java: api_description_override: Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. - released_version: 0.88.0 name_pretty_override: Enterprise Knowledge Graph product_documentation_override: https://cloud.google.com/enterprise-knowledge-graph/docs/overview - name: errorreporting @@ -1654,7 +1561,6 @@ libraries: java: api_description_override: 'counts, analyzes, and aggregates the crashes in your running cloud services. A centralized error management interface displays the results with sorting and filtering capabilities. A dedicated view shows the error details: time chart, occurrences, affected user count, first- and last-seen dates and a cleaned exception stack trace. Opt in to receive email and mobile alerts on new errors.' issue_tracker_override: https://issuetracker.google.com/savedsearches/559780 - released_version: 0.213.0-beta name_pretty_override: Error Reporting product_documentation_override: https://cloud.google.com/error-reporting billing_not_required: true @@ -1664,7 +1570,6 @@ libraries: - path: google/cloud/essentialcontacts/v1 java: api_description_override: helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. - released_version: 2.92.0 name_pretty_override: Essential Contacts API product_documentation_override: https://cloud.google.com/resource-manager/docs/managing-notification-contacts/ - name: eventarc @@ -1678,7 +1583,6 @@ libraries: java: api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management, you can optimize productivity and costs while building a modern, event-driven solution. codeowner_team: '@googleapis/aap-dpes' - released_version: 1.92.0 name_pretty_override: Eventarc product_documentation_override: https://cloud.google.com/eventarc/docs rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest @@ -1690,7 +1594,6 @@ libraries: java: api_id_override: eventarc-publishing.googleapis.com api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. - released_version: 0.92.0 name_pretty_override: Eventarc Publishing product_documentation_override: https://cloud.google.com/eventarc/docs rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest @@ -1710,7 +1613,6 @@ libraries: generate_proto_classes: true java: api_description_override: instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. - released_version: 1.93.0 name_pretty_override: Cloud Filestore API product_documentation_override: https://cloud.google.com/filestore/docs rest_documentation: https://cloud.google.com/filestore/docs/reference/rest @@ -1725,7 +1627,6 @@ libraries: api_id_override: financialservices.googleapis.com api_description_override: Google Cloud's Anti Money Laundering AI (AML AI) product is an API that scores AML risk. Use it to identify more risk, more defensibly, with fewer false positives and reduced time per review. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview - released_version: 0.33.0 library_type_override: GAPIC_AUTO name_pretty_override: Financial Services API product_documentation_override: https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview @@ -1771,7 +1672,6 @@ libraries: - google-cloud-firestore - google-cloud-firestore-bom issue_tracker_override: https://issuetracker.google.com/savedsearches/5337669 - released_version: 3.42.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Firestore product_documentation_override: https://cloud.google.com/firestore @@ -1804,7 +1704,6 @@ libraries: java: api_description_override: is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. codeowner_team: '@googleapis/aap-dpes' - released_version: 2.94.0 name_pretty_override: Cloud Functions product_documentation_override: https://cloud.google.com/functions rest_documentation: https://cloud.google.com/functions/docs/reference/rest @@ -1820,31 +1719,17 @@ libraries: api_id_override: gdchardwaremanagement.googleapis.com api_description_override: Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview - released_version: 0.47.0 library_type_override: GAPIC_AUTO name_pretty_override: GDC Hardware Management API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs rpc_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc - name: geminidataanalytics - version: 0.21.0-SNAPSHOT + version: 0.1.0-SNAPSHOT apis: - path: google/cloud/geminidataanalytics/v1 java: additional_protos: - path: google/cloud/location/locations.proto - - path: google/cloud/geminidataanalytics/v1beta - java: - additional_protos: - - path: google/cloud/location/locations.proto - java: - api_id_override: geminidataanalytics.googleapis.com - api_description_override: Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. - client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview - released_version: 0.20.0 - library_type_override: GAPIC_AUTO - name_pretty_override: Data Analytics API with Gemini - product_documentation_override: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview - rpc_documentation: https://cloud.google.com/gemini/docs/conversational-analytics-api/reference - name: gke-backup version: 0.92.0-SNAPSHOT apis: @@ -1857,7 +1742,6 @@ libraries: api_id_override: gkebackup.googleapis.com api_description_override: is a service for backing up and restoring workloads in GKE. api_shortname_override: gke-backup - released_version: 0.91.0 name_pretty_override: Backup for GKE product_documentation_override: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke ' - name: gke-connect-gateway @@ -1866,7 +1750,6 @@ libraries: - path: google/cloud/gkeconnect/gateway/v1beta1 java: api_description_override: builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. - released_version: 0.93.0 name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/anthos/multicluster-management/gateway/ - name: gke-multi-cloud @@ -1877,7 +1760,6 @@ libraries: api_id_override: gkemulticloud.googleapis.com api_description_override: enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. api_shortname_override: gke-multi-cloud - released_version: 0.91.0 name_pretty_override: Anthos Multicloud product_documentation_override: https://cloud.google.com/anthos/clusters/docs/multi-cloud - name: gkehub @@ -1909,7 +1791,6 @@ libraries: samples: false java: api_description_override: provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. - released_version: 1.92.0 name_pretty_override: GKE Hub API product_documentation_override: https://cloud.google.com/anthos/gke/docs/ - name: gkerecommender @@ -1920,15 +1801,12 @@ libraries: api_id_override: gkerecommender.googleapis.com api_description_override: lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview - released_version: 0.12.0 library_type_override: GAPIC_AUTO name_pretty_override: GKE Recommender API product_documentation_override: https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart - name: google-cloud-java version: 1.87.0-SNAPSHOT skip_generate: true - java: - released_version: 1.86.2 - name: grafeas version: 2.94.0-SNAPSHOT apis: @@ -1944,7 +1822,6 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/grafeas/latest/overview codeowner_team: '@googleapis/aap-dpes' group_id: io.grafeas - released_version: 2.93.0 name_pretty_override: Grafeas product_documentation_override: https://grafeas.io skip_pom_updates: true @@ -2002,7 +1879,6 @@ libraries: samples: false java: api_description_override: are customized applications that integrate with Google Workspace productivity applications. - released_version: 2.92.0 name_pretty_override: Google Workspace Add-ons API product_documentation_override: https://developers.google.com/workspace/add-ons/overview - name: health @@ -2013,7 +1889,6 @@ libraries: api_id_override: health.googleapis.com api_description_override: The Google Health API lets you view and manage health and fitness metrics and measurement data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview - released_version: 0.1.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Health API product_documentation_override: https://developers.google.com/health/api @@ -2033,7 +1908,6 @@ libraries: api_id_override: hypercomputecluster.googleapis.com api_description_override: simplifies cluster management across compute, network, and storage client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview - released_version: 0.12.0 library_type_override: GAPIC_AUTO name_pretty_override: Cluster Director API product_documentation_override: https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements @@ -2086,7 +1960,6 @@ libraries: - google-iam-policy - proto-google-iam-v1 group_id: com.google.api.grpc - released_version: 1.66.0 library_type_override: OTHER name_pretty_override: IAM product_documentation_override: https://cloud.google.com/iam @@ -2100,7 +1973,6 @@ libraries: api_description_override: you to manage your Service Accounts and IAM bindings. api_shortname_override: iam-admin artifact_id: google-iam-admin - released_version: 3.87.0 name_pretty_override: IAM Admin API product_documentation_override: https://cloud.google.com/iam/docs/apis - name: iam-policy @@ -2145,7 +2017,6 @@ libraries: - proto-google-iam-v1-bom - google-iam-policy - proto-google-iam-v1 - released_version: 1.89.0 name_pretty_override: IAM product_documentation_override: n/a - name: iamcredentials @@ -2155,7 +2026,6 @@ libraries: java: api_description_override: creates short-lived, limited-privilege credentials for IAM service accounts. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187161 - released_version: 2.92.0 name_pretty_override: IAM Service Account Credentials API product_documentation_override: https://cloud.google.com/iam/credentials/reference/rest/ billing_not_required: true @@ -2167,7 +2037,6 @@ libraries: api_id_override: iap.googleapis.com api_description_override: Controls access to cloud applications running on Google Cloud Platform. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview - released_version: 0.48.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Identity-Aware Proxy API product_documentation_override: https://cloud.google.com/iap @@ -2177,7 +2046,6 @@ libraries: - path: google/cloud/ids/v1 java: api_description_override: ' monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks.' - released_version: 1.91.0 name_pretty_override: Intrusion Detection System product_documentation_override: https://cloud.google.com/intrusion-detection-system/docs - name: infra-manager @@ -2191,7 +2059,6 @@ libraries: java: api_id_override: config.googleapis.com api_description_override: Creates and manages Google Cloud Platform resources and infrastructure. - released_version: 0.69.0 name_pretty_override: Infrastructure Manager API product_documentation_override: https://cloud.google.com/infrastructure-manager/docs/overview - name: iot @@ -2201,7 +2068,6 @@ libraries: java: api_description_override: is a complete set of tools to connect, process, store, and analyze data both at the edge and in the cloud. The platform consists of scalable, fully-managed cloud services; an integrated software stack for edge/on-premises computing with machine learning capabilities for all your IoT needs. issue_tracker_override: https://issuetracker.google.com/issues?q=status:open%20componentid:310170 - released_version: 2.92.0 name_pretty_override: Cloud Internet of Things (IoT) Core product_documentation_override: https://cloud.google.com/iot - name: java-shopping-merchant-issue-resolution @@ -2215,7 +2081,6 @@ libraries: artifact_id: google-shopping-merchant-issue-resolution client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Issue Resolution API product_documentation_override: https://developers.google.com/merchant/api @@ -2230,7 +2095,6 @@ libraries: artifact_id: google-shopping-merchant-order-tracking client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Order Tracking API product_documentation_override: https://developers.google.com/merchant/api @@ -2251,7 +2115,6 @@ libraries: java: api_description_override: a cloud-hosted key management service that lets you manage cryptographic keys for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256, RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage permissions on individual keys and monitor how these are used. Use Cloud KMS to protect secrets and other sensitive data that you need to store in Google Cloud Platform. issue_tracker_override: https://issuetracker.google.com/savedsearches/5264932 - released_version: 2.95.0 name_pretty_override: Cloud Key Management Service product_documentation_override: https://cloud.google.com/kms - name: kmsinventory @@ -2260,7 +2123,6 @@ libraries: - path: google/cloud/kms/inventory/v1 java: api_description_override: KMS Inventory API. - released_version: 0.81.0 name_pretty_override: KMS Inventory API product_documentation_override: https://cloud.google.com/kms/docs/ rest_documentation: https://cloud.google.com/kms/docs/reference/rest @@ -2274,7 +2136,6 @@ libraries: java: api_description_override: provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis. This API is part of the larger Cloud Machine Learning API family. issue_tracker_override: https://issuetracker.google.com/savedsearches/559753 - released_version: 2.93.0 name_pretty_override: Natural Language product_documentation_override: https://cloud.google.com/natural-language/docs/ rest_documentation: https://cloud.google.com/natural-language/docs/reference/rest @@ -2290,7 +2151,6 @@ libraries: api_id_override: licensemanager.googleapis.com api_description_override: License Manager is a tool to manage and track third-party licenses on Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview - released_version: 0.25.0 library_type_override: GAPIC_AUTO name_pretty_override: License Manager API product_documentation_override: https://cloud.google.com/compute/docs/instances/windows/ms-licensing @@ -2303,7 +2163,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a suite of services and tools for managing, processing, and transforming life sciences data. - released_version: 0.94.0 name_pretty_override: Cloud Life Sciences product_documentation_override: https://cloud.google.com/life-sciences/docs rest_documentation: https://cloud.google.com/life-sciences/docs/reference/rest @@ -2316,7 +2175,6 @@ libraries: api_id_override: locationfinder.googleapis.com api_description_override: Cloud Location Finder is a public API that offers a repository of all Google Cloud and Google Distributed Cloud locations, as well as cloud locations for other cloud providers. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview - released_version: 0.17.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Location Finder API product_documentation_override: https://cloud.google.com/location-finder/docs/overview @@ -2333,7 +2191,6 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history codeowner_team: '@googleapis/cloud-sdk-java-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559764 - released_version: 3.33.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Logging product_documentation_override: https://cloud.google.com/logging/docs @@ -2350,7 +2207,6 @@ libraries: api_id_override: lustre.googleapis.com api_description_override: Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview - released_version: 0.32.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Cloud Managed Lustre API product_documentation_override: https://cloud.google.com/managed-lustre/docs @@ -2369,7 +2225,6 @@ libraries: api_id_override: maintenance.googleapis.com api_description_override: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview - released_version: 0.26.0 library_type_override: GAPIC_AUTO name_pretty_override: Maintenance API product_documentation_override: https://cloud.google.com/unified-maintenance/docs/overview @@ -2381,7 +2236,6 @@ libraries: java: api_id_override: managedidentities.googleapis.com api_description_override: is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. - released_version: 1.90.0 name_pretty_override: Managed Service for Microsoft Active Directory product_documentation_override: https://cloud.google.com/managed-microsoft-ad/ - name: managedkafka @@ -2395,7 +2249,6 @@ libraries: api_id_override: managedkafka.googleapis.com api_description_override: Manage Apache Kafka clusters and resources. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview - released_version: 0.48.0 library_type_override: GAPIC_AUTO name_pretty_override: Managed Service for Apache Kafka product_documentation_override: https://cloud.google.com/managed-kafka @@ -2409,7 +2262,6 @@ libraries: api_shortname_override: maps-addressvalidation artifact_id: google-maps-addressvalidation group_id: com.google.maps - released_version: 0.86.0 name_pretty_override: Address Validation API product_documentation_override: https://developers.google.com/maps/documentation/address-validation/ - name: maps-area-insights @@ -2423,7 +2275,6 @@ libraries: artifact_id: google-maps-area-insights client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview group_id: com.google.maps - released_version: 0.43.0 library_type_override: GAPIC_AUTO name_pretty_override: Places Insights API product_documentation_override: https://developers.google.com/maps/documentation/places-insights @@ -2438,7 +2289,6 @@ libraries: artifact_id: google-maps-fleetengine client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview group_id: com.google.maps - released_version: 0.39.0 library_type_override: GAPIC_AUTO name_pretty_override: Local Rides and Deliveries API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility @@ -2453,7 +2303,6 @@ libraries: artifact_id: google-maps-fleetengine-delivery client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview group_id: com.google.maps - released_version: 0.39.0 library_type_override: GAPIC_AUTO name_pretty_override: Last Mile Fleet Solution Delivery API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility @@ -2467,7 +2316,6 @@ libraries: artifact_id: google-maps-geocode client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview group_id: com.google.maps - released_version: 0.4.0 library_type_override: GAPIC_AUTO name_pretty_override: Geocoding API product_documentation_override: https://developers.google.com/maps/documentation/geocoding/overview @@ -2481,7 +2329,6 @@ libraries: artifact_id: google-maps-mapmanagement client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview group_id: com.google.maps - released_version: 0.1.0 library_type_override: GAPIC_AUTO name_pretty_override: Map Management API product_documentation_override: https://developers.google.com/maps/documentation/mapmanagement/overview @@ -2497,7 +2344,6 @@ libraries: api_shortname_override: maps-mapsplatformdatasets artifact_id: google-maps-mapsplatformdatasets group_id: com.google.maps - released_version: 0.81.0 name_pretty_override: Maps Platform Datasets API product_documentation_override: https://developers.google.com/maps/documentation - name: maps-places @@ -2512,7 +2358,6 @@ libraries: api_shortname_override: maps-places artifact_id: google-maps-places group_id: com.google.maps - released_version: 0.63.0 name_pretty_override: Places API (New) product_documentation_override: https://developers.google.com/maps/documentation/places/web-service/ - name: maps-routeoptimization @@ -2525,7 +2370,6 @@ libraries: artifact_id: google-maps-routeoptimization client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview group_id: com.google.maps - released_version: 0.50.0 library_type_override: GAPIC_AUTO name_pretty_override: Route Optimization API product_documentation_override: https://developers.google.com/maps/documentation/route-optimization @@ -2541,7 +2385,6 @@ libraries: api_shortname_override: maps-routing artifact_id: google-maps-routing group_id: com.google.maps - released_version: 1.77.0 name_pretty_override: Routes API product_documentation_override: https://developers.google.com/maps/documentation/routes - name: maps-solar @@ -2555,7 +2398,6 @@ libraries: artifact_id: google-maps-solar client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview group_id: com.google.maps - released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Solar API product_documentation_override: https://developers.google.com/maps/documentation/solar/overview @@ -2572,7 +2414,6 @@ libraries: artifact_id: admin client_documentation_override: https://cloud.google.com/java/docs/reference/admin/latest/overview group_id: com.google.ads-marketingplatform - released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Marketing Platform Admin API product_documentation_override: https://developers.google.com/analytics/devguides/config/gmp/v1 @@ -2582,7 +2423,6 @@ libraries: - path: google/cloud/mediatranslation/v1beta1 java: api_description_override: provides enterprise quality translation from/to various media types. - released_version: 0.98.0 name_pretty_override: Media Translation API product_documentation_override: https://cloud.google.com/ billing_not_required: true @@ -2593,7 +2433,6 @@ libraries: - path: google/apps/meet/v2beta java: api_description_override: The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app - released_version: 0.59.0 name_pretty_override: Google Meet API product_documentation_override: https://developers.google.com/meet/api/guides/overview - name: memcache @@ -2609,7 +2448,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a fully-managed in-memory data store service for Memcache. - released_version: 2.92.0 name_pretty_override: Cloud Memcache product_documentation_override: https://cloud.google.com/memorystore/ billing_not_required: true @@ -2622,7 +2460,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud - released_version: 0.74.0 name_pretty_override: Migration Center API product_documentation_override: https://cloud.google.com/migration-center/docs/migration-center-overview - name: modelarmor @@ -2640,7 +2477,6 @@ libraries: api_id_override: modelarmor.googleapis.com api_description_override: Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview - released_version: 0.33.0 library_type_override: GAPIC_AUTO name_pretty_override: Model Armor API product_documentation_override: https://cloud.google.com/security-command-center/docs/model-armor-overview @@ -2653,7 +2489,6 @@ libraries: java: api_description_override: collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premise systems, and hybrid cloud systems. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts. BindPlane is included with your Google Cloud project at no additional cost. issue_tracker_override: https://issuetracker.google.com/savedsearches/559785 - released_version: 3.93.0 name_pretty_override: Stackdriver Monitoring product_documentation_override: https://cloud.google.com/monitoring/docs - name: monitoring-dashboards @@ -2665,7 +2500,6 @@ libraries: api_description_override: are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration. api_shortname_override: monitoring-dashboards artifact_id: google-cloud-monitoring-dashboard - released_version: 2.94.0 name_pretty_override: Monitoring Dashboards product_documentation_override: https://cloud.google.com/monitoring/charts/dashboards - name: monitoring-metricsscope @@ -2676,7 +2510,6 @@ libraries: api_id_override: monitoring.googleapis.com api_description_override: The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. api_shortname_override: monitoring-metricsscope - released_version: 0.86.0 name_pretty_override: Monitoring Metrics Scopes product_documentation_override: https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes - name: netapp @@ -2688,7 +2521,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. - released_version: 0.71.0 name_pretty_override: NetApp API product_documentation_override: https://cloud.google.com/netapp/volumes/docs/discover/overview - name: network-management @@ -2706,7 +2538,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: provides a collection of network performance monitoring and diagnostic capabilities. - released_version: 1.93.0 name_pretty_override: Network Management API product_documentation_override: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ - name: network-security @@ -2724,7 +2555,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: n/a - released_version: 0.95.0 name_pretty_override: Network Security API product_documentation_override: https://cloud.google.com/traffic-director/docs/reference/network-security/rest - name: networkconnectivity @@ -2743,7 +2573,6 @@ libraries: - path: google/cloud/networkconnectivity/v1alpha1 java: api_description_override: Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network - released_version: 1.91.0 name_pretty_override: Network Connectivity Center product_documentation_override: https://cloud.google.com/network-connectivity/docs - name: networkservices @@ -2758,7 +2587,6 @@ libraries: api_id_override: networkservices.googleapis.com api_description_override: Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview - released_version: 0.48.0 library_type_override: GAPIC_AUTO name_pretty_override: Network Services API product_documentation_override: https://cloud.google.com/products/networking @@ -2782,7 +2610,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. - released_version: 1.90.0 name_pretty_override: AI Platform Notebooks product_documentation_override: https://cloud.google.com/ai-platform-notebooks - name: optimization @@ -2791,7 +2618,6 @@ libraries: - path: google/cloud/optimization/v1 java: api_description_override: is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. - released_version: 1.90.0 name_pretty_override: Cloud Fleet Routing product_documentation_override: https://cloud.google.com/optimization/docs rest_documentation: https://cloud.google.com/optimization/docs/reference/rest @@ -2807,7 +2633,6 @@ libraries: api_id_override: oracledatabase.googleapis.com api_description_override: The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview - released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Oracle Database@Google Cloud API product_documentation_override: https://cloud.google.com/oracle/database/docs @@ -2820,7 +2645,6 @@ libraries: api_id_override: composer.googleapis.com api_description_override: is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. api_shortname_override: orchestration-airflow - released_version: 1.92.0 name_pretty_override: Cloud Composer product_documentation_override: https://cloud.google.com/composer/docs rest_documentation: https://cloud.google.com/composer/docs/reference/rest @@ -2838,7 +2662,6 @@ libraries: java: api_description_override: n/a client_documentation_override: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview - released_version: 2.92.0 name_pretty_override: Cloud Organization Policy product_documentation_override: n/a - name: os-config @@ -2850,7 +2673,6 @@ libraries: java: api_id_override: osconfig.googleapis.com api_description_override: provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. - released_version: 2.94.0 name_pretty_override: OS Config API product_documentation_override: https://cloud.google.com/compute/docs/os-patch-management billing_not_required: true @@ -2874,7 +2696,6 @@ libraries: java: api_description_override: manages OS login configuration for Directory API users. issue_tracker_override: https://issuetracker.google.com/savedsearches/559755 - released_version: 2.91.0 name_pretty_override: Cloud OS Login product_documentation_override: https://cloud.google.com/compute/docs/oslogin/ - name: parallelstore @@ -2892,7 +2713,6 @@ libraries: api_id_override: parallelstore.googleapis.com api_description_override: 'Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview - released_version: 0.55.0 library_type_override: GAPIC_AUTO name_pretty_override: Parallelstore API product_documentation_override: https://cloud/parallelstore?hl=en @@ -2907,7 +2727,6 @@ libraries: api_id_override: parametermanager.googleapis.com api_description_override: (Public Preview) Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview - released_version: 0.36.0 library_type_override: GAPIC_AUTO name_pretty_override: Parameter Manager API product_documentation_override: https://cloud.google.com/secret-manager/parameter-manager/docs/overview @@ -2917,7 +2736,6 @@ libraries: - path: google/cloud/phishingprotection/v1beta1 java: api_description_override: helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing. Once a site is propagated to Safe Browsing, users will see warnings across more than 4 billion devices. - released_version: 0.123.0 name_pretty_override: Phishing Protection product_documentation_override: https://cloud.google.com/phishing-protection/docs/ billing_not_required: true @@ -2929,7 +2747,6 @@ libraries: java: api_id_override: policytroubleshooter.googleapis.com api_description_override: makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. - released_version: 1.91.0 name_pretty_override: IAM Policy Troubleshooter API product_documentation_override: https://cloud.google.com/iam/docs/troubleshooting-access - name: policysimulator @@ -2938,7 +2755,6 @@ libraries: - path: google/cloud/policysimulator/v1 java: api_description_override: Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. - released_version: 0.71.0 name_pretty_override: Policy Simulator API product_documentation_override: https://cloud.google.com/policysimulator/docs/overview - name: private-catalog @@ -2948,7 +2764,6 @@ libraries: java: api_id_override: privatecatalog.googleapis.com api_description_override: allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. - released_version: 0.94.0 name_pretty_override: Private Catalog product_documentation_override: https://cloud.google.com/private-catalog/docs - name: privilegedaccessmanager @@ -2962,7 +2777,6 @@ libraries: api_id_override: privilegedaccessmanager.googleapis.com api_description_override: Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse orabuse. PAM allows you to shift from always-on standing privileges towards on-demand access with just-in-time, time-bound, and approval-based access elevations. PAM allows IAM administrators to create entitlements that can grant just-in-time, temporary access to any resource scope. Requesters can explore eligible entitlements and request the access needed for their task. Approvers are notified when approvals await their decision. Streamlined workflows facilitated by using PAM can support various use cases, including emergency access for incident responders, time-boxed access for developers for critical deployment or maintenance, temporary access for operators for data ingestion and audits, JIT access to service accounts for automated tasks, and more. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview - released_version: 0.46.0 library_type_override: GAPIC_AUTO name_pretty_override: Privileged Access Manager API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview @@ -2974,7 +2788,6 @@ libraries: java: api_id_override: cloudprofiler.googleapis.com api_description_override: is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. - released_version: 2.92.0 name_pretty_override: Cloud Profiler product_documentation_override: https://cloud.google.com/profiler/docs - name: publicca @@ -2984,7 +2797,6 @@ libraries: - path: google/cloud/security/publicca/v1beta1 java: api_description_override: The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. - released_version: 0.89.0 name_pretty_override: Public Certificate Authority API product_documentation_override: https://cloud.google.com/certificate-manager/docs/public-ca rpc_documentation: https://cloud.google.com/certificate-manager/docs/reference/public-ca/rpc @@ -3053,7 +2865,6 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history codeowner_team: '@googleapis/pubsub-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559741 - released_version: 1.150.2 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Pub/Sub product_documentation_override: https://cloud.google.com/pubsub/docs/ @@ -3067,7 +2878,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Rapid Migration Assessment API - released_version: 0.75.0 name_pretty_override: Rapid Migration Assessment API product_documentation_override: https://cloud.google.com/migration-center/docs - name: recaptchaenterprise @@ -3077,7 +2887,6 @@ libraries: - path: google/cloud/recaptchaenterprise/v1beta1 java: api_description_override: is a service that protects your site from spam and abuse. - released_version: 3.89.0 name_pretty_override: reCAPTCHA Enterprise product_documentation_override: https://cloud.google.com/recaptcha-enterprise/docs/ billing_not_required: true @@ -3089,7 +2898,6 @@ libraries: - path: google/cloud/recommendationengine/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. - released_version: 0.99.0 name_pretty_override: Recommendations AI product_documentation_override: https://cloud.google.com/recommendations-ai/ - name: recommender @@ -3099,7 +2907,6 @@ libraries: - path: google/cloud/recommender/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. - released_version: 2.94.0 name_pretty_override: Recommender product_documentation_override: https://cloud.google.com/recommendations/ - name: redis @@ -3113,7 +2920,6 @@ libraries: java: api_description_override: is a fully managed Redis service for the Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5169231 - released_version: 2.95.0 name_pretty_override: Cloud Redis product_documentation_override: https://cloud.google.com/memorystore/docs/redis/ - name: redis-cluster @@ -3130,7 +2936,6 @@ libraries: java: api_description_override: Creates and manages Redis instances on the Google Cloud Platform. api_shortname_override: redis-cluster - released_version: 0.64.0 name_pretty_override: Google Cloud Memorystore for Redis API product_documentation_override: https://cloud.google.com/memorystore/docs/cluster - name: resourcemanager @@ -3142,7 +2947,6 @@ libraries: java: api_description_override: enables you to programmatically manage resources by project, folder, and organization. issue_tracker_override: https://issuetracker.google.com/savedsearches/559757 - released_version: 1.94.0 name_pretty_override: Resource Manager API product_documentation_override: https://cloud.google.com/resource-manager billing_not_required: true @@ -3163,7 +2967,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Retail solutions API. - released_version: 2.94.0 name_pretty_override: Cloud Retail product_documentation_override: https://cloud.google.com/solutions/retail - name: run @@ -3175,7 +2978,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a managed compute platform that enables you to run containers that are invocable via requests or events. - released_version: 0.92.0 name_pretty_override: Cloud Run product_documentation_override: https://cloud.google.com/run/docs rest_documentation: https://cloud.google.com/run/docs/reference/rest @@ -3191,7 +2993,6 @@ libraries: api_id_override: saasservicemgmt.googleapis.com api_description_override: "Model, deploy, and operate your SaaS at scale.\t" client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview - released_version: 0.22.0 library_type_override: GAPIC_AUTO name_pretty_override: App Lifecycle Manager product_documentation_override: https://cloud.google.com/saas-runtime/docs/overview @@ -3213,7 +3014,6 @@ libraries: java: api_description_override: lets you set up scheduled units of work to be executed at defined times or regular intervals. These work units are commonly known as cron jobs. Typical use cases might include sending out a report email on a daily basis, updating some cached data every 10 minutes, or updating some summary information once an hour. issue_tracker_override: https://issuetracker.google.com/savedsearches/5411429 - released_version: 2.92.0 name_pretty_override: Google Cloud Scheduler product_documentation_override: https://cloud.google.com/scheduler/docs billing_not_required: true @@ -3233,7 +3033,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows you to encrypt, store, manage, and audit infrastructure and application-level secrets. - released_version: 2.92.0 name_pretty_override: Secret Management product_documentation_override: https://cloud.google.com/solutions/secrets-management/ billing_not_required: true @@ -3249,7 +3048,6 @@ libraries: api_description_override: |- Regionally deployed, single-tenant managed source code repository hosted on Google Cloud. - released_version: 0.62.0 name_pretty_override: Secure Source Manager API product_documentation_override: https://cloud.google.com/secure-source-manager/docs/overview - name: security-private-ca @@ -3264,7 +3062,6 @@ libraries: java: api_id_override: privateca.googleapis.com api_description_override: simplifies the deployment and management of private CAs without managing infrastructure. - released_version: 2.94.0 name_pretty_override: Certificate Authority Service product_documentation_override: https://cloud.google.com/certificate-authority-service/docs rest_documentation: https://cloud.google.com/certificate-authority-service/docs/reference/rest @@ -3285,7 +3082,6 @@ libraries: java: api_description_override: makes it easier for you to prevent, detect, and respond to threats. Identify security misconfigurations in virtual machines, networks, applications, and storage buckets from a centralized dashboard. Take action on them before they can potentially result in business damage or loss. Built-in capabilities can quickly surface suspicious activity in your Stackdriver security logs or indicate compromised virtual machines. Respond to threats by following actionable recommendations or exporting logs to your SIEM for further investigation. issue_tracker_override: https://issuetracker.google.com/savedsearches/559748 - released_version: 2.100.0 name_pretty_override: Security Command Center product_documentation_override: https://cloud.google.com/security-command-center billing_not_required: true @@ -3297,7 +3093,6 @@ libraries: java: api_id_override: securitycenter-settings.googleapis.com api_description_override: is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. - released_version: 0.95.0 name_pretty_override: Security Command Center Settings API product_documentation_override: https://cloud.google.com/security-command-center/ billing_not_required: true @@ -3311,7 +3106,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Center Management API - released_version: 0.60.0 name_pretty_override: Security Center Management API product_documentation_override: https://cloud.google.com/securitycentermanagement/docs/overview - name: securityposture @@ -3323,7 +3117,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. - released_version: 0.57.0 name_pretty_override: Security Posture API product_documentation_override: https://cloud.google.com/security-command-center/docs/security-posture-overview - name: service-control @@ -3333,7 +3126,6 @@ libraries: - path: google/api/servicecontrol/v1 java: api_description_override: ' is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway.' - released_version: 1.92.0 name_pretty_override: Service Control API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - name: service-management @@ -3348,7 +3140,6 @@ libraries: java: api_id_override: servicemanagement.googleapis.com api_description_override: is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. - released_version: 3.90.0 name_pretty_override: Service Management API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - name: service-usage @@ -3358,7 +3149,6 @@ libraries: - path: google/api/serviceusage/v1beta1 java: api_description_override: is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. - released_version: 2.92.0 name_pretty_override: Service Usage product_documentation_override: https://cloud.google.com/service-usage/docs/overview - name: servicedirectory @@ -3374,7 +3164,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows the registration and lookup of service endpoints. - released_version: 2.93.0 name_pretty_override: Service Directory product_documentation_override: https://cloud.google.com/service-directory/ billing_not_required: true @@ -3389,7 +3178,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. - released_version: 0.59.0 name_pretty_override: Service Health API product_documentation_override: https://cloud.google.com/service-health/docs/overview rpc_documentation: https://cloud.google.com/service-health/docs/reference/rpc @@ -3400,7 +3188,6 @@ libraries: java: api_description_override: is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. codeowner_team: '@googleapis/aap-dpes' - released_version: 2.91.0 name_pretty_override: Cloud Shell product_documentation_override: https://cloud.google.com/shell/docs rest_documentation: https://cloud.google.com/shell/docs/reference/rest @@ -3413,7 +3200,6 @@ libraries: api_description_override: The CSS API is used to manage your CSS and control your CSS Products portfolio artifact_id: google-shopping-css group_id: com.google.shopping - released_version: 0.60.0 name_pretty_override: CSS API product_documentation_override: https://developers.google.com/comparison-shopping-services/api - name: shopping-merchant-accounts @@ -3427,7 +3213,6 @@ libraries: artifact_id: google-shopping-merchant-accounts client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3443,7 +3228,6 @@ libraries: artifact_id: google-shopping-merchant-conversions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Conversions API product_documentation_override: https://developers.google.com/merchant/api @@ -3458,7 +3242,6 @@ libraries: artifact_id: google-shopping-merchant-datasources client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3471,7 +3254,6 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-inventories group_id: com.google.shopping - released_version: 1.20.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-lfp @@ -3486,7 +3268,6 @@ libraries: artifact_id: google-shopping-merchant-lfp client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant LFP API product_documentation_override: https://developers.google.com/merchant/api @@ -3502,7 +3283,6 @@ libraries: artifact_id: google-shopping-merchant-notifications client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Notifications API product_documentation_override: https://developers.google.com/merchant/api @@ -3516,7 +3296,6 @@ libraries: artifact_id: google-shopping-merchant-productstudio client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview group_id: com.google.shopping - released_version: 0.32.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3531,7 +3310,6 @@ libraries: artifact_id: google-shopping-merchant-products client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3546,7 +3324,6 @@ libraries: artifact_id: google-shopping-merchant-promotions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3562,7 +3339,6 @@ libraries: artifact_id: google-shopping-merchant-quota client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview group_id: com.google.shopping - released_version: 1.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Quota API product_documentation_override: https://developers.google.com/merchant/api @@ -3576,7 +3352,6 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-reports group_id: com.google.shopping - released_version: 1.20.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-reviews @@ -3588,7 +3363,6 @@ libraries: artifact_id: google-shopping-merchant-reviews client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview group_id: com.google.shopping - released_version: 0.38.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api @@ -3614,7 +3388,6 @@ libraries: artifact_id: gapic-showcase excluded_poms: - gapic-showcase-bom - released_version: 0.0.0 library_type_override: OTHER name_pretty_override: Showcase product_documentation_override: https://cloud.google.com/dummy @@ -3654,7 +3427,6 @@ libraries: - google-cloud-spanner-bom - google-cloud-spanner issue_tracker_override: https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open - released_version: 6.117.0 library_type_override: GAPIC_COMBO min_java_version: 8 name_pretty_override: Cloud Spanner @@ -3670,7 +3442,6 @@ libraries: api_description_override: The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. api_shortname_override: spanneradapter client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview - released_version: 0.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Spanner Adapter API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview @@ -3691,7 +3462,6 @@ libraries: java: api_description_override: enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Speech-to-Text API service. issue_tracker_override: https://issuetracker.google.com/savedsearches/559758 - released_version: 4.87.0 name_pretty_override: Cloud Speech product_documentation_override: https://cloud.google.com/speech-to-text/docs/ billing_not_required: true @@ -3728,7 +3498,6 @@ libraries: - google-cloud-storage extra_versioned_modules: gapic-google-cloud-storage-v2 issue_tracker_override: https://issuetracker.google.com/savedsearches/559782 - released_version: 2.68.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Storage product_documentation_override: https://cloud.google.com/storage @@ -3740,7 +3509,6 @@ libraries: - path: google/storagetransfer/v1 java: api_description_override: Secure, low-cost services for transferring data from cloud or on-premises sources. - released_version: 1.92.0 name_pretty_override: Storage Transfer Service product_documentation_override: https://cloud.google.com/storage-transfer-service - name: storagebatchoperations @@ -3754,7 +3522,6 @@ libraries: api_id_override: storagebatchoperations.googleapis.com api_description_override: Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview - released_version: 0.32.0 library_type_override: GAPIC_AUTO name_pretty_override: Storage Batch Operations API product_documentation_override: https://cloud.google.com/storage/docs/batch-operations/overview @@ -3767,7 +3534,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Provides insights capability on Google Cloud Storage - released_version: 0.77.0 name_pretty_override: Storage Insights API product_documentation_override: https://cloud.google.com/storage/docs/insights/storage-insights/ - name: talent @@ -3778,7 +3544,6 @@ libraries: java: api_description_override: allows you to transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search (Beta) to provide candidates and employers with an enhanced talent acquisition experience. Learn more about Cloud Talent Solution from the product overview page. issue_tracker_override: https://issuetracker.google.com/savedsearches/559664 - released_version: 2.93.0 name_pretty_override: Talent Solution product_documentation_override: https://cloud.google.com/solutions/talent-solution/ - name: tasks @@ -3805,7 +3570,6 @@ libraries: api_description_override: a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint. codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/5433985 - released_version: 2.92.0 name_pretty_override: Cloud Tasks product_documentation_override: https://cloud.google.com/tasks/docs/ rest_documentation: https://cloud.google.com/tasks/docs/reference/rest @@ -3823,7 +3587,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: APIs to automate 5G deployment and management of cloud infrastructure and network functions. - released_version: 0.62.0 name_pretty_override: Telco Automation API product_documentation_override: https://cloud.google.com/telecom-network-automation - name: texttospeech @@ -3837,7 +3600,6 @@ libraries: java: api_description_override: enables easy integration of Google text recognition technologies into developer applications. Send text and receive synthesized audio output from the Cloud Text-to-Speech API service. issue_tracker_override: https://issuetracker.google.com/savedsearches/5235428 - released_version: 2.93.0 name_pretty_override: Cloud Text-to-Speech product_documentation_override: https://cloud.google.com/text-to-speech billing_not_required: true @@ -3860,7 +3622,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. - released_version: 2.93.0 name_pretty_override: Cloud TPU product_documentation_override: https://cloud.google.com/tpu/docs rest_documentation: https://cloud.google.com/tpu/docs/reference/rest @@ -3874,7 +3635,6 @@ libraries: - google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java java: api_description_override: is a distributed tracing system that collects latency data from your applications and displays it in the Google Cloud Platform Console. You can track how requests propagate through your application and receive detailed near real-time performance insights. - released_version: 2.92.0 name_pretty_override: Stackdriver Trace product_documentation_override: https://cloud.google.com/trace/docs/ billing_not_required: true @@ -3887,7 +3647,6 @@ libraries: api_id_override: translate.googleapis.com api_description_override: can dynamically translate text between thousands of language pairs. Translation lets websites and programs programmatically integrate with the translation service. issue_tracker_override: https://issuetracker.google.com/savedsearches/559749 - released_version: 2.92.0 name_pretty_override: Cloud Translation product_documentation_override: https://cloud.google.com/translate/docs/ rest_documentation: https://cloud.google.com/translate/docs/reference/rest @@ -3907,7 +3666,6 @@ libraries: api_id_override: memorystore.googleapis.com api_description_override: Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview - released_version: 0.38.0 library_type_override: GAPIC_AUTO name_pretty_override: Memorystore API product_documentation_override: https://cloud.google.com/memorystore/docs/valkey @@ -3927,7 +3685,6 @@ libraries: api_id_override: vectorsearch.googleapis.com api_description_override: The Vector Search API provides a fully-managed, highly performant, and scalable vector database designed to power next-generation search, recommendation, and generative AI applications. It allows you to store, index, and query your data and its corresponding vector embeddings through a simple, intuitive interface. With Vector Search, you can define custom schemas for your data, insert objects with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview - released_version: 0.14.0 library_type_override: GAPIC_AUTO name_pretty_override: Vector Search API product_documentation_override: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview @@ -3942,7 +3699,6 @@ libraries: java: api_description_override: allows developers to use Google video analysis technology as part of their applications. issue_tracker_override: https://issuetracker.google.com/savedsearches/5084810 - released_version: 2.91.0 name_pretty_override: Cloud Video Intelligence product_documentation_override: https://cloud.google.com/video-intelligence/docs/ rest_documentation: https://cloud.google.com/video-intelligence/docs/reference/rest @@ -3957,7 +3713,6 @@ libraries: java: api_description_override: transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. artifact_id: google-cloud-live-stream - released_version: 0.94.0 name_pretty_override: Live Stream API product_documentation_override: https://cloud.google.com/livestream/ - name: video-stitcher @@ -3966,7 +3721,6 @@ libraries: - path: google/cloud/video/stitcher/v1 java: api_description_override: allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. - released_version: 0.92.0 name_pretty_override: Video Stitcher API product_documentation_override: https://cloud.google.com/video-stitcher/ - name: video-transcoder @@ -3976,7 +3730,6 @@ libraries: java: api_id_override: transcoder.googleapis.com api_description_override: allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. - released_version: 1.91.0 name_pretty_override: Video Transcoder product_documentation_override: https://cloud.google.com/transcoder/docs rest_documentation: https://cloud.google.com/transcoder/docs/reference/rest @@ -4002,7 +3755,6 @@ libraries: java: api_description_override: allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content. issue_tracker_override: https://issuetracker.google.com/issues?q=status:open%20componentid:187174 - released_version: 3.90.0 name_pretty_override: Cloud Vision product_documentation_override: https://cloud.google.com/vision/docs/ rest_documentation: https://cloud.google.com/vision/docs/reference/rest @@ -4019,7 +3771,6 @@ libraries: api_id_override: visionai.googleapis.com api_description_override: Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview - released_version: 0.49.0 library_type_override: GAPIC_AUTO name_pretty_override: Vision AI API product_documentation_override: https://cloud.google.com/vision-ai/docs @@ -4034,7 +3785,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. - released_version: 1.92.0 name_pretty_override: VM Migration product_documentation_override: n/a - name: vmwareengine @@ -4047,7 +3797,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. - released_version: 0.86.0 name_pretty_override: Google Cloud VMware Engine product_documentation_override: https://cloud.google.com/vmware-engine/ rest_documentation: https://cloud.google.com/vmware-engine/docs/reference/rest @@ -4060,7 +3809,6 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. - released_version: 2.93.0 name_pretty_override: Serverless VPC Access product_documentation_override: https://cloud.google.com/vpc/docs/serverless-vpc-access - name: webrisk @@ -4070,7 +3818,6 @@ libraries: - path: google/cloud/webrisk/v1beta1 java: api_description_override: is a Google Cloud service that lets client applications check URLs against Google's constantly updated lists of unsafe web resources. Unsafe web resources include social engineering sites - such as phishing and deceptive sites - and sites that host malware or unwanted software. With the Web Risk API, you can quickly identify known bad sites, warn users before they click infected links, and prevent users from posting links to known infected pages from your site. The Web Risk API includes data on more than a million unsafe URLs and stays up to date by examining billions of URLs each day. - released_version: 2.91.0 name_pretty_override: Web Risk product_documentation_override: https://cloud.google.com/web-risk/docs/ billing_not_required: true @@ -4088,7 +3835,6 @@ libraries: java: api_description_override: identifies security vulnerabilities in your App Engine, Compute Engine, and Google Kubernetes Engine web applications. It crawls your application, following all links within the scope of your starting URLs, and attempts to exercise as many user inputs and event handlers as possible. issue_tracker_override: https://issuetracker.google.com/savedsearches/559748 - released_version: 2.92.0 name_pretty_override: Cloud Security Scanner product_documentation_override: https://cloud.google.com/security-scanner/docs/ billing_not_required: true @@ -4100,7 +3846,6 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' - released_version: 2.92.0 name_pretty_override: Cloud Workflow Executions product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest @@ -4118,7 +3863,6 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' - released_version: 2.92.0 name_pretty_override: Cloud Workflows product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest @@ -4133,7 +3877,6 @@ libraries: api_id_override: workloadmanager.googleapis.com api_description_override: Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview - released_version: 0.8.0 library_type_override: GAPIC_AUTO name_pretty_override: Workload Manager API product_documentation_override: https://docs.cloud.google.com/workload-manager/docs @@ -4145,7 +3888,6 @@ libraries: - path: google/apps/events/subscriptions/v1beta java: api_description_override: The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. - released_version: 0.56.0 name_pretty_override: Google Workspace Events API product_documentation_override: https://developers.google.com/workspace/events rest_documentation: https://developers.google.com/workspace/events/reference/rest @@ -4164,7 +3906,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. - released_version: 0.80.0 name_pretty_override: Cloud Workstations product_documentation_override: https://cloud.google.com/workstations rest_documentation: https://cloud.google.com/workstations/docs/reference/rest