Class Attribute.Builder (0.3.0)

public static final class Attribute.Builder extends GeneratedMessage.Builder<Attribute.Builder> implements AttributeOrBuilder

Attribute is a container for generic entity attributes including common attributes across core entities (such as, user or asset). For example, Cloud is a generic entity attribute since it can apply to an asset (for example, a VM) or a user (for example, an identity service account).

Protobuf type google.backstory.Attribute

Implements

AttributeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLabels(Iterable<? extends Label> values)

public Attribute.Builder addAllLabels(Iterable<? extends Label> values)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
values Iterable<? extends com.google.backstory.Label>
Returns
Type Description
Attribute.Builder

addAllPermissions(Iterable<? extends Permission> values)

public Attribute.Builder addAllPermissions(Iterable<? extends Permission> values)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
values Iterable<? extends com.google.backstory.Permission>
Returns
Type Description
Attribute.Builder

addAllRoles(Iterable<? extends Role> values)

public Attribute.Builder addAllRoles(Iterable<? extends Role> values)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
values Iterable<? extends com.google.backstory.Role>
Returns
Type Description
Attribute.Builder

addLabels(Label value)

public Attribute.Builder addLabels(Label value)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
value Label
Returns
Type Description
Attribute.Builder

addLabels(Label.Builder builderForValue)

public Attribute.Builder addLabels(Label.Builder builderForValue)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
builderForValue Label.Builder
Returns
Type Description
Attribute.Builder

addLabels(int index, Label value)

public Attribute.Builder addLabels(int index, Label value)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameters
Name Description
index int
value Label
Returns
Type Description
Attribute.Builder

addLabels(int index, Label.Builder builderForValue)

public Attribute.Builder addLabels(int index, Label.Builder builderForValue)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Attribute.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
Label.Builder

addLabelsBuilder(int index)

public Label.Builder addLabelsBuilder(int index)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

addPermissions(Permission value)

public Attribute.Builder addPermissions(Permission value)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
value Permission
Returns
Type Description
Attribute.Builder

addPermissions(Permission.Builder builderForValue)

public Attribute.Builder addPermissions(Permission.Builder builderForValue)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
builderForValue Permission.Builder
Returns
Type Description
Attribute.Builder

addPermissions(int index, Permission value)

public Attribute.Builder addPermissions(int index, Permission value)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameters
Name Description
index int
value Permission
Returns
Type Description
Attribute.Builder

addPermissions(int index, Permission.Builder builderForValue)

public Attribute.Builder addPermissions(int index, Permission.Builder builderForValue)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
Attribute.Builder

addPermissionsBuilder()

public Permission.Builder addPermissionsBuilder()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
Permission.Builder

addPermissionsBuilder(int index)

public Permission.Builder addPermissionsBuilder(int index)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

addRoles(Role value)

public Attribute.Builder addRoles(Role value)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
value Role
Returns
Type Description
Attribute.Builder

addRoles(Role.Builder builderForValue)

public Attribute.Builder addRoles(Role.Builder builderForValue)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
builderForValue Role.Builder
Returns
Type Description
Attribute.Builder

addRoles(int index, Role value)

public Attribute.Builder addRoles(int index, Role value)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameters
Name Description
index int
value Role
Returns
Type Description
Attribute.Builder

addRoles(int index, Role.Builder builderForValue)

public Attribute.Builder addRoles(int index, Role.Builder builderForValue)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameters
Name Description
index int
builderForValue Role.Builder
Returns
Type Description
Attribute.Builder

addRolesBuilder()

public Role.Builder addRolesBuilder()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
Role.Builder

addRolesBuilder(int index)

public Role.Builder addRolesBuilder(int index)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
index int
Returns
Type Description
Role.Builder

build()

public Attribute build()
Returns
Type Description
Attribute

buildPartial()

public Attribute buildPartial()
Returns
Type Description
Attribute

clear()

public Attribute.Builder clear()
Returns
Type Description
Attribute.Builder
Overrides

clearCloud()

public Attribute.Builder clearCloud()

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Returns
Type Description
Attribute.Builder

clearCreationTime()

public Attribute.Builder clearCreationTime()

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Returns
Type Description
Attribute.Builder

clearLabels()

public Attribute.Builder clearLabels()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
Attribute.Builder

clearLastUpdateTime()

public Attribute.Builder clearLastUpdateTime()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
Attribute.Builder

clearPermissions()

public Attribute.Builder clearPermissions()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
Attribute.Builder

clearRoles()

public Attribute.Builder clearRoles()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
Attribute.Builder

getCloud()

public Cloud getCloud()

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Returns
Type Description
Cloud

The cloud.

getCloudBuilder()

public Cloud.Builder getCloudBuilder()

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Returns
Type Description
Cloud.Builder

getCloudOrBuilder()

public CloudOrBuilder getCloudOrBuilder()

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Returns
Type Description
CloudOrBuilder

getCreationTime()

public Timestamp getCreationTime()

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Returns
Type Description
Timestamp

The creationTime.

getCreationTimeBuilder()

public Timestamp.Builder getCreationTimeBuilder()

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Returns
Type Description
Builder

getCreationTimeOrBuilder()

public TimestampOrBuilder getCreationTimeOrBuilder()

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Attribute getDefaultInstanceForType()
Returns
Type Description
Attribute

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels(int index)

public Label getLabels(int index)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
index int
Returns
Type Description
Label

getLabelsBuilder(int index)

public Label.Builder getLabelsBuilder(int index)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

getLabelsBuilderList()

public List<Label.Builder> getLabelsBuilderList()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
List<Builder>

getLabelsCount()

public int getLabelsCount()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
int

getLabelsList()

