# Interface AccessControlEntryOrBuilder (0.47.0)

0.47.0 (latest) 0.45.0 0.42.0 0.41.0 0.39.0 0.37.0 0.36.0 0.34.0 0.32.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.24.0 0.22.0 0.21.0 0.18.0 0.17.0 0.16.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface AccessControlEntryOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getPrincipals(int index)

    public abstract String getPrincipals(int index)

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

`repeated string principals = 1 [(.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 principals at the given index. |

### getPrincipalsBytes(int index)

    public abstract ByteString getPrincipalsBytes(int index)

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

`repeated string principals = 1 [(.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 principals at the given index. |

### getPrincipalsCount()

    public abstract int getPrincipalsCount()

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

`repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPrincipalsList()

    public abstract List<String> getPrincipalsList()

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

`repeated string principals = 1 [(.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 principals. |