Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class DataQuery.
A query for retrieving data.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.DataQuery
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ question
string
Optional. A natural language question to answer.
↳ name
string
Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps. * * Example: "total_sales_by_product" * * Example: "sales_for_product_12345"
Optional. The datasources available to answer the question.
getQuestion
Optional. A natural language question to answer.
Returns
Type
Description
string
setQuestion
Optional. A natural language question to answer.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getName
Optional. A snake-case name for the query that reflects its intent. It is
used to name the corresponding data result, so that it can be referenced in
later steps.
Example: "total_sales_by_product"
Example: "sales_for_product_12345"
Returns
Type
Description
string
setName
Optional. A snake-case name for the query that reflects its intent. It is
used to name the corresponding data result, so that it can be referenced in
later steps.
Example: "total_sales_by_product"
Example: "sales_for_product_12345"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatasources
Optional. The datasources available to answer 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 DataQuery (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.DataQuery)\n- [0.1.0](/php/docs/reference/cloud-geminidataanalytics/0.1.0/V1beta.DataQuery) \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 DataQuery.\n\nA query for retrieving data.\n\nGenerated from protobuf message `google.cloud.geminidataanalytics.v1beta.DataQuery`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GeminiDataAnalytics \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getQuestion\n\nOptional. A natural language question to answer.\n\n### setQuestion\n\nOptional. A natural language question to answer.\n\n### getName\n\nOptional. A snake-case name for the query that reflects its intent. It is\nused to name the corresponding data result, so that it can be referenced in\nlater steps.\n\n- Example: \"total_sales_by_product\"\n- Example: \"sales_for_product_12345\"\n\n### setName\n\nOptional. A snake-case name for the query that reflects its intent. It is\nused to name the corresponding data result, so that it can be referenced in\nlater steps.\n\n- Example: \"total_sales_by_product\"\n- Example: \"sales_for_product_12345\"\n\n### getDatasources\n\nOptional. The datasources available to answer the question.\n\n### setDatasources\n\nOptional. The datasources available to answer the question."]]