# Interface ListAssetsRequestOrBuilder (3.95.0)

3.95.0 (latest) 3.92.0 3.91.0 3.89.0 3.87.0 3.86.0 3.85.0 3.84.0 3.82.0 3.80.0 3.79.0 3.78.0 3.77.0 3.76.0 3.74.0 3.72.0 3.71.0 3.68.0 3.67.0 3.66.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.2-SNAPSHOT 3.6.0 3.4.1 3.3.1 3.2.17

    public interface ListAssetsRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAssetTypes(int index)

    public abstract String getAssetTypes(int index)

A list of asset types to take a snapshot for. For example:
"compute.googleapis.com/Disk".

Regular expression is also supported. For example:

- "compute.googleapis.com.\*" snapshots resources whose asset type starts with "compute.googleapis.com".
- ".\*Instance" snapshots resources whose asset type ends with "Instance".
- ".*Instance.*" snapshots resources whose asset type contains "Instance".

  See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
  regular expression syntax. If the regular expression does not match any
  supported asset type, an INVALID_ARGUMENT error will be returned.

  If specified, only matching assets will be returned, otherwise, it will
  snapshot all asset types. See [Introduction to Cloud Asset
  Inventory](https://cloud.google.com/asset-inventory/docs/overview)
  for all supported asset types.

`repeated string asset_types = 3;`

| **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 assetTypes at the given index. |

### getAssetTypesBytes(int index)

    public abstract ByteString getAssetTypesBytes(int index)

A list of asset types to take a snapshot for. For example:
"compute.googleapis.com/Disk".

Regular expression is also supported. For example:

- "compute.googleapis.com.\*" snapshots resources whose asset type starts with "compute.googleapis.com".
- ".\*Instance" snapshots resources whose asset type ends with "Instance".
- ".*Instance.*" snapshots resources whose asset type contains "Instance".

  See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
  regular expression syntax. If the regular expression does not match any
  supported asset type, an INVALID_ARGUMENT error will be returned.

  If specified, only matching assets will be returned, otherwise, it will
  snapshot all asset types. See [Introduction to Cloud Asset
  Inventory](https://cloud.google.com/asset-inventory/docs/overview)
  for all supported asset types.

`repeated string asset_types = 3;`

| **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 assetTypes at the given index. |

### getAssetTypesCount()

    public abstract int getAssetTypesCount()

A list of asset types to take a snapshot for. For example:
"compute.googleapis.com/Disk".

Regular expression is also supported. For example:

- "compute.googleapis.com.\*" snapshots resources whose asset type starts with "compute.googleapis.com".
- ".\*Instance" snapshots resources whose asset type ends with "Instance".
- ".*Instance.*" snapshots resources whose asset type contains "Instance".

  See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
  regular expression syntax. If the regular expression does not match any
  supported asset type, an INVALID_ARGUMENT error will be returned.

  If specified, only matching assets will be returned, otherwise, it will
  snapshot all asset types. See [Introduction to Cloud Asset
  Inventory](https://cloud.google.com/asset-inventory/docs/overview)
  for all supported asset types.

`repeated string asset_types = 3;`

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

### getAssetTypesList()

    public abstract List<String> getAssetTypesList()

A list of asset types to take a snapshot for. For example:
"compute.googleapis.com/Disk".

Regular expression is also supported. For example:

- "compute.googleapis.com.\*" snapshots resources whose asset type starts with "compute.googleapis.com".
- ".\*Instance" snapshots resources whose asset type ends with "Instance".
- ".*Instance.*" snapshots resources whose asset type contains "Instance".

  See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
  regular expression syntax. If the regular expression does not match any
  supported asset type, an INVALID_ARGUMENT error will be returned.

  If specified, only matching assets will be returned, otherwise, it will
  snapshot all asset types. See [Introduction to Cloud Asset
  Inventory](https://cloud.google.com/asset-inventory/docs/overview)
  for all supported asset types.

`repeated string asset_types = 3;`

| **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 assetTypes. |

### getContentType()

    public abstract ContentType getContentType()

Asset content type. If not specified, no content but the asset name will
be returned.

`.google.cloud.asset.v1p5beta1.ContentType content_type = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-asset/latest/com.google.cloud.asset.v1p5beta1.ContentType` | The contentType. |

### getContentTypeValue()

    public abstract int getContentTypeValue()

Asset content type. If not specified, no content but the asset name will
be returned.

`.google.cloud.asset.v1p5beta1.ContentType content_type = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for contentType. |

### getPageSize()

    public abstract int getPageSize()

The maximum number of assets to be returned in a single response. Default
is 100, minimum is 1, and maximum is 1000.

`int32 page_size = 5;`

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

### getPageToken()

    public abstract String getPageToken()

The `next_page_token` returned from the previous `ListAssetsResponse`, or
unspecified for the first `ListAssetsRequest`. It is a continuation of a
prior `ListAssets` call, and the API should return the next page of assets.

`string page_token = 6;`

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

### getPageTokenBytes()

    public abstract ByteString getPageTokenBytes()

The `next_page_token` returned from the previous `ListAssetsResponse`, or
unspecified for the first `ListAssetsRequest`. It is a continuation of a
prior `ListAssets` call, and the API should return the next page of assets.

`string page_token = 6;`

| **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. Name of the organization or project the assets belong to. Format:
"organizations/\[organization-number\]" (such as "organizations/123"),
"projects/\[project-id\]" (such as "projects/my-project-id"), or
"projects/\[project-number\]" (such as "projects/12345").

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getParentBytes()

    public abstract ByteString getParentBytes()

Required. Name of the organization or project the assets belong to. Format:
"organizations/\[organization-number\]" (such as "organizations/123"),
"projects/\[project-id\]" (such as "projects/my-project-id"), or
"projects/\[project-number\]" (such as "projects/12345").

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getReadTime()

    public abstract Timestamp getReadTime()

Timestamp to take an asset snapshot. This can only be set to a timestamp
between the current time and the current time minus 35 days (inclusive).
If not specified, the current time will be used. Due to delays in resource
data collection and indexing, there is a volatile window during which
running the same query may get different results.

`.google.protobuf.Timestamp read_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The readTime. |

### getReadTimeOrBuilder()

    public abstract TimestampOrBuilder getReadTimeOrBuilder()

Timestamp to take an asset snapshot. This can only be set to a timestamp
between the current time and the current time minus 35 days (inclusive).
If not specified, the current time will be used. Due to delays in resource
data collection and indexing, there is a volatile window during which
running the same query may get different results.

`.google.protobuf.Timestamp read_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasReadTime()

    public abstract boolean hasReadTime()

Timestamp to take an asset snapshot. This can only be set to a timestamp
between the current time and the current time minus 35 days (inclusive).
If not specified, the current time will be used. Due to delays in resource
data collection and indexing, there is a volatile window during which
running the same query may get different results.

`.google.protobuf.Timestamp read_time = 2;`

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