# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto for package 'Google.Cloud.GeminiDataAnalytics.V1beta'
# Original file comments:
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'grpc'
require 'google/cloud/geminidataanalytics/v1beta/data_chat_service_pb'

module Google
  module Cloud
    module GeminiDataAnalytics
      module V1beta
        module DataChatService
          # 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.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.geminidataanalytics.v1beta.DataChatService'

            # Answers a data question by generating a stream of
            # [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.
            rpc :Chat, ::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest, stream(::Google::Cloud::GeminiDataAnalytics::V1beta::Message)
            # Creates a new conversation to persist the conversation history. Each
            # conversation will have multiple messages associated with it.
            rpc :CreateConversation, ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateConversationRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
            # Gets details of a single conversation by using conversation id and parent.
            rpc :GetConversation, ::Google::Cloud::GeminiDataAnalytics::V1beta::GetConversationRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
            # Lists all conversations for a given parent.
            rpc :ListConversations, ::Google::Cloud::GeminiDataAnalytics::V1beta::ListConversationsRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::ListConversationsResponse
            # Lists all messages for a given conversation.
            rpc :ListMessages, ::Google::Cloud::GeminiDataAnalytics::V1beta::ListMessagesRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::ListMessagesResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
