Class PrivilegedAccess.GcpIamAccess.RoleBinding.Builder (0.7.0)

public static final class PrivilegedAccess.GcpIamAccess.RoleBinding.Builder extends GeneratedMessageV3.Builder<PrivilegedAccess.GcpIamAccess.RoleBinding.Builder> implements PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder

IAM Role bindings that are created after a successful grant.

Protobuf type google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

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.

clone()

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder clone()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivilegedAccess.GcpIamAccess.RoleBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

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 String

The 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 ByteString

The bytes for conditionExpression to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

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 String

The 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 ByteString

The bytes for role to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivilegedAccess.GcpIamAccess.RoleBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides