# Interface AggregateQueryStatsRequestOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AggregateQueryStatsRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getFilter()

    public abstract String getFilter()

Optional. The expression to filter resources.

Supported fields are: `full_resource_name`, `resource_type`, `container`,
`product.type`, `product.engine`, `product.version`, `location`,
`labels`, `issues`, fields of availability_info,
data_protection_info,'resource_name', etc.

The expression is a list of zero or more restrictions combined via logical
operators `AND` and `OR`. When `AND` and `OR` are both used in the
expression, parentheses must be appropriately used to group the
combinations.

Example: `location="us-east1"`
Example: `container="projects/123" OR container="projects/456"`
Example: `(container="projects/123" OR
container="projects/456") AND location="us-east1"`
Additional specific fields for query stats are: `metric_window`,
`query_hash`, `normalized_query`.
Example: `metric_window="LAST_ONE_DAY"`
(Possible values for `metric_window` are: `LAST_ONE_DAY`,
`LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
Example: `query_hash="12345678"`
Example: `normalized_query="SELECT * FROM table"`

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

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

### getFilterBytes()

    public abstract ByteString getFilterBytes()

Optional. The expression to filter resources.

Supported fields are: `full_resource_name`, `resource_type`, `container`,
`product.type`, `product.engine`, `product.version`, `location`,
`labels`, `issues`, fields of availability_info,
data_protection_info,'resource_name', etc.

The expression is a list of zero or more restrictions combined via logical
operators `AND` and `OR`. When `AND` and `OR` are both used in the
expression, parentheses must be appropriately used to group the
combinations.

Example: `location="us-east1"`
Example: `container="projects/123" OR container="projects/456"`
Example: `(container="projects/123" OR
container="projects/456") AND location="us-east1"`
Additional specific fields for query stats are: `metric_window`,
`query_hash`, `normalized_query`.
Example: `metric_window="LAST_ONE_DAY"`
(Possible values for `metric_window` are: `LAST_ONE_DAY`,
`LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
Example: `query_hash="12345678"`
Example: `normalized_query="SELECT * FROM table"`

`string filter = 3 [(.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 filter. |

### getOrderBy()

    public abstract String getOrderBy()

Optional. The expression to order the results by.
Example: `order_by="execution_count"`
Example: `order_by="execution_count desc"`
Supported order by fields are `execution_count`, `rows_processed`,
`total_cpu_time`, `avg_cpu_time`.

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

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

### getOrderByBytes()

    public abstract ByteString getOrderByBytes()

Optional. The expression to order the results by.
Example: `order_by="execution_count"`
Example: `order_by="execution_count desc"`
Supported order by fields are `execution_count`, `rows_processed`,
`total_cpu_time`, `avg_cpu_time`.

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

### getPageSize()

    public abstract int getPageSize()

Optional. If unspecified, at most 100 query stats will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.

`int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPageToken()

    public abstract String getPageToken()

Optional. A page token, received from a previous
`AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
page. All parameters except page_token should match the parameters in the
call that provided the page token.

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

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

### getPageTokenBytes()

    public abstract ByteString getPageTokenBytes()

Optional. A page token, received from a previous
`AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
page. All parameters except page_token should match the parameters in the
call that provided the page token.

`string page_token = 5 [(.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 pageToken. |

### getParent()

    public abstract String getParent()

Required. Parent can be a project, a folder, or an organization. The search
is limited to the resources within the `parent`.

The allowed values are:

- projects/{PROJECT_ID} (e.g., "projects/foo-bar")
- projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
- folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
- organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

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

### getParentBytes()

    public abstract ByteString getParentBytes()

Required. Parent can be a project, a folder, or an organization. The search
is limited to the resources within the `parent`.

The allowed values are:

- projects/{PROJECT_ID} (e.g., "projects/foo-bar")
- projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
- folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
- organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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