Class AuditData.PermissionDelta.Builder (3.39.0)

public static final class AuditData.PermissionDelta.Builder extends GeneratedMessageV3.Builder<AuditData.PermissionDelta.Builder> implements AuditData.PermissionDeltaOrBuilder

A PermissionDelta message to record the added_permissions and removed_permissions inside a role.

Protobuf type google.iam.admin.v1.AuditData.PermissionDelta

Static Methods

getDescriptor()

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

Methods

addAddedPermissions(String value)

public AuditData.PermissionDelta.Builder addAddedPermissions(String value)

Added permissions.

repeated string added_permissions = 1;

Parameter
Name Description
value String

The addedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addAddedPermissionsBytes(ByteString value)

public AuditData.PermissionDelta.Builder addAddedPermissionsBytes(ByteString value)

Added permissions.

repeated string added_permissions = 1;

Parameter
Name Description
value ByteString

The bytes of the addedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addAllAddedPermissions(Iterable<String> values)

public AuditData.PermissionDelta.Builder addAllAddedPermissions(Iterable<String> values)

Added permissions.

repeated string added_permissions = 1;

Parameter
Name Description
values Iterable<String>

The addedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addAllRemovedPermissions(Iterable<String> values)

public AuditData.PermissionDelta.Builder addAllRemovedPermissions(Iterable<String> values)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
Name Description
values Iterable<String>

The removedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addRemovedPermissions(String value)

public AuditData.PermissionDelta.Builder addRemovedPermissions(String value)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
Name Description
value String

The removedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addRemovedPermissionsBytes(ByteString value)

public AuditData.PermissionDelta.Builder addRemovedPermissionsBytes(ByteString value)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
Name Description
value ByteString

The bytes of the removedPermissions to add.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AuditData.PermissionDelta build()
Returns
Type Description
AuditData.PermissionDelta

buildPartial()

public AuditData.PermissionDelta buildPartial()
Returns
Type Description
AuditData.PermissionDelta

clear()

public AuditData.PermissionDelta.Builder clear()
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

clearAddedPermissions()

public AuditData.PermissionDelta.Builder clearAddedPermissions()

Added permissions.

repeated string added_permissions = 1;

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuditData.PermissionDelta.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuditData.PermissionDelta.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

clearRemovedPermissions()

public AuditData.PermissionDelta.Builder clearRemovedPermissions()

Removed permissions.

repeated string removed_permissions = 2;

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

clone()

public AuditData.PermissionDelta.Builder clone()
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

getAddedPermissions(int index)

public String getAddedPermissions(int index)

Added permissions.

repeated string added_permissions = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The addedPermissions at the given index.

getAddedPermissionsBytes(int index)

public ByteString getAddedPermissionsBytes(int index)

Added permissions.

repeated string added_permissions = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the addedPermissions at the given index.

getAddedPermissionsCount()

public int getAddedPermissionsCount()

Added permissions.

repeated string added_permissions = 1;

Returns
Type Description
int

The count of addedPermissions.

getAddedPermissionsList()

public ProtocolStringList getAddedPermissionsList()

Added permissions.

repeated string added_permissions = 1;

Returns
Type Description
ProtocolStringList

A list containing the addedPermissions.

getDefaultInstanceForType()

public AuditData.PermissionDelta getDefaultInstanceForType()
Returns
Type Description
AuditData.PermissionDelta

getDescriptorForType()

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

getRemovedPermissions(int index)

public String getRemovedPermissions(int index)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The removedPermissions at the given index.

getRemovedPermissionsBytes(int index)

public ByteString getRemovedPermissionsBytes(int index)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the removedPermissions at the given index.

getRemovedPermissionsCount()

public int getRemovedPermissionsCount()

Removed permissions.

repeated string removed_permissions = 2;

Returns
Type Description
int

The count of removedPermissions.

getRemovedPermissionsList()

public ProtocolStringList getRemovedPermissionsList()

Removed permissions.

repeated string removed_permissions = 2;

Returns
Type Description
ProtocolStringList

A list containing the removedPermissions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuditData.PermissionDelta other)

public AuditData.PermissionDelta.Builder mergeFrom(AuditData.PermissionDelta other)
Parameter
Name Description
other AuditData.PermissionDelta
Returns
Type Description
AuditData.PermissionDelta.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AuditData.PermissionDelta.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuditData.PermissionDelta.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides

setAddedPermissions(int index, String value)

public AuditData.PermissionDelta.Builder setAddedPermissions(int index, String value)

Added permissions.

repeated string added_permissions = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The addedPermissions to set.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRemovedPermissions(int index, String value)

public AuditData.PermissionDelta.Builder setRemovedPermissions(int index, String value)

Removed permissions.

repeated string removed_permissions = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The removedPermissions to set.

Returns
Type Description
AuditData.PermissionDelta.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AuditData.PermissionDelta.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuditData.PermissionDelta.Builder
Overrides