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
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 |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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.
|
ByteString |
getCanonicalNameBytes()
The canonical name of the resource.
|
Timestamp |
getCreateTime()
The time at which the asset was created in Security Command Center.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
The time at which the asset was created in Security Command Center.
|
static Asset |
getDefaultInstance() |
Asset |
getDefaultInstanceForType() |
static 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.
|
ByteString |
getNameBytes()
The relative resource name of this asset.
|
Parser<Asset> |
getParserForType() |
Map<String,Value> |
getResourceProperties()
Deprecated.
|
int |
getResourcePropertiesCount()
Resource managed properties.
|
Map<String,Value> |
getResourcePropertiesMap()
Resource managed properties.
|
Value |
getResourcePropertiesOrDefault(String key,
Value defaultValue)
Resource managed properties.
|
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() |
UnknownFieldSet |
getUnknownFields() |
Timestamp |
getUpdateTime()
The time at which the asset was last updated or added in Cloud SCC.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Asset.Builder |
newBuilder() |
static Asset.Builder |
newBuilder(Asset prototype) |
Asset.Builder |
newBuilderForType() |
protected Asset.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Asset |
parseDelimitedFrom(InputStream input) |
static Asset |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(byte[] data) |
static Asset |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteBuffer data) |
static Asset |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteString data) |
static Asset |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(CodedInputStream input) |
static Asset |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(InputStream input) |
static Asset |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Asset> |
parser() |
Asset.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
getName
in interface AssetOrBuilder
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;
getNameBytes
in interface AssetOrBuilder
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;
hasSecurityCenterProperties
in interface AssetOrBuilder
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;
getSecurityCenterProperties
in interface AssetOrBuilder
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;
getSecurityCenterPropertiesOrBuilder
in interface AssetOrBuilder
public int getResourcePropertiesCount()
AssetOrBuilder
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;
getResourcePropertiesCount
in interface AssetOrBuilder
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;
containsResourceProperties
in interface AssetOrBuilder
@Deprecated public Map<String,Value> getResourceProperties()
getResourcePropertiesMap()
instead.getResourceProperties
in interface AssetOrBuilder
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;
getResourcePropertiesMap
in interface AssetOrBuilder
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;
getResourcePropertiesOrDefault
in interface AssetOrBuilder
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;
getResourcePropertiesOrThrow
in interface AssetOrBuilder
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;
hasSecurityMarks
in interface AssetOrBuilder
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;
getSecurityMarks
in interface AssetOrBuilder
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;
getSecurityMarksOrBuilder
in interface AssetOrBuilder
public boolean hasCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;
hasCreateTime
in interface AssetOrBuilder
public Timestamp getCreateTime()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;
getCreateTime
in interface AssetOrBuilder
public TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the asset was created in Security Command Center.
.google.protobuf.Timestamp create_time = 9;
getCreateTimeOrBuilder
in interface AssetOrBuilder
public 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 AssetOrBuilder
public 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 AssetOrBuilder
public 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 AssetOrBuilder
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;
hasIamPolicy
in interface AssetOrBuilder
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;
getIamPolicy
in interface AssetOrBuilder
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;
getIamPolicyOrBuilder
in interface AssetOrBuilder
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;
getCanonicalName
in interface AssetOrBuilder
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;
getCanonicalNameBytes
in interface AssetOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Asset parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(InputStream input) throws IOException
IOException
public static Asset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Asset parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Asset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Asset parseFrom(CodedInputStream input) throws IOException
IOException
public static Asset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Asset.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Asset.Builder newBuilder()
public static Asset.Builder newBuilder(Asset prototype)
public Asset.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Asset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Asset getDefaultInstance()
public Parser<Asset> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Asset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.