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

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

Request for Chat.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#conversation_reference

def conversation_reference() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference
Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.

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

#conversation_reference=

def conversation_reference=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference
Parameter
  • value (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.

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

Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.

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

#data_agent_context

def data_agent_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext
Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.

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

#data_agent_context=

def data_agent_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext
Parameter
  • value (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.

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

Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.

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

#inline_context

def inline_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context
Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.

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

#inline_context=

def inline_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context
Parameter
  • value (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.

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

Returns
  • (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.

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

#messages

def messages() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>
Returns

#messages=

def messages=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>
Parameter
Returns

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The parent value for chat request. Pattern: projects/{project}/locations/{location}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The parent value for chat request. Pattern: projects/{project}/locations/{location}
Returns
  • (::String) — Required. The parent value for chat request. Pattern: projects/{project}/locations/{location}

#project

def project() -> ::String
Returns
  • (::String) — Optional. The Google Cloud project to be used for quota and billing.

#project=

def project=(value) -> ::String
Parameter
  • value (::String) — Optional. The Google Cloud project to be used for quota and billing.
Returns
  • (::String) — Optional. The Google Cloud project to be used for quota and billing.