Package com.google.cloud.geminidataanalytics.v1beta


@Generated("by gapic-generator-java") package com.google.cloud.geminidataanalytics.v1beta
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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }