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 \ V1betaMethods
__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" |
↳ datasources |
array<Datasource>
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setDatasources
Optional. The datasources available to answer the question.
Parameter | |
---|---|
Name | Description |
var |
array<Datasource>
|
Returns | |
---|---|
Type | Description |
$this |