Class Asset
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.securitycenter.v1beta1.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.v1beta1.Asset
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Asset.Builder
Security Command Center representation of a Google Cloud resource.static class
Asset.SecurityCenterProperties
Security Command Center managed properties.static interface
Asset.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 int
CREATE_TIME_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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsResourceProperties(String key)
Resource managed properties.boolean
equals(Object obj)
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()
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, added, or deleted in Security Command Center.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
The time at which the asset was last updated, added, or deleted in Security Command Center.boolean
hasCreateTime()
The time at which the asset was created in Security Command Center.int
hashCode()
boolean
hasSecurityCenterProperties()
Security Command Center managed properties.boolean
hasSecurityMarks()
User specified security marks.boolean
hasUpdateTime()
The time at which the asset was last updated, added, or deleted in Security Command Center.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(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 Asset
parseFrom(ByteBuffer data)
static Asset
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Asset>
parser()
Asset.Builder
toBuilder()
void
writeTo(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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
- Specified by:
hasSecurityCenterProperties
in 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.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
- Specified by:
getSecurityCenterProperties
in 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.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
- Specified by:
getSecurityCenterPropertiesOrBuilder
in interfaceAssetOrBuilder
-
getResourcePropertiesCount
public int getResourcePropertiesCount()
Description copied from interface: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;
- Specified by:
getResourcePropertiesCount
in 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:
containsResourceProperties
in interfaceAssetOrBuilder
-
getResourceProperties
@Deprecated public Map<String,com.google.protobuf.Value> getResourceProperties()
Deprecated.UsegetResourcePropertiesMap()
instead.- Specified by:
getResourceProperties
in 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:
getResourcePropertiesMap
in 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:
getResourcePropertiesOrDefault
in 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:
getResourcePropertiesOrThrow
in 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.v1beta1.SecurityMarks security_marks = 8;
- Specified by:
hasSecurityMarks
in 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.v1beta1.SecurityMarks security_marks = 8;
- Specified by:
getSecurityMarks
in 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.v1beta1.SecurityMarks security_marks = 8;
- Specified by:
getSecurityMarksOrBuilder
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceAssetOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
The time at which the asset was last updated, added, or deleted in Security Command Center.
.google.protobuf.Timestamp update_time = 10;
- Specified by:
hasUpdateTime
in interfaceAssetOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The time at which the asset was last updated, added, or deleted in Security Command Center.
.google.protobuf.Timestamp update_time = 10;
- Specified by:
getUpdateTime
in interfaceAssetOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The time at which the asset was last updated, added, or deleted in Security Command Center.
.google.protobuf.Timestamp update_time = 10;
- Specified by:
getUpdateTimeOrBuilder
in interfaceAssetOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Asset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-