public sealed class ExampleQuery : IMessage<ExampleQuery>, IEquatable<ExampleQuery>, IDeepCloneable<ExampleQuery>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class ExampleQuery.
Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present.
Implements
IMessageExampleQuery, IEquatableExampleQuery, IDeepCloneableExampleQuery, IBufferMessage, IMessageNamespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Constructors
ExampleQuery()
public ExampleQuery()
ExampleQuery(ExampleQuery)
public ExampleQuery(ExampleQuery other)
Parameter | |
---|---|
Name | Description |
other |
ExampleQuery |
Properties
HasSqlQuery
public bool HasSqlQuery { get; }
Gets whether the "sql_query" field is set
Property Value | |
---|---|
Type | Description |
bool |
NaturalLanguageQuestion
public string NaturalLanguageQuestion { get; set; }
Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
Property Value | |
---|---|
Type | Description |
string |
QueryCase
public ExampleQuery.QueryOneofCase QueryCase { get; }
Property Value | |
---|---|
Type | Description |
ExampleQueryQueryOneofCase |
SqlQuery
public string SqlQuery { get; set; }
Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'"
Property Value | |
---|---|
Type | Description |
string |