Interface AccessBindingOrBuilder (0.63.0)

public interface AccessBindingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAccessTargetCase()

public abstract AccessBinding.AccessTargetCase getAccessTargetCase()
Returns
Type Description
AccessBinding.AccessTargetCase

getName()

public abstract String getName()

Output only. Resource name of this binding.

Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}

Example: "accounts/100/accessBindings/200"

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

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Resource name of this binding.

Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}

Example: "accounts/100/accessBindings/200"

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

Returns
Type Description
ByteString

The bytes for name.

getRoles(int index)

public abstract String getRoles(int index)

A list of roles for to grant to the parent resource.

Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data

For users, if an empty list of roles is set, this AccessBinding will be deleted.

repeated string roles = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The roles at the given index.

getRolesBytes(int index)

public abstract ByteString getRolesBytes(int index)

A list of roles for to grant to the parent resource.

Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data

For users, if an empty list of roles is set, this AccessBinding will be deleted.

repeated string roles = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the roles at the given index.

getRolesCount()

public abstract int getRolesCount()

A list of roles for to grant to the parent resource.

Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data

For users, if an empty list of roles is set, this AccessBinding will be deleted.

repeated string roles = 3;

Returns
Type Description
int

The count of roles.

getRolesList()

public abstract List<String> getRolesList()

A list of roles for to grant to the parent resource.

Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data

For users, if an empty list of roles is set, this AccessBinding will be deleted.

repeated string roles = 3;

Returns
Type Description
List<String>

A list containing the roles.

getUser()

public abstract String getUser()

If set, the email address of the user to set roles for. Format: "someuser@gmail.com"

string user = 2;

Returns
Type Description
String

The user.

getUserBytes()

public abstract ByteString getUserBytes()

If set, the email address of the user to set roles for. Format: "someuser@gmail.com"

string user = 2;

Returns
Type Description
ByteString

The bytes for user.

hasUser()

public abstract boolean hasUser()

If set, the email address of the user to set roles for. Format: "someuser@gmail.com"

string user = 2;

Returns
Type Description
boolean

Whether the user field is set.