public List<Label> getLabelsList()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
List<Label>

getLabelsOrBuilder(int index)

public LabelOrBuilder getLabelsOrBuilder(int index)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
index int
Returns
Type Description
LabelOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Returns
Type Description
List<? extends com.google.backstory.LabelOrBuilder>

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
TimestampOrBuilder

getPermissions(int index)

public Permission getPermissions(int index)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
index int
Returns
Type Description
Permission

getPermissionsBuilder(int index)

public Permission.Builder getPermissionsBuilder(int index)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

getPermissionsBuilderList()

public List<Permission.Builder> getPermissionsBuilderList()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
List<Builder>

getPermissionsCount()

public int getPermissionsCount()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
int

getPermissionsList()

public List<Permission> getPermissionsList()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
List<Permission>

getPermissionsOrBuilder(int index)

public PermissionOrBuilder getPermissionsOrBuilder(int index)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
index int
Returns
Type Description
PermissionOrBuilder

getPermissionsOrBuilderList()

public List<? extends PermissionOrBuilder> getPermissionsOrBuilderList()

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Returns
Type Description
List<? extends com.google.backstory.PermissionOrBuilder>

getRoles(int index)

public Role getRoles(int index)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
index int
Returns
Type Description
Role

getRolesBuilder(int index)

public Role.Builder getRolesBuilder(int index)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
index int
Returns
Type Description
Role.Builder

getRolesBuilderList()

public List<Role.Builder> getRolesBuilderList()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
List<Builder>

getRolesCount()

public int getRolesCount()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
int

getRolesList()

public List<Role> getRolesList()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
List<Role>

getRolesOrBuilder(int index)

public RoleOrBuilder getRolesOrBuilder(int index)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
index int
Returns
Type Description
RoleOrBuilder

getRolesOrBuilderList()

public List<? extends RoleOrBuilder> getRolesOrBuilderList()

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Returns
Type Description
List<? extends com.google.backstory.RoleOrBuilder>

hasCloud()

public boolean hasCloud()

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Returns
Type Description
boolean

Whether the cloud field is set.

hasCreationTime()

public boolean hasCreationTime()

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Returns
Type Description
boolean

Whether the creationTime field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
boolean

Whether the lastUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloud(Cloud value)

public Attribute.Builder mergeCloud(Cloud value)

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Parameter
Name Description
value Cloud
Returns
Type Description
Attribute.Builder

mergeCreationTime(Timestamp value)

public Attribute.Builder mergeCreationTime(Timestamp value)

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
Attribute.Builder

mergeFrom(Attribute other)

public Attribute.Builder mergeFrom(Attribute other)
Parameter
Name Description
other Attribute
Returns
Type Description
Attribute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Attribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Attribute.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Attribute.Builder
Overrides

mergeLastUpdateTime(Timestamp value)

public Attribute.Builder mergeLastUpdateTime(Timestamp value)

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Attribute.Builder

removeLabels(int index)

public Attribute.Builder removeLabels(int index)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameter
Name Description
index int
Returns
Type Description
Attribute.Builder

removePermissions(int index)

public Attribute.Builder removePermissions(int index)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameter
Name Description
index int
Returns
Type Description
Attribute.Builder

removeRoles(int index)

public Attribute.Builder removeRoles(int index)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameter
Name Description
index int
Returns
Type Description
Attribute.Builder

setCloud(Cloud value)

public Attribute.Builder setCloud(Cloud value)

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Parameter
Name Description
value Cloud
Returns
Type Description
Attribute.Builder

setCloud(Cloud.Builder builderForValue)

public Attribute.Builder setCloud(Cloud.Builder builderForValue)

Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.

.google.backstory.Cloud cloud = 1;

Parameter
Name Description
builderForValue Cloud.Builder
Returns
Type Description
Attribute.Builder

setCreationTime(Timestamp value)

public Attribute.Builder setCreationTime(Timestamp value)

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
Attribute.Builder

setCreationTime(Timestamp.Builder builderForValue)

public Attribute.Builder setCreationTime(Timestamp.Builder builderForValue)

Time the resource or entity was created or provisioned.

.google.protobuf.Timestamp creation_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Attribute.Builder

setLabels(int index, Label value)

public Attribute.Builder setLabels(int index, Label value)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameters
Name Description
index int
value Label
Returns
Type Description
Attribute.Builder

setLabels(int index, Label.Builder builderForValue)

public Attribute.Builder setLabels(int index, Label.Builder builderForValue)

Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings.

repeated .google.backstory.Label labels = 2;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Attribute.Builder

setLastUpdateTime(Timestamp value)

public Attribute.Builder setLastUpdateTime(Timestamp value)

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Attribute.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public Attribute.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Attribute.Builder

setPermissions(int index, Permission value)

public Attribute.Builder setPermissions(int index, Permission value)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameters
Name Description
index int
value Permission
Returns
Type Description
Attribute.Builder

setPermissions(int index, Permission.Builder builderForValue)

public Attribute.Builder setPermissions(int index, Permission.Builder builderForValue)

System permissions for IAM entity (human principal, service account, group).

repeated .google.backstory.Permission permissions = 705;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
Attribute.Builder

setRoles(int index, Role value)

public Attribute.Builder setRoles(int index, Role value)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameters
Name Description
index int
value Role
Returns
Type Description
Attribute.Builder

setRoles(int index, Role.Builder builderForValue)

public Attribute.Builder setRoles(int index, Role.Builder builderForValue)

System IAM roles to be assumed by resources to use the role's permissions for access control.

repeated .google.backstory.Role roles = 3;

Parameters
Name Description
index int
builderForValue Role.Builder
Returns
Type Description
Attribute.Builder