public interface ExampleQueryOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getNaturalLanguageQuestion()
public abstract String getNaturalLanguageQuestion()
Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The naturalLanguageQuestion. |
getNaturalLanguageQuestionBytes()
public abstract ByteString getNaturalLanguageQuestionBytes()
Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for naturalLanguageQuestion. |
getQueryCase()
public abstract ExampleQuery.QueryCase getQueryCase()
Returns | |
---|---|
Type | Description |
ExampleQuery.QueryCase |
getSqlQuery()
public abstract String getSqlQuery()
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'"
string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The sqlQuery. |
getSqlQueryBytes()
public abstract ByteString getSqlQueryBytes()
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'"
string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for sqlQuery. |
hasSqlQuery()
public abstract boolean hasSqlQuery()
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'"
string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the sqlQuery field is set. |