# Interface PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder (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 static interface PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getConditionExpression()

    public abstract String getConditionExpression()

Optional. The expression field of the IAM condition to be associated
with the role. If specified, a user with an active grant for this
entitlement is able to access the resource only if this condition
evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes
that IAM supports, except tags.
<https://cloud.google.com/iam/docs/conditions-overview#attributes>.

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

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

### getConditionExpressionBytes()

    public abstract ByteString getConditionExpressionBytes()

Optional. The expression field of the IAM condition to be associated
with the role. If specified, a user with an active grant for this
entitlement is able to access the resource only if this condition
evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes
that IAM supports, except tags.
<https://cloud.google.com/iam/docs/conditions-overview#attributes>.

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

### getRole()

    public abstract String getRole()

Required. IAM role to be granted.
<https://cloud.google.com/iam/docs/roles-overview>.

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

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

### getRoleBytes()

    public abstract ByteString getRoleBytes()

Required. IAM role to be granted.
<https://cloud.google.com/iam/docs/roles-overview>.

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