Class Asset (2.32.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.v1.Asset

Implements

AssetOrBuilder

Static Fields

CANONICAL_NAME_FIELD_NUMBER

public static final int CANONICAL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

IAM_POLICY_FIELD_NUMBER

public static final int IAM_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_PROPERTIES_FIELD_NUMBER

public static final int RESOURCE_PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_CENTER_PROPERTIES_FIELD_NUMBER

public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_MARKS_FIELD_NUMBER

public static final int SECURITY_MARKS_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Asset getDefaultInstance()
Returns
TypeDescription
Asset

getDescriptor()

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

newBuilder()

public static Asset.Builder newBuilder()
Returns
TypeDescription
Asset.Builder

newBuilder(Asset prototype)

public static Asset.Builder newBuilder(Asset prototype)
Parameter
NameDescription
prototypeAsset
Returns
TypeDescription
Asset.Builder

parseDelimitedFrom(InputStream input)

public static Asset parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Asset parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Asset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Asset parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Asset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Asset parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Asset parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Asset parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Asset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Asset> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Asset getDefaultInstanceForType()
Returns
TypeDescription
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.v1.Asset.IamPolicy iam_policy = 11;

Returns
TypeDescription
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.v1.Asset.IamPolicy iam_policy = 11;

Returns
TypeDescription
Asset.IamPolicyOrBuilder

getName()

public String getName()

The relative resource name of this asset. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/assets/{asset_id}".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of this asset. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/assets/{asset_id}".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Asset> getParserForType()
Returns
TypeDescription
Parser<Asset>
Overrides

getResourceProperties()

public Map<String,Value> getResourceProperties()
Returns
TypeDescription
Map<String,Value>

getResourcePropertiesCount()

public int getResourcePropertiesCount()

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;

Returns
TypeDescription
int

getResourcePropertiesMap()

public Map<String,Value> getResourcePropertiesMap()

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;

Returns
TypeDescription
Map<String,Value>

getResourcePropertiesOrDefault(String key, Value defaultValue)

public Value getResourcePropertiesOrDefault(String key, Value defaultValue)

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;

Parameters
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
Value

getResourcePropertiesOrThrow(String key)

public Value getResourcePropertiesOrThrow(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
NameDescription
keyString
Returns
TypeDescription
Value

getSecurityCenterProperties()

public Asset.SecurityCenterProperties getSecurityCenterProperties()

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;

Returns
TypeDescription
Asset.SecurityCenterProperties

The securityCenterProperties.

getSecurityCenterPropertiesOrBuilder()

public Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder()

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;

Returns
TypeDescription
Asset.SecurityCenterPropertiesOrBuilder

getSecurityMarks()

public SecurityMarks getSecurityMarks()

User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;

Returns
TypeDescription
SecurityMarks

The securityMarks.

getSecurityMarksOrBuilder()

public SecurityMarksOrBuilder getSecurityMarksOrBuilder()

User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;

Returns
TypeDescription
SecurityMarksOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

The time at which the asset was last updated or added in Cloud SCC.

.google.protobuf.Timestamp update_time = 10;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time at which the asset was last updated or added in Cloud SCC.

.google.protobuf.Timestamp update_time = 10;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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

.google.protobuf.Timestamp create_time = 9;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasIamPolicy()

public boolean hasIamPolicy()

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.v1.Asset.IamPolicy iam_policy = 11;

Returns
TypeDescription
boolean

Whether the iamPolicy field is set.

hasSecurityCenterProperties()

public boolean hasSecurityCenterProperties()

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;

Returns
TypeDescription
boolean

Whether the securityCenterProperties field is set.

hasSecurityMarks()

public boolean hasSecurityMarks()

User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;

Returns
TypeDescription
boolean

Whether the securityMarks field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time at which the asset was last updated or added in Cloud SCC.

.google.protobuf.Timestamp update_time = 10;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Asset.Builder newBuilderForType()
Returns
TypeDescription
Asset.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Asset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Asset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Asset.Builder toBuilder()
Returns
TypeDescription
Asset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException