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 type
google.cloud.securitycenter.v1.Asset| Modifier and Type | Class and Description |
|---|---|
static class |
Asset.Builder
Security Command Center representation of a Google Cloud
resource.
|
static class |
Asset.IamPolicy
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset.
|
static interface |
Asset.IamPolicyOrBuilder |
static class |
Asset.SecurityCenterProperties
Security Command Center managed properties.
|
static interface |
Asset.SecurityCenterPropertiesOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CANONICAL_NAME_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
IAM_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESOURCE_PROPERTIES_FIELD_NUMBER |
static int |
SECURITY_CENTER_PROPERTIES_FIELD_NUMBER |
static int |
SECURITY_MARKS_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsResourceProperties(String key)
Resource managed properties.
|
boolean |
equals(Object obj) |
String |
getCanonicalName()
The canonical name of the resource.
|
com.google.protobuf.ByteString |
getCanonicalNameBytes()
The canonical name of the resource.
|
com.google.protobuf.Timestamp |
getCreateTime()
The time at which the asset was created in Security Command Center.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The time at which the asset was created in Security Command Center.
|
static Asset |
getDefaultInstance() |
Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Asset.IamPolicy |
getIamPolicy()
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset.
|
Asset.IamPolicyOrBuilder |
getIamPolicyOrBuilder()
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset.
|
String |
getName()
The relative resource name of this asset.
|
com.google.protobuf.ByteString |
getNameBytes()
The relative resource name of this asset.
|
com.google.protobuf.Parser<Asset> |
getParserForType() |
Map<String,com.google.protobuf.Value> |
getResourceProperties()
Deprecated.
|
int |
getResourcePropertiesCount()
Resource managed properties.
|
Map<String,com.google.protobuf.Value> |
getResourcePropertiesMap()
Resource managed properties.
|
com.google.protobuf.Value |
getResourcePropertiesOrDefault(String key,
com.google.protobuf.Value defaultValue)
Resource managed properties.
|
com.google.protobuf.Value |
getResourcePropertiesOrThrow(String key)
Resource managed properties.
|
Asset.SecurityCenterProperties |
getSecurityCenterProperties()
Security Command Center managed properties.
|
Asset.SecurityCenterPropertiesOrBuilder |
getSecurityCenterPropertiesOrBuilder()
Security Command Center managed properties.
|
SecurityMarks |
getSecurityMarks()
User specified security marks.
|
SecurityMarksOrBuilder |
getSecurityMarksOrBuilder()
User specified security marks.
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The time at which the asset was last updated or added in Cloud SCC.
|
boolean |
hasCreateTime()
The time at which the asset was created in Security Command Center.
|
int |
hashCode() |
boolean |
hasIamPolicy()
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset.
|
boolean |
hasSecurityCenterProperties()
Security Command Center managed properties.
|
boolean |
hasSecurityMarks()
User specified security marks.
|
boolean |
hasUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Asset.Builder |
newBuilder() |
static Asset.Builder |
newBuilder(Asset prototype) |
Asset.Builder |
newBuilderForType() |
protected Asset.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Asset |
parseDelimitedFrom(InputStream input) |
static Asset |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(byte[] data) |
static Asset |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteBuffer data) |
static Asset |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(com.google.protobuf.ByteString data) |
static Asset |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Asset |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(InputStream input) |
static Asset |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Asset> |
parser() |
Asset.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
public static final int RESOURCE_PROPERTIES_FIELD_NUMBER
public static final int SECURITY_MARKS_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int IAM_POLICY_FIELD_NUMBER
public static final int CANONICAL_NAME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getName in interface AssetOrBuilderpublic 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;getNameBytes in interface AssetOrBuilderpublic 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;
hasSecurityCenterProperties in interface AssetOrBuilderpublic 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;
getSecurityCenterProperties in interface AssetOrBuilderpublic 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;
getSecurityCenterPropertiesOrBuilder in interface AssetOrBuilderpublic int getResourcePropertiesCount()
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;getResourcePropertiesCount in interface AssetOrBuilderpublic 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;containsResourceProperties in interface AssetOrBuilder@Deprecated public Map<String,com.google.protobuf.Value> getResourceProperties()
getResourcePropertiesMap() instead.getResourceProperties in interface AssetOrBuilderpublic 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;getResourcePropertiesMap in interface AssetOrBuilderpublic 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;getResourcePropertiesOrDefault in interface AssetOrBuilderpublic 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;getResourcePropertiesOrThrow in interface AssetOrBuilderpublic 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;hasSecurityMarks in interface AssetOrBuilderpublic 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;getSecurityMarks in interface AssetOrBuilderpublic 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;getSecurityMarksOrBuilder in interface AssetOrBuilderpublic boolean hasCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;hasCreateTime in interface AssetOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;getCreateTime in interface AssetOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;getCreateTimeOrBuilder in interface AssetOrBuilderpublic boolean hasUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
.google.protobuf.Timestamp update_time = 10;hasUpdateTime in interface AssetOrBuilderpublic 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;getUpdateTime in interface AssetOrBuilderpublic 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;getUpdateTimeOrBuilder in interface AssetOrBuilderpublic 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;hasIamPolicy in interface AssetOrBuilderpublic 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;getIamPolicy in interface AssetOrBuilderpublic 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;getIamPolicyOrBuilder in interface AssetOrBuilderpublic 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;getCanonicalName in interface AssetOrBuilderpublic 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;getCanonicalNameBytes in interface AssetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(InputStream input) throws IOException
IOExceptionpublic static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Asset parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Asset.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Asset.Builder newBuilder()
public static Asset.Builder newBuilder(Asset prototype)
public Asset.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Asset getDefaultInstance()
public static com.google.protobuf.Parser<Asset> parser()
public com.google.protobuf.Parser<Asset> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.