# frozen_string_literal: true # Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Auto-generated by gapic-generator-ruby. DO NOT EDIT! module Google module Cloud module DiscoveryEngine module V1 # External session proto definition. # @!attribute [rw] name # @return [::String] # Immutable. Fully qualified name # `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` # @!attribute [rw] state # @return [::Google::Cloud::DiscoveryEngine::V1::Session::State] # The state of the session. # @!attribute [rw] user_pseudo_id # @return [::String] # A unique identifier for tracking users. # @!attribute [rw] turns # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>] # Turns. # @!attribute [r] start_time # @return [::Google::Protobuf::Timestamp] # Output only. The time the session started. # @!attribute [r] end_time # @return [::Google::Protobuf::Timestamp] # Output only. The time the session finished. class Session include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a turn, including a query from the user and a # answer from service. # @!attribute [rw] query # @return [::Google::Cloud::DiscoveryEngine::V1::Query] # The user query. # @!attribute [rw] answer # @return [::String] # The resource name of the answer to the user query. # # Only set if the answer generation (/answer API call) happened in this # turn. class Turn include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Enumeration of the state of the session. module State # State is unspecified. STATE_UNSPECIFIED = 0 # The session is currently open. IN_PROGRESS = 1 end end # Defines a user inputed query. # @!attribute [rw] text # @return [::String] # Plain text. # @!attribute [rw] query_id # @return [::String] # Unique Id for the query. class Query include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end end end