public static final class PrivilegedAccess.GcpIamAccess.RoleBinding.Builder extends GeneratedMessage.Builder<PrivilegedAccess.GcpIamAccess.RoleBinding.Builder> implements PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilderIAM role bindings that are created after a successful grant.
Protobuf type
google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrivilegedAccess.GcpIamAccess.RoleBinding.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PrivilegedAccess.GcpIamAccess.RoleBinding build()| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding |
|
buildPartial()
public PrivilegedAccess.GcpIamAccess.RoleBinding buildPartial()| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding |
|
clear()
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clear()| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
|
clearConditionExpression()
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clearConditionExpression()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 |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |
clearRole()
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clearRole()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 |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |
getConditionExpression()
public 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 |
String |
The conditionExpression. |
getConditionExpressionBytes()
public 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 |
ByteString |
The bytes for conditionExpression. |
getDefaultInstanceForType()
public PrivilegedAccess.GcpIamAccess.RoleBinding getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRole()
public 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 |
String |
The role. |
getRoleBytes()
public 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 |
ByteString |
The bytes for role. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PrivilegedAccess.GcpIamAccess.RoleBinding other)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder mergeFrom(PrivilegedAccess.GcpIamAccess.RoleBinding other)| Parameter | |
|---|---|
| Name | Description |
other |
PrivilegedAccess.GcpIamAccess.RoleBinding |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
|
setConditionExpression(String value)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setConditionExpression(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe conditionExpression to set. |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |
setConditionExpressionBytes(ByteString value)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setConditionExpressionBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for conditionExpression to set. |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |
setRole(String value)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setRole(String value)Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.
string role = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe role to set. |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |
setRoleBytes(ByteString value)
public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setRoleBytes(ByteString value)Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.
string role = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for role to set. |
| Returns | |
|---|---|
| Type | Description |
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder |
This builder for chaining. |