Class AuditData.PermissionDelta.Builder (2.0.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
TypeDescription
Descriptor

Methods

addAddedPermissions(String value)

public AuditData.PermissionDelta.Builder addAddedPermissions(String value)

Added permissions.

repeated string added_permissions = 1;

Parameter
NameDescription
valueString

The addedPermissions to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the addedPermissions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The addedPermissions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The removedPermissions to add.

Returns
TypeDescription
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
NameDescription
valueString

The removedPermissions to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the removedPermissions to add.

Returns
TypeDescription
AuditData.PermissionDelta.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuditData.PermissionDelta.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

build()

public AuditData.PermissionDelta build()
Returns
TypeDescription
AuditData.PermissionDelta

buildPartial()

public AuditData.PermissionDelta buildPartial()
Returns
TypeDescription
AuditData.PermissionDelta

clear()

public AuditData.PermissionDelta.Builder clear()
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

clearAddedPermissions()

public AuditData.PermissionDelta.Builder clearAddedPermissions()

Added permissions.

repeated string added_permissions = 1;

Returns
TypeDescription
AuditData.PermissionDelta.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuditData.PermissionDelta.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuditData.PermissionDelta.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

clearRemovedPermissions()

public AuditData.PermissionDelta.Builder clearRemovedPermissions()

Removed permissions.

repeated string removed_permissions = 2;

Returns
TypeDescription
AuditData.PermissionDelta.Builder

This builder for chaining.

clone()

public AuditData.PermissionDelta.Builder clone()
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

getAddedPermissions(int index)

public String getAddedPermissions(int index)

Added permissions.

repeated string added_permissions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The addedPermissions at the given index.

getAddedPermissionsBytes(int index)

public ByteString getAddedPermissionsBytes(int index)

Added permissions.

repeated string added_permissions = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the addedPermissions at the given index.

getAddedPermissionsCount()

public int getAddedPermissionsCount()

Added permissions.

repeated string added_permissions = 1;

Returns
TypeDescription
int

The count of addedPermissions.

getAddedPermissionsList()

public ProtocolStringList getAddedPermissionsList()

Added permissions.

repeated string added_permissions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the addedPermissions.

getDefaultInstanceForType()

public AuditData.PermissionDelta getDefaultInstanceForType()
Returns
TypeDescription
AuditData.PermissionDelta

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRemovedPermissions(int index)

public String getRemovedPermissions(int index)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The removedPermissions at the given index.

getRemovedPermissionsBytes(int index)

public ByteString getRemovedPermissionsBytes(int index)

Removed permissions.

repeated string removed_permissions = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the removedPermissions at the given index.

getRemovedPermissionsCount()

public int getRemovedPermissionsCount()

Removed permissions.

repeated string removed_permissions = 2;

Returns
TypeDescription
int

The count of removedPermissions.

getRemovedPermissionsList()

public ProtocolStringList getRemovedPermissionsList()

Removed permissions.

repeated string removed_permissions = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the removedPermissions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuditData.PermissionDelta other)

public AuditData.PermissionDelta.Builder mergeFrom(AuditData.PermissionDelta other)
Parameter
NameDescription
otherAuditData.PermissionDelta
Returns
TypeDescription
AuditData.PermissionDelta.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuditData.PermissionDelta.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuditData.PermissionDelta.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuditData.PermissionDelta.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The addedPermissions to set.

Returns
TypeDescription
AuditData.PermissionDelta.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AuditData.PermissionDelta.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The removedPermissions to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AuditData.PermissionDelta.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuditData.PermissionDelta.Builder
Overrides