Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::Message (v0.1.0)

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::Message.

A message from an interaction between the user and the system.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#message_id

def message_id() -> ::String
Returns
  • (::String) — Optional. unique id of the message in the conversation for persistence.

#message_id=

def message_id=(value) -> ::String
Parameter
  • value (::String) — Optional. unique id of the message in the conversation for persistence.
Returns
  • (::String) — Optional. unique id of the message in the conversation for persistence.

#system_message

def system_message() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::SystemMessage
Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::SystemMessage) — A message from the system in response to the user.

    Note: The following fields are mutually exclusive: system_message, user_message. If a field in that set is populated, all other fields in the set will automatically be cleared.

#system_message=

def system_message=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::SystemMessage
Parameter
  • value (::Google::Cloud::GeminiDataAnalytics::V1beta::SystemMessage) — A message from the system in response to the user.

    Note: The following fields are mutually exclusive: system_message, user_message. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::SystemMessage) — A message from the system in response to the user.

    Note: The following fields are mutually exclusive: system_message, user_message. If a field in that set is populated, all other fields in the set will automatically be cleared.

#timestamp

def timestamp() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

#user_message

def user_message() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage
Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage) — A message from the user that is interacting with the system.

    Note: The following fields are mutually exclusive: user_message, system_message. If a field in that set is populated, all other fields in the set will automatically be cleared.

#user_message=

def user_message=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage
Parameter
  • value (::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage) — A message from the user that is interacting with the system.

    Note: The following fields are mutually exclusive: user_message, system_message. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage) — A message from the user that is interacting with the system.

    Note: The following fields are mutually exclusive: user_message, system_message. If a field in that set is populated, all other fields in the set will automatically be cleared.