Class Asset
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.securitycenter.v1p1beta1.Asset
-
- All Implemented Interfaces:
AssetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Asset extends com.google.protobuf.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 typegoogle.cloud.securitycenter.v1p1beta1.Asset- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsset.BuilderSecurity Command Center representation of a Google Cloud resource.static classAsset.IamPolicyCloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.static interfaceAsset.IamPolicyOrBuilderstatic classAsset.SecurityCenterPropertiesSecurity Command Center managed properties.static interfaceAsset.SecurityCenterPropertiesOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCANONICAL_NAME_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intIAM_POLICY_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intRESOURCE_PROPERTIES_FIELD_NUMBERstatic intSECURITY_CENTER_PROPERTIES_FIELD_NUMBERstatic intSECURITY_MARKS_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsResourceProperties(String key)Resource managed properties.booleanequals(Object obj)StringgetCanonicalName()The canonical name of the resource.com.google.protobuf.ByteStringgetCanonicalNameBytes()The canonical name of the resource.com.google.protobuf.TimestampgetCreateTime()The time at which the asset was created in Security Command Center.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The time at which the asset was created in Security Command Center.static AssetgetDefaultInstance()AssetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Asset.IamPolicygetIamPolicy()Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.Asset.IamPolicyOrBuildergetIamPolicyOrBuilder()Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.StringgetName()The relative resource name of this asset.com.google.protobuf.ByteStringgetNameBytes()The relative resource name of this asset.com.google.protobuf.Parser<Asset>getParserForType()Map<String,com.google.protobuf.Value>getResourceProperties()Deprecated.intgetResourcePropertiesCount()Resource managed properties.Map<String,com.google.protobuf.Value>getResourcePropertiesMap()Resource managed properties.com.google.protobuf.ValuegetResourcePropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)Resource managed properties.com.google.protobuf.ValuegetResourcePropertiesOrThrow(String key)Resource managed properties.Asset.SecurityCenterPropertiesgetSecurityCenterProperties()Security Command Center managed properties.Asset.SecurityCenterPropertiesOrBuildergetSecurityCenterPropertiesOrBuilder()Security Command Center managed properties.SecurityMarksgetSecurityMarks()User specified security marks.SecurityMarksOrBuildergetSecurityMarksOrBuilder()User specified security marks.intgetSerializedSize()com.google.protobuf.TimestampgetUpdateTime()The time at which the asset was last updated or added in Cloud SCC.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The time at which the asset was last updated or added in Cloud SCC.booleanhasCreateTime()The time at which the asset was created in Security Command Center.inthashCode()booleanhasIamPolicy()Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.booleanhasSecurityCenterProperties()Security Command Center managed properties.booleanhasSecurityMarks()User specified security marks.booleanhasUpdateTime()The time at which the asset was last updated or added in Cloud SCC.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Asset.BuildernewBuilder()static Asset.BuildernewBuilder(Asset prototype)Asset.BuildernewBuilderForType()protected Asset.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AssetparseDelimitedFrom(InputStream input)static AssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AssetparseFrom(byte[] data)static AssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AssetparseFrom(com.google.protobuf.ByteString data)static AssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AssetparseFrom(com.google.protobuf.CodedInputStream input)static AssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AssetparseFrom(InputStream input)static AssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AssetparseFrom(ByteBuffer data)static AssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Asset>parser()Asset.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_PROPERTIES_FIELD_NUMBER
public static final int RESOURCE_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECURITY_MARKS_FIELD_NUMBER
public static final int SECURITY_MARKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IAM_POLICY_FIELD_NUMBER
public static final int IAM_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CANONICAL_NAME_FIELD_NUMBER
public static final int CANONICAL_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- Specified by:
getNamein interfaceAssetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
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.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;- Specified by:
hasSecurityCenterPropertiesin interfaceAssetOrBuilder- Returns:
- Whether the securityCenterProperties field is set.
-
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.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;- Specified by:
getSecurityCenterPropertiesin interfaceAssetOrBuilder- Returns:
- 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.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;- Specified by:
getSecurityCenterPropertiesOrBuilderin interfaceAssetOrBuilder
-
getResourcePropertiesCount
public int getResourcePropertiesCount()
Description copied from interface:AssetOrBuilderResource 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;- Specified by:
getResourcePropertiesCountin interfaceAssetOrBuilder
-
containsResourceProperties
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;- Specified by:
containsResourcePropertiesin interfaceAssetOrBuilder
-
getResourceProperties
@Deprecated public Map<String,com.google.protobuf.Value> getResourceProperties()
Deprecated.UsegetResourcePropertiesMap()instead.- Specified by:
getResourcePropertiesin interfaceAssetOrBuilder
-
getResourcePropertiesMap
public Map<String,com.google.protobuf.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;- Specified by:
getResourcePropertiesMapin interfaceAssetOrBuilder
-
getResourcePropertiesOrDefault
public com.google.protobuf.Value getResourcePropertiesOrDefault(String key, com.google.protobuf.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;- Specified by:
getResourcePropertiesOrDefaultin interfaceAssetOrBuilder
-
getResourcePropertiesOrThrow
public com.google.protobuf.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;- Specified by:
getResourcePropertiesOrThrowin interfaceAssetOrBuilder
-
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.v1p1beta1.SecurityMarks security_marks = 8;- Specified by:
hasSecurityMarksin interfaceAssetOrBuilder- Returns:
- Whether the securityMarks field is set.
-
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.v1p1beta1.SecurityMarks security_marks = 8;- Specified by:
getSecurityMarksin interfaceAssetOrBuilder- Returns:
- 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.v1p1beta1.SecurityMarks security_marks = 8;- Specified by:
getSecurityMarksOrBuilderin interfaceAssetOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;- Specified by:
hasCreateTimein interfaceAssetOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;- Specified by:
getCreateTimein interfaceAssetOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;- Specified by:
getCreateTimeOrBuilderin interfaceAssetOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
.google.protobuf.Timestamp update_time = 10;- Specified by:
hasUpdateTimein interfaceAssetOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
.google.protobuf.Timestamp update_time = 10;- Specified by:
getUpdateTimein interfaceAssetOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The time at which the asset was last updated or added in Cloud SCC.
.google.protobuf.Timestamp update_time = 10;- Specified by:
getUpdateTimeOrBuilderin interfaceAssetOrBuilder
-
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.v1p1beta1.Asset.IamPolicy iam_policy = 11;- Specified by:
hasIamPolicyin interfaceAssetOrBuilder- Returns:
- Whether the iamPolicy field is set.
-
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;- Specified by:
getIamPolicyin interfaceAssetOrBuilder- Returns:
- 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;- Specified by:
getIamPolicyOrBuilderin interfaceAssetOrBuilder
-
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;- Specified by:
getCanonicalNamein interfaceAssetOrBuilder- Returns:
- The canonicalName.
-
getCanonicalNameBytes
public com.google.protobuf.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;- Specified by:
getCanonicalNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for canonicalName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Asset parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Asset.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Asset.Builder newBuilder()
-
newBuilder
public static Asset.Builder newBuilder(Asset prototype)
-
toBuilder
public Asset.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Asset getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Asset> parser()
-
getParserForType
public com.google.protobuf.Parser<Asset> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Asset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-