Class UserLink (0.15.0)

public final class UserLink extends GeneratedMessageV3 implements UserLinkOrBuilder

A resource message representing a user's permissions on an Account or Property resource.

Protobuf type google.analytics.admin.v1alpha.UserLink

Implements

UserLinkOrBuilder

Static Fields

public static final int DIRECT_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 UserLink getDefaultInstance()
Returns
TypeDescription
UserLink
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static UserLink.Builder newBuilder()
Returns
TypeDescription
UserLink.Builder
public static UserLink.Builder newBuilder(UserLink prototype)
Parameter
NameDescription
prototypeUserLink
Returns
TypeDescription
UserLink.Builder
public static UserLink parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static UserLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static UserLink parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static UserLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static UserLink parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
IOException
public static UserLink parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static UserLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<UserLink> parser()
Returns
TypeDescription
Parser<UserLink>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
public UserLink getDefaultInstanceForType()
Returns
TypeDescription
UserLink
public String getDirectRoles(int index)

Roles directly assigned to this user for this account or property. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data Excludes roles that are inherited from a higher-level entity, group, or organization admin role. A UserLink that is updated to have an empty list of direct_roles will be deleted.

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 account or property. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data Excludes roles that are inherited from a higher-level entity, group, or organization admin role. A UserLink that is updated to have an empty list of direct_roles will be deleted.

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 account or property. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data Excludes roles that are inherited from a higher-level entity, group, or organization admin role. A UserLink that is updated to have an empty list of direct_roles will be deleted.

repeated string direct_roles = 3;

Returns
TypeDescription
int

The count of directRoles.

public ProtocolStringList getDirectRolesList()

Roles directly assigned to this user for this account or property. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data Excludes roles that are inherited from a higher-level entity, group, or organization admin role. A UserLink that is updated to have an empty list of direct_roles will be deleted.

repeated string direct_roles = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the directRoles.

public String getEmailAddress()

Immutable. Email address of the user to link

string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The emailAddress.

public ByteString getEmailAddressBytes()

Immutable. Email address of the user to link

string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for emailAddress.

public String getName()

Output only. Example format: properties/1234/userLinks/5678

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

public ByteString getNameBytes()

Output only. Example format: properties/1234/userLinks/5678

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

public Parser<UserLink> getParserForType()
Returns
TypeDescription
Parser<UserLink>
Overrides
public int getSerializedSize()
Returns
TypeDescription
int
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 UserLink.Builder newBuilderForType()
Returns
TypeDescription
UserLink.Builder
protected UserLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UserLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides
public UserLink.Builder toBuilder()
Returns
TypeDescription
UserLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException