Class UserLink.Builder (0.32.0)

public static final class UserLink.Builder extends GeneratedMessageV3.Builder<UserLink.Builder> 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 Methods

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

Methods

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

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
valuesIterable<String>

The directRoles to add.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder addDirectRoles(String value)

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
valueString

The directRoles to add.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder addDirectRolesBytes(ByteString value)

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
valueByteString

The bytes of the directRoles to add.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

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

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
UserLink.Builder

This builder for chaining.

public UserLink.Builder clearEmailAddress()

Immutable. Email address of the user to link

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

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

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

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

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

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UserLink.Builder
Overrides
public UserLink.Builder clone()
Returns
TypeDescription
UserLink.Builder
Overrides
public UserLink getDefaultInstanceForType()
Returns
TypeDescription
UserLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
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.

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

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The directRoles to set.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder setEmailAddress(String value)

Immutable. Email address of the user to link

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

Parameter
NameDescription
valueString

The emailAddress to set.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder setEmailAddressBytes(ByteString value)

Immutable. Email address of the user to link

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

Parameter
NameDescription
valueByteString

The bytes for emailAddress to set.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

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

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

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

public UserLink.Builder setNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UserLink.Builder

This builder for chaining.

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