Class PrivilegedAccess.GcpIamAccess.Builder (0.2.0)

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

GcpIamAccess represents IAM based access control on a Google Cloud resource. Refer to https://cloud.google.com/iam/docs to understand more about IAM.

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

Static Methods

getDescriptor()

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

Methods

addAllRoleBindings(Iterable<? extends PrivilegedAccess.GcpIamAccess.RoleBinding> values)

public PrivilegedAccess.GcpIamAccess.Builder addAllRoleBindings(Iterable<? extends PrivilegedAccess.GcpIamAccess.RoleBinding> values)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding>
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoleBindings(PrivilegedAccess.GcpIamAccess.RoleBinding value)

public PrivilegedAccess.GcpIamAccess.Builder addRoleBindings(PrivilegedAccess.GcpIamAccess.RoleBinding value)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PrivilegedAccess.GcpIamAccess.RoleBinding
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

addRoleBindings(PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

public PrivilegedAccess.GcpIamAccess.Builder addRoleBindings(PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

addRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding value)

public PrivilegedAccess.GcpIamAccess.Builder addRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding value)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PrivilegedAccess.GcpIamAccess.RoleBinding
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

addRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

public PrivilegedAccess.GcpIamAccess.Builder addRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

addRoleBindingsBuilder()

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder addRoleBindingsBuilder()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

addRoleBindingsBuilder(int index)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder addRoleBindingsBuilder(int index)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

build()

public PrivilegedAccess.GcpIamAccess build()
Returns
Type Description
PrivilegedAccess.GcpIamAccess

buildPartial()

public PrivilegedAccess.GcpIamAccess buildPartial()
Returns
Type Description
PrivilegedAccess.GcpIamAccess

clear()

public PrivilegedAccess.GcpIamAccess.Builder clear()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public PrivilegedAccess.GcpIamAccess.Builder clearResource()

Required. Name of the resource.

string resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

clearResourceType()

public PrivilegedAccess.GcpIamAccess.Builder clearResourceType()

Required. The type of this resource.

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

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

clearRoleBindings()

public PrivilegedAccess.GcpIamAccess.Builder clearRoleBindings()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

clone()

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

getDefaultInstanceForType()

public PrivilegedAccess.GcpIamAccess getDefaultInstanceForType()
Returns
Type Description
PrivilegedAccess.GcpIamAccess

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResource()

public String getResource()

Required. Name of the resource.

string resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Required. Name of the resource.

string resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resource.

getResourceType()

public String getResourceType()

Required. The type of this resource.

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

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

Required. The type of this resource.

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

Returns
Type Description
ByteString

The bytes for resourceType.

getRoleBindings(int index)

public PrivilegedAccess.GcpIamAccess.RoleBinding getRoleBindings(int index)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding

getRoleBindingsBuilder(int index)

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder getRoleBindingsBuilder(int index)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

getRoleBindingsBuilderList()

public List<PrivilegedAccess.GcpIamAccess.RoleBinding.Builder> getRoleBindingsBuilderList()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRoleBindingsCount()

public int getRoleBindingsCount()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRoleBindingsList()

public List<PrivilegedAccess.GcpIamAccess.RoleBinding> getRoleBindingsList()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<RoleBinding>

getRoleBindingsOrBuilder(int index)

public PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder getRoleBindingsOrBuilder(int index)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder

getRoleBindingsOrBuilderList()

public List<? extends PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder> getRoleBindingsOrBuilderList()

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivilegedAccess.GcpIamAccess other)

public PrivilegedAccess.GcpIamAccess.Builder mergeFrom(PrivilegedAccess.GcpIamAccess other)
Parameter
Name Description
other PrivilegedAccess.GcpIamAccess
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivilegedAccess.GcpIamAccess.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrivilegedAccess.GcpIamAccess.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRoleBindings(int index)

public PrivilegedAccess.GcpIamAccess.Builder removeRoleBindings(int index)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResource(String value)

public PrivilegedAccess.GcpIamAccess.Builder setResource(String value)

Required. Name of the resource.

string resource = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public PrivilegedAccess.GcpIamAccess.Builder setResourceBytes(ByteString value)

Required. Name of the resource.

string resource = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

setResourceType(String value)

public PrivilegedAccess.GcpIamAccess.Builder setResourceType(String value)

Required. The type of this resource.

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

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public PrivilegedAccess.GcpIamAccess.Builder setResourceTypeBytes(ByteString value)

Required. The type of this resource.

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

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

This builder for chaining.

setRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding value)

public PrivilegedAccess.GcpIamAccess.Builder setRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding value)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PrivilegedAccess.GcpIamAccess.RoleBinding
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

setRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

public PrivilegedAccess.GcpIamAccess.Builder setRoleBindings(int index, PrivilegedAccess.GcpIamAccess.RoleBinding.Builder builderForValue)

Required. Role bindings that are created on successful grant.

repeated .google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding role_bindings = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Returns
Type Description
PrivilegedAccess.GcpIamAccess.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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