Class Asset (2.35.0)

public final class Asset extends GeneratedMessageV3 implements AssetOrBuilder

Security Command Center representation of a Google Cloud resource.

The Asset is a Security Command Center resource that captures information about a single Google Cloud resource. All modifications to an Asset are only within the context of Security Command Center and don't affect the referenced Google Cloud resource.

Protobuf type google.cloud.securitycenter.v1p1beta1.Asset

Implements

AssetOrBuilder

Static Fields

CANONICAL_NAME_FIELD_NUMBER

public static final int CANONICAL_NAME_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

IAM_POLICY_FIELD_NUMBER

public static final int IAM_POLICY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_PROPERTIES_FIELD_NUMBER

public static final int RESOURCE_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_CENTER_PROPERTIES_FIELD_NUMBER

public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_MARKS_FIELD_NUMBER

public static final int SECURITY_MARKS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Asset getDefaultInstance()
Returns
Type Description
Asset

getDescriptor()

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

newBuilder()

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

newBuilder(Asset prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsResourceProperties(String key)

public boolean containsResourceProperties(String key)

Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

map<string, .google.protobuf.Value> resource_properties = 7;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getCanonicalName()

public String getCanonicalName()

The canonical name of the resource. It's either "organizations/{organization_id}/assets/{asset_id}", "folders/{folder_id}/assets/{asset_id}" or "projects/{project_number}/assets/{asset_id}", depending on the closest CRM ancestor of the resource.

string canonical_name = 13;

Returns
Type Description
String

The canonicalName.

getCanonicalNameBytes()

public ByteString getCanonicalNameBytes()

The canonical name of the resource. It's either "organizations/{organization_id}/assets/{asset_id}", "folders/{folder_id}/assets/{asset_id}" or "projects/{project_number}/assets/{asset_id}", depending on the closest CRM ancestor of the resource.

string canonical_name = 13;

Returns
Type Description
ByteString

The bytes for canonicalName.

getCreateTime()

public Timestamp getCreateTime()

The time at which the asset was created in Security Command Center.

.google.protobuf.Timestamp create_time = 9;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time at which the asset was created in Security Command Center.

.google.protobuf.Timestamp create_time = 9;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Asset getDefaultInstanceForType()
Returns
Type Description
Asset

getIamPolicy()

public Asset.IamPolicy getIamPolicy()

Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset. This information is managed and defined by the Google Cloud resource and cannot be modified by the user.

.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;

Returns
Type Description
Asset.IamPolicy

The iamPolicy.

getIamPolicyOrBuilder()

public Asset.IamPolicyOrBuilder getIamPolicyOrBuilder()

Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset. This information is managed and defined by the Google Cloud resource and cannot be modified by the user.

.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;

Returns
Type Description