Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class Context.
A collection of context to apply to this conversation
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.Context
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ system_instruction
string
Optional. The basic entry point for data owners creating domain knowledge for Agent. Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
Optional. Additional options for the conversation.
getSystemInstruction
Optional. The basic entry point for data owners creating domain knowledge
for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
can help the model understand the business context around a user question.
Returns
Type
Description
string
setSystemInstruction
Optional. The basic entry point for data owners creating domain knowledge
for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
can help the model understand the business context around a user question.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatasourceReferences
Required. Datasources available for answering the question.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Gemini Data Analytics V1beta Client - Class Context (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context)\n- [0.1.0](/php/docs/reference/cloud-geminidataanalytics/0.1.0/V1beta.Context) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class Context.\n\nA collection of context to apply to this conversation\n\nGenerated from protobuf message `google.cloud.geminidataanalytics.v1beta.Context`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GeminiDataAnalytics \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSystemInstruction\n\nOptional. The basic entry point for data owners creating domain knowledge\nfor Agent.\n\nWhy: Business jargon (e.g., YTD revenue is calculated as..., Retirement Age\nis 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)\ncan help the model understand the business context around a user question.\n\n### setSystemInstruction\n\nOptional. The basic entry point for data owners creating domain knowledge\nfor Agent.\n\nWhy: Business jargon (e.g., YTD revenue is calculated as..., Retirement Age\nis 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)\ncan help the model understand the business context around a user question.\n\n### getDatasourceReferences\n\nRequired. Datasources available for answering the question.\n\n### hasDatasourceReferences\n\n### clearDatasourceReferences\n\n### setDatasourceReferences\n\nRequired. Datasources available for answering the question.\n\n### getOptions\n\nOptional. Additional options for the conversation.\n\n### hasOptions\n\n### clearOptions\n\n### setOptions\n\nOptional. Additional options for the conversation."]]