Class Attribute (0.3.0)

public final class Attribute extends GeneratedMessage 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 Fields

CLOUD_FIELD_NUMBER

public static final int CLOUD_FIELD_NUMBER
Field Value
Type Description
int

CREATION_TIME_FIELD_NUMBER

public static final int CREATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

LAST_UPDATE_TIME_FIELD_NUMBER

public static final int LAST_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PERMISSIONS_FIELD_NUMBER

public static final int PERMISSIONS_FIELD_NUMBER
Field Value
Type Description
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Attribute getDefaultInstance()
Returns
Type Description
Attribute

getDescriptor()

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

newBuilder()

public static Attribute.Builder newBuilder()
Returns
Type Description
Attribute.Builder

newBuilder(Attribute prototype)

public static Attribute.Builder newBuilder(Attribute prototype)
Parameter
Name Description
prototype Attribute
Returns
Type Description
Attribute.Builder

parseDelimitedFrom(InputStream input)

public static Attribute parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Attribute parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Attribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Attribute parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Attribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Attribute parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Attribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Attribute parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Attribute parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Attribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attribute
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Attribute> parser()
Returns
Type Description
Parser<Attribute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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

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

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.

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time the resource or entity was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Attribute> getParserForType()
Returns
Type Description
Parser<Attribute>
Overrides

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Attribute.Builder newBuilderForType()
Returns
Type Description
Attribute.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Attribute.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Attribute.Builder
Overrides

toBuilder()

public Attribute.Builder toBuilder()
Returns
Type Description
Attribute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException