java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class Asset extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Security Command Center representation of a Google Cloud resource.
    static final class 
    Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.
    static interface 
     
    static final class 
    Security Command Center managed properties.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Resource managed properties.
    boolean
     
    The canonical name of the resource.
    com.google.protobuf.ByteString
    The canonical name of the resource.
    com.google.protobuf.Timestamp
    The time at which the asset was created in Security Command Center.
    com.google.protobuf.TimestampOrBuilder
    The time at which the asset was created in Security Command Center.
    static Asset
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.
    Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.
    The relative resource name of this asset.
    com.google.protobuf.ByteString
    The relative resource name of this asset.
    com.google.protobuf.Parser<Asset>
     
    Map<String,com.google.protobuf.Value>
    Deprecated.
    int
    Resource managed properties.
    Map<String,com.google.protobuf.Value>
    Resource managed properties.
    com.google.protobuf.Value
    getResourcePropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)
    Resource managed properties.
    com.google.protobuf.Value
    Resource managed properties.
    Security Command Center managed properties.
    Security Command Center managed properties.
    User specified security marks.
    User specified security marks.
    int
     
    com.google.protobuf.Timestamp
    The time at which the asset was last updated or added in Cloud SCC.
    com.google.protobuf.TimestampOrBuilder
    The time at which the asset was last updated or added in Cloud SCC.
    boolean
    The time at which the asset was created in Security Command Center.
    int
     
    boolean
    Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.
    boolean
    Security Command Center managed properties.
    boolean
    User specified security marks.
    boolean
    The time at which the asset was last updated or added in Cloud SCC.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(Asset prototype)
     
     
    protected Asset.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Asset
     
    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
     
    static Asset
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
     
    static Asset
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Asset>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • SECURITY_CENTER_PROPERTIES_FIELD_NUMBER

      public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER
      See Also:
    • RESOURCE_PROPERTIES_FIELD_NUMBER

      public static final int RESOURCE_PROPERTIES_FIELD_NUMBER
      See Also:
    • SECURITY_MARKS_FIELD_NUMBER

      public static final int SECURITY_MARKS_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • IAM_POLICY_FIELD_NUMBER

      public static final int IAM_POLICY_FIELD_NUMBER
      See Also:
    • CANONICAL_NAME_FIELD_NUMBER

      public static final int CANONICAL_NAME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.v1p1beta1.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.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      Specified by:
      getSecurityCenterProperties in interface AssetOrBuilder
      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:
      getSecurityCenterPropertiesOrBuilder in interface AssetOrBuilder
    • 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
    • getResourceProperties

      @Deprecated public Map<String,com.google.protobuf.Value> getResourceProperties()
      Deprecated.
      Specified by:
      getResourceProperties 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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 or added in Cloud SCC.
       
      .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 or added in Cloud SCC.
       
      .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 or added in Cloud SCC.
       
      .google.protobuf.Timestamp update_time = 10;
      Specified by:
      getUpdateTimeOrBuilder in interface AssetOrBuilder
    • 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:
      hasIamPolicy in interface AssetOrBuilder
      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:
      getIamPolicy in interface AssetOrBuilder
      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:
      getIamPolicyOrBuilder in interface AssetOrBuilder
    • 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:
      getCanonicalName in interface AssetOrBuilder
      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:
      getCanonicalNameBytes in interface AssetOrBuilder
      Returns:
      The bytes for canonicalName.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Asset.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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