# Interface QueryParameterOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface QueryParameterOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDataType()

    public abstract String getDataType()

Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE",
etc. For valid values, see the [BigQuery
documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types).
This will be used to populate
google.cloud.bigquery.v2.QueryParameterType.type.

`string data_type = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataType. |

### getDataTypeBytes()

    public abstract ByteString getDataTypeBytes()

Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE",
etc. For valid values, see the [BigQuery
documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types).
This will be used to populate
google.cloud.bigquery.v2.QueryParameterType.type.

`string data_type = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dataType. |

### getDescription()

    public abstract String getDescription()

Optional. The description of the parameter that can be used by LLM to
extract the parameter value from the user question.

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. The description of the parameter that can be used by LLM to
extract the parameter value from the user question.

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getName()

    public abstract String getName()

Required. The name of the parameter reference in the SQL query.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The name of the parameter reference in the SQL query.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |