Class AuditUserLink.Builder (0.27.0)

public static final class AuditUserLink.Builder extends GeneratedMessageV3.Builder<AuditUserLink.Builder> implements AuditUserLinkOrBuilder

Read-only resource used to summarize a principal's effective roles.

Protobuf type google.analytics.admin.v1alpha.AuditUserLink

Static Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

public AuditUserLink.Builder addAllDirectRoles(Iterable<String> values)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameter
NameDescription
valuesIterable<String>

The directRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addAllEffectiveRoles(Iterable<String> values)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameter
NameDescription
valuesIterable<String>

The effectiveRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addDirectRoles(String value)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameter
NameDescription
valueString

The directRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addDirectRolesBytes(ByteString value)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameter
NameDescription
valueByteString

The bytes of the directRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addEffectiveRoles(String value)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameter
NameDescription
valueString

The effectiveRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addEffectiveRolesBytes(ByteString value)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameter
NameDescription
valueByteString

The bytes of the effectiveRoles to add.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink build()
Returns
TypeDescription
AuditUserLink
public AuditUserLink buildPartial()
Returns
TypeDescription
AuditUserLink
public AuditUserLink.Builder clear()
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink.Builder clearDirectRoles()

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder clearEffectiveRoles()

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder clearEmailAddress()

Email address of the linked user

string email_address = 2;

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink.Builder clearName()

Example format: properties/1234/userLinks/5678

string name = 1;

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink.Builder clone()
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink getDefaultInstanceForType()
Returns
TypeDescription
AuditUserLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public String getDirectRoles(int index)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The directRoles at the given index.

public ByteString getDirectRolesBytes(int index)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the directRoles at the given index.

public int getDirectRolesCount()

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Returns
TypeDescription
int

The count of directRoles.

public ProtocolStringList getDirectRolesList()

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the directRoles.

public String getEffectiveRoles(int index)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The effectiveRoles at the given index.

public ByteString getEffectiveRolesBytes(int index)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the effectiveRoles at the given index.

public int getEffectiveRolesCount()

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Returns
TypeDescription
int

The count of effectiveRoles.

public ProtocolStringList getEffectiveRolesList()

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the effectiveRoles.

public String getEmailAddress()

Email address of the linked user

string email_address = 2;

Returns
TypeDescription
String

The emailAddress.

public ByteString getEmailAddressBytes()

Email address of the linked user

string email_address = 2;

Returns
TypeDescription
ByteString

The bytes for emailAddress.

public String getName()

Example format: properties/1234/userLinks/5678

string name = 1;

Returns
TypeDescription
String

The name.

public ByteString getNameBytes()

Example format: properties/1234/userLinks/5678

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public AuditUserLink.Builder mergeFrom(AuditUserLink other)
Parameter
NameDescription
otherAuditUserLink
Returns
TypeDescription
AuditUserLink.Builder
public AuditUserLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink.Builder
Overrides
Exceptions
TypeDescription
IOException
public AuditUserLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public final AuditUserLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink.Builder setDirectRoles(int index, String value)

Roles directly assigned to this user for this entity. Format: predefinedRoles/viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role.

repeated string direct_roles = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The directRoles to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setEffectiveRoles(int index, String value)

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer

repeated string effective_roles = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The effectiveRoles to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setEmailAddress(String value)

Email address of the linked user

string email_address = 2;

Parameter
NameDescription
valueString

The emailAddress to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setEmailAddressBytes(ByteString value)

Email address of the linked user

string email_address = 2;

Parameter
NameDescription
valueByteString

The bytes for emailAddress to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public AuditUserLink.Builder setName(String value)

Example format: properties/1234/userLinks/5678

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setNameBytes(ByteString value)

Example format: properties/1234/userLinks/5678

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AuditUserLink.Builder

This builder for chaining.

public AuditUserLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AuditUserLink.Builder
Overrides
public final AuditUserLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuditUserLink.Builder
Overrides