Class 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 type google.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • 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 class com.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 class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        Returns:
        The securityCenterProperties.
      • 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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        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 interface AssetOrBuilder
      • 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 interface AssetOrBuilder
        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 interface AssetOrBuilder
        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 interface AssetOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Asset.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Asset.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Asset.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Asset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder