# Interface LookerQueryOrBuilder (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 LookerQueryOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getClientId()

    public abstract String getClientId()

Optional. The short alphanumeric identifier for the query, used for share
links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
in the Looker API `Query` resource.

`optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL];`

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

### getClientIdBytes()

    public abstract ByteString getClientIdBytes()

Optional. The short alphanumeric identifier for the query, used for share
links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
in the Looker API `Query` resource.

`optional string client_id = 11 [(.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 clientId. |

### getExplore()

    public abstract String getExplore()

Required. The LookML explore used to generate the query.

`string explore = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getExploreBytes()

    public abstract ByteString getExploreBytes()

Required. The LookML explore used to generate the query.

`string explore = 2 [(.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 explore. |

### getFields(int index)

    public abstract String getFields(int index)

Optional. The fields to retrieve from the explore.

`repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fields at the given index. |

### getFieldsBytes(int index)

    public abstract ByteString getFieldsBytes(int index)

Optional. The fields to retrieve from the explore.

`repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the fields at the given index. |

### getFieldsCount()

    public abstract int getFieldsCount()

Optional. The fields to retrieve from the explore.

`repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of fields. |

### getFieldsList()

    public abstract List<String> getFieldsList()

Optional. The fields to retrieve from the explore.

`repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the fields. |

### getFilters(int index)

    public abstract LookerQuery.Filter getFilters(int index)

Optional. The filters to apply to the explore.

`
repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.LookerQuery.Filter` |   |

### getFiltersCount()

    public abstract int getFiltersCount()

Optional. The filters to apply to the explore.

`
repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getFiltersList()

    public abstract List<LookerQuery.Filter> getFiltersList()

Optional. The filters to apply to the explore.

`
repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.LookerQuery.Filter>` |   |

### getFiltersOrBuilder(int index)

    public abstract LookerQuery.FilterOrBuilder getFiltersOrBuilder(int index)

Optional. The filters to apply to the explore.

`
repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.LookerQuery.FilterOrBuilder` |   |

### getFiltersOrBuilderList()

    public abstract List<? extends LookerQuery.FilterOrBuilder> getFiltersOrBuilderList()

Optional. The filters to apply to the explore.

`
repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.geminidataanalytics.v1.LookerQuery.FilterOrBuilder>` |   |

### getLimit()

    public abstract String getLimit()

Optional. Limit in the query.

`optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLimitBytes()

    public abstract ByteString getLimitBytes()

Optional. Limit in the query.

`optional string limit = 6 [(.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 limit. |

### getModel()

    public abstract String getModel()

Required. The LookML model used to generate the query.

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

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

### getModelBytes()

    public abstract ByteString getModelBytes()

Required. The LookML model used to generate the query.

`string model = 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 model. |

### getQueryId()

    public abstract String getQueryId()

Optional. The primary identifier for the query resource in Looker, used for
API operations. Maps to `id` (or `slug`) in the Looker API `Query`
resource.

`optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL];`

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

### getQueryIdBytes()

    public abstract ByteString getQueryIdBytes()

Optional. The primary identifier for the query resource in Looker, used for
API operations. Maps to `id` (or `slug`) in the Looker API `Query`
resource.

`optional string query_id = 10 [(.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 queryId. |

### getSorts(int index)

    public abstract String getSorts(int index)

Optional. The sorts to apply to the explore.

`repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sorts at the given index. |

### getSortsBytes(int index)

    public abstract ByteString getSortsBytes(int index)

Optional. The sorts to apply to the explore.

`repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the sorts at the given index. |

### getSortsCount()

    public abstract int getSortsCount()

Optional. The sorts to apply to the explore.

`repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of sorts. |

### getSortsList()

    public abstract List<String> getSortsList()

Optional. The sorts to apply to the explore.

`repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the sorts. |

### hasClientId()

    public abstract boolean hasClientId()

Optional. The short alphanumeric identifier for the query, used for share
links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
in the Looker API `Query` resource.

`optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the clientId field is set. |

### hasLimit()

    public abstract boolean hasLimit()

Optional. Limit in the query.

`optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the limit field is set. |

### hasQueryId()

    public abstract boolean hasQueryId()

Optional. The primary identifier for the query resource in Looker, used for
API operations. Maps to `id` (or `slug`) in the Looker API `Query`
resource.

`optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the queryId field is set. |