# Interface DataAccessSpecOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.DataAccessSpecOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataplex.v1.DataAccessSpecOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataplex.v1.DataAccessSpecOrBuilder)

    public interface DataAccessSpecOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getReaders(int index)

    public abstract String getReaders(int index)

Optional. The format of strings follows the pattern followed by IAM in the
bindings. user:{email}, serviceAccount:{email} group:{email}.
The set of principals to be granted reader role on data
stored within resources.

`repeated string readers = 1;`

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

### getReadersBytes(int index)

    public abstract ByteString getReadersBytes(int index)

Optional. The format of strings follows the pattern followed by IAM in the
bindings. user:{email}, serviceAccount:{email} group:{email}.
The set of principals to be granted reader role on data
stored within resources.

`repeated string readers = 1;`

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

### getReadersCount()

    public abstract int getReadersCount()

Optional. The format of strings follows the pattern followed by IAM in the
bindings. user:{email}, serviceAccount:{email} group:{email}.
The set of principals to be granted reader role on data
stored within resources.

`repeated string readers = 1;`

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

### getReadersList()

    public abstract List<String> getReadersList()

Optional. The format of strings follows the pattern followed by IAM in the
bindings. user:{email}, serviceAccount:{email} group:{email}.
The set of principals to be granted reader role on data
stored within resources.

`repeated string readers = 1;`

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