Class AuditUserLink (0.32.0)

public final class AuditUserLink extends GeneratedMessageV3 implements AuditUserLinkOrBuilder

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

Protobuf type google.analytics.admin.v1alpha.AuditUserLink

Static Fields

public static final int DIRECT_ROLES_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int EFFECTIVE_ROLES_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int EMAIL_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static AuditUserLink getDefaultInstance()
Returns
TypeDescription
AuditUserLink
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static AuditUserLink.Builder newBuilder()
Returns
TypeDescription
AuditUserLink.Builder
public static AuditUserLink.Builder newBuilder(AuditUserLink prototype)
Parameter
NameDescription
prototypeAuditUserLink
Returns
TypeDescription
AuditUserLink.Builder
public static AuditUserLink parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AuditUserLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AuditUserLink parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AuditUserLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AuditUserLink parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
IOException
public static AuditUserLink parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AuditUserLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditUserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<AuditUserLink> parser()
Returns
TypeDescription
Parser<AuditUserLink>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
public AuditUserLink getDefaultInstanceForType()
Returns
TypeDescription
AuditUserLink
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.

public Parser<AuditUserLink> getParserForType()
Returns
TypeDescription
Parser<AuditUserLink>
Overrides
public int getSerializedSize()
Returns
TypeDescription
int
Overrides
public int hashCode()
Returns
TypeDescription
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public AuditUserLink.Builder newBuilderForType()
Returns
TypeDescription
AuditUserLink.Builder
protected AuditUserLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AuditUserLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides
public AuditUserLink.Builder toBuilder()
Returns
TypeDescription
AuditUserLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException