Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Session.
External session proto definition.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#display_name
def display_name() -> ::String
-
(::String) — Optional. The display name of the session.
This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session.
#display_name=
def display_name=(value) -> ::String
-
value (::String) — Optional. The display name of the session.
This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session.
-
(::String) — Optional. The display name of the session.
This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session.
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the session finished.
#is_pinned
def is_pinned() -> ::Boolean
- (::Boolean) — Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list.
#is_pinned=
def is_pinned=(value) -> ::Boolean
- value (::Boolean) — Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list.
- (::Boolean) — Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list.
#name
def name() -> ::String
-
(::String) — Immutable. Fully qualified name
projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*
#name=
def name=(value) -> ::String
-
value (::String) — Immutable. Fully qualified name
projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*
-
(::String) — Immutable. Fully qualified name
projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*
#start_time
def start_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the session started.
#state
def state() -> ::Google::Cloud::DiscoveryEngine::V1::Session::State
- (::Google::Cloud::DiscoveryEngine::V1::Session::State) — The state of the session.
#state=
def state=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Session::State
- value (::Google::Cloud::DiscoveryEngine::V1::Session::State) — The state of the session.
- (::Google::Cloud::DiscoveryEngine::V1::Session::State) — The state of the session.
#turns
def turns() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>
- (::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>) — Turns.
#turns=
def turns=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>
- value (::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>) — Turns.
- (::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>) — Turns.
#user_pseudo_id
def user_pseudo_id() -> ::String
- (::String) — A unique identifier for tracking users.
#user_pseudo_id=
def user_pseudo_id=(value) -> ::String
- value (::String) — A unique identifier for tracking users.
- (::String) — A unique identifier for tracking users.