Class Asset

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1.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
 An asset in Google Cloud. An asset can be any resource in the Google Cloud
 [resource
 hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
 a resource outside the Google Cloud resource hierarchy (such as Google
 Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy),
 or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
 See [Supported asset
 types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
 for more information.
 
Protobuf type google.cloud.asset.v1.Asset
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static final class 
    An asset in Google Cloud.

    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
     
    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
     
     
    Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    getAncestors(int index)
    The ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names.
    com.google.protobuf.ByteString
    getAncestorsBytes(int index)
    The ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names.
    int
    The ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names.
    com.google.protobuf.ProtocolStringList
    The ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names.
    The type of the asset.
    com.google.protobuf.ByteString
    The type of the asset.
    static Asset
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    A representation of the IAM policy set on a Google Cloud resource.
    A representation of the IAM policy set on a Google Cloud resource.
    The full name of the asset.
    com.google.protobuf.ByteString
    The full name of the asset.
    getOrgPolicy(int index)
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    int
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    A representation of runtime OS Inventory information.
    A representation of runtime OS Inventory information.
    com.google.protobuf.Parser<Asset>
     
    One related asset of the current asset.
    One related asset of the current asset.
    Deprecated.
    google.cloud.asset.v1.Asset.related_assets is deprecated.
    Deprecated.
    A representation of the resource.
    A representation of the resource.
    int
     
    Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    com.google.protobuf.Timestamp
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
    com.google.protobuf.TimestampOrBuilder
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
    boolean
    Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    boolean
    Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    int
     
    boolean
    A representation of the IAM policy set on a Google Cloud resource.
    boolean
    A representation of runtime OS Inventory information.
    boolean
    One related asset of the current asset.
    boolean
    Deprecated.
    google.cloud.asset.v1.Asset.related_assets is deprecated.
    boolean
    A representation of the resource.
    boolean
    Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    boolean
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    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, internalGetMapFieldReflection, 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

    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • ASSET_TYPE_FIELD_NUMBER

      public static final int ASSET_TYPE_FIELD_NUMBER
      See Also:
    • RESOURCE_FIELD_NUMBER

      public static final int RESOURCE_FIELD_NUMBER
      See Also:
    • IAM_POLICY_FIELD_NUMBER

      public static final int IAM_POLICY_FIELD_NUMBER
      See Also:
    • ORG_POLICY_FIELD_NUMBER

      public static final int ORG_POLICY_FIELD_NUMBER
      See Also:
    • ACCESS_POLICY_FIELD_NUMBER

      public static final int ACCESS_POLICY_FIELD_NUMBER
      See Also:
    • ACCESS_LEVEL_FIELD_NUMBER

      public static final int ACCESS_LEVEL_FIELD_NUMBER
      See Also:
    • SERVICE_PERIMETER_FIELD_NUMBER

      public static final int SERVICE_PERIMETER_FIELD_NUMBER
      See Also:
    • OS_INVENTORY_FIELD_NUMBER

      public static final int OS_INVENTORY_FIELD_NUMBER
      See Also:
    • ANCESTORS_FIELD_NUMBER

      public static final int ANCESTORS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAccessContextPolicyCase

      public Asset.AccessContextPolicyCase getAccessContextPolicyCase()
      Specified by:
      getAccessContextPolicyCase in interface AssetOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      hasUpdateTime in interface AssetOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      getUpdateTime in interface AssetOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      getUpdateTimeOrBuilder in interface AssetOrBuilder
    • getName

      public String getName()
       The full name of the asset. Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
      
       See [Resource
       names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       for more information.
       
      string name = 1;
      Specified by:
      getName in interface AssetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The full name of the asset. Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
      
       See [Resource
       names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       for more information.
       
      string name = 1;
      Specified by:
      getNameBytes in interface AssetOrBuilder
      Returns:
      The bytes for name.
    • getAssetType

      public String getAssetType()
       The type of the asset. Example: `compute.googleapis.com/Disk`
      
       See [Supported asset
       types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for more information.
       
      string asset_type = 2;
      Specified by:
      getAssetType in interface AssetOrBuilder
      Returns:
      The assetType.
    • getAssetTypeBytes

      public com.google.protobuf.ByteString getAssetTypeBytes()
       The type of the asset. Example: `compute.googleapis.com/Disk`
      
       See [Supported asset
       types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for more information.
       
      string asset_type = 2;
      Specified by:
      getAssetTypeBytes in interface AssetOrBuilder
      Returns:
      The bytes for assetType.
    • hasResource

      public boolean hasResource()
       A representation of the resource.
       
      .google.cloud.asset.v1.Resource resource = 3;
      Specified by:
      hasResource in interface AssetOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Resource getResource()
       A representation of the resource.
       
      .google.cloud.asset.v1.Resource resource = 3;
      Specified by:
      getResource in interface AssetOrBuilder
      Returns:
      The resource.
    • getResourceOrBuilder

      public ResourceOrBuilder getResourceOrBuilder()
       A representation of the resource.
       
      .google.cloud.asset.v1.Resource resource = 3;
      Specified by:
      getResourceOrBuilder in interface AssetOrBuilder
    • hasIamPolicy

      public boolean hasIamPolicy()
       A representation of the IAM policy set on a Google Cloud resource.
       There can be a maximum of one IAM policy set on any given resource.
       In addition, IAM policies inherit their granted access scope from any
       policies set on parent resources in the resource hierarchy. Therefore, the
       effectively policy is the union of both the policy set on this resource
       and each policy set on all of the resource's ancestry resource levels in
       the hierarchy. See
       [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
       for more information.
       
      .google.iam.v1.Policy iam_policy = 4;
      Specified by:
      hasIamPolicy in interface AssetOrBuilder
      Returns:
      Whether the iamPolicy field is set.
    • getIamPolicy

      public Policy getIamPolicy()
       A representation of the IAM policy set on a Google Cloud resource.
       There can be a maximum of one IAM policy set on any given resource.
       In addition, IAM policies inherit their granted access scope from any
       policies set on parent resources in the resource hierarchy. Therefore, the
       effectively policy is the union of both the policy set on this resource
       and each policy set on all of the resource's ancestry resource levels in
       the hierarchy. See
       [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
       for more information.
       
      .google.iam.v1.Policy iam_policy = 4;
      Specified by:
      getIamPolicy in interface AssetOrBuilder
      Returns:
      The iamPolicy.
    • getIamPolicyOrBuilder

      public PolicyOrBuilder getIamPolicyOrBuilder()
       A representation of the IAM policy set on a Google Cloud resource.
       There can be a maximum of one IAM policy set on any given resource.
       In addition, IAM policies inherit their granted access scope from any
       policies set on parent resources in the resource hierarchy. Therefore, the
       effectively policy is the union of both the policy set on this resource
       and each policy set on all of the resource's ancestry resource levels in
       the hierarchy. See
       [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
       for more information.
       
      .google.iam.v1.Policy iam_policy = 4;
      Specified by:
      getIamPolicyOrBuilder in interface AssetOrBuilder
    • getOrgPolicyList

      public List<Policy> getOrgPolicyList()
       A representation of an [organization
       policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
       There can be more than one organization policy with different constraints
       set on a given resource.
       
      repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
      Specified by:
      getOrgPolicyList in interface AssetOrBuilder
    • getOrgPolicyOrBuilderList

      public List<? extends PolicyOrBuilder> getOrgPolicyOrBuilderList()
       A representation of an [organization
       policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
       There can be more than one organization policy with different constraints
       set on a given resource.
       
      repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
      Specified by:
      getOrgPolicyOrBuilderList in interface AssetOrBuilder
    • getOrgPolicyCount

      public int getOrgPolicyCount()
       A representation of an [organization
       policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
       There can be more than one organization policy with different constraints
       set on a given resource.
       
      repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
      Specified by:
      getOrgPolicyCount in interface AssetOrBuilder
    • getOrgPolicy

      public Policy getOrgPolicy(int index)
       A representation of an [organization
       policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
       There can be more than one organization policy with different constraints
       set on a given resource.
       
      repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
      Specified by:
      getOrgPolicy in interface AssetOrBuilder
    • getOrgPolicyOrBuilder

      public PolicyOrBuilder getOrgPolicyOrBuilder(int index)
       A representation of an [organization
       policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
       There can be more than one organization policy with different constraints
       set on a given resource.
       
      repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
      Specified by:
      getOrgPolicyOrBuilder in interface AssetOrBuilder
    • hasAccessPolicy

      public boolean hasAccessPolicy()
       Also refer to the [access policy user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
       
      .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
      Specified by:
      hasAccessPolicy in interface AssetOrBuilder
      Returns:
      Whether the accessPolicy field is set.
    • getAccessPolicy

      public AccessPolicy getAccessPolicy()
       Also refer to the [access policy user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
       
      .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
      Specified by:
      getAccessPolicy in interface AssetOrBuilder
      Returns:
      The accessPolicy.
    • getAccessPolicyOrBuilder

      public AccessPolicyOrBuilder getAccessPolicyOrBuilder()
       Also refer to the [access policy user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
       
      .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
      Specified by:
      getAccessPolicyOrBuilder in interface AssetOrBuilder
    • hasAccessLevel

      public boolean hasAccessLevel()
       Also refer to the [access level user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
       
      .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
      Specified by:
      hasAccessLevel in interface AssetOrBuilder
      Returns:
      Whether the accessLevel field is set.
    • getAccessLevel

      public AccessLevel getAccessLevel()
       Also refer to the [access level user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
       
      .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
      Specified by:
      getAccessLevel in interface AssetOrBuilder
      Returns:
      The accessLevel.
    • getAccessLevelOrBuilder

      public AccessLevelOrBuilder getAccessLevelOrBuilder()
       Also refer to the [access level user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
       
      .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
      Specified by:
      getAccessLevelOrBuilder in interface AssetOrBuilder
    • hasServicePerimeter

      public boolean hasServicePerimeter()
       Also refer to the [service perimeter user
       guide](https://cloud.google.com/vpc-service-controls/docs/overview).
       
      .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
      Specified by:
      hasServicePerimeter in interface AssetOrBuilder
      Returns:
      Whether the servicePerimeter field is set.
    • getServicePerimeter

      public ServicePerimeter getServicePerimeter()
       Also refer to the [service perimeter user
       guide](https://cloud.google.com/vpc-service-controls/docs/overview).
       
      .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
      Specified by:
      getServicePerimeter in interface AssetOrBuilder
      Returns:
      The servicePerimeter.
    • getServicePerimeterOrBuilder

      public ServicePerimeterOrBuilder getServicePerimeterOrBuilder()
       Also refer to the [service perimeter user
       guide](https://cloud.google.com/vpc-service-controls/docs/overview).
       
      .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
      Specified by:
      getServicePerimeterOrBuilder in interface AssetOrBuilder
    • hasOsInventory

      public boolean hasOsInventory()
       A representation of runtime OS Inventory information. See [this
       topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
       for more information.
       
      .google.cloud.osconfig.v1.Inventory os_inventory = 12;
      Specified by:
      hasOsInventory in interface AssetOrBuilder
      Returns:
      Whether the osInventory field is set.
    • getOsInventory

      public Inventory getOsInventory()
       A representation of runtime OS Inventory information. See [this
       topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
       for more information.
       
      .google.cloud.osconfig.v1.Inventory os_inventory = 12;
      Specified by:
      getOsInventory in interface AssetOrBuilder
      Returns:
      The osInventory.
    • getOsInventoryOrBuilder

      public InventoryOrBuilder getOsInventoryOrBuilder()
       A representation of runtime OS Inventory information. See [this
       topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
       for more information.
       
      .google.cloud.osconfig.v1.Inventory os_inventory = 12;
      Specified by:
      getOsInventoryOrBuilder in interface AssetOrBuilder
    • hasRelatedAssets

      @Deprecated public boolean hasRelatedAssets()
      Deprecated.
      google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=177
       DEPRECATED. This field only presents for the purpose of
       backward-compatibility. The server will never generate responses with this
       field.
       The related assets of the asset of one relationship type. One asset
       only represents one type of relationship.
       
      .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
      Specified by:
      hasRelatedAssets in interface AssetOrBuilder
      Returns:
      Whether the relatedAssets field is set.
    • getRelatedAssets

      @Deprecated public RelatedAssets getRelatedAssets()
      Deprecated.
      google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=177
       DEPRECATED. This field only presents for the purpose of
       backward-compatibility. The server will never generate responses with this
       field.
       The related assets of the asset of one relationship type. One asset
       only represents one type of relationship.
       
      .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
      Specified by:
      getRelatedAssets in interface AssetOrBuilder
      Returns:
      The relatedAssets.
    • getRelatedAssetsOrBuilder

      @Deprecated public RelatedAssetsOrBuilder getRelatedAssetsOrBuilder()
      Deprecated.
       DEPRECATED. This field only presents for the purpose of
       backward-compatibility. The server will never generate responses with this
       field.
       The related assets of the asset of one relationship type. One asset
       only represents one type of relationship.
       
      .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
      Specified by:
      getRelatedAssetsOrBuilder in interface AssetOrBuilder
    • hasRelatedAsset

      public boolean hasRelatedAsset()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
      Specified by:
      hasRelatedAsset in interface AssetOrBuilder
      Returns:
      Whether the relatedAsset field is set.
    • getRelatedAsset

      public RelatedAsset getRelatedAsset()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
      Specified by:
      getRelatedAsset in interface AssetOrBuilder
      Returns:
      The relatedAsset.
    • getRelatedAssetOrBuilder

      public RelatedAssetOrBuilder getRelatedAssetOrBuilder()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
      Specified by:
      getRelatedAssetOrBuilder in interface AssetOrBuilder
    • getAncestorsList

      public com.google.protobuf.ProtocolStringList getAncestorsList()
       The ancestry path of an asset in Google Cloud [resource
       hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
       represented as a list of relative resource names. An ancestry path starts
       with the closest ancestor in the hierarchy and ends at root. If the asset
       is a project, folder, or organization, the ancestry path starts from the
       asset itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 10;
      Specified by:
      getAncestorsList in interface AssetOrBuilder
      Returns:
      A list containing the ancestors.
    • getAncestorsCount

      public int getAncestorsCount()
       The ancestry path of an asset in Google Cloud [resource
       hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
       represented as a list of relative resource names. An ancestry path starts
       with the closest ancestor in the hierarchy and ends at root. If the asset
       is a project, folder, or organization, the ancestry path starts from the
       asset itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 10;
      Specified by:
      getAncestorsCount in interface AssetOrBuilder
      Returns:
      The count of ancestors.
    • getAncestors

      public String getAncestors(int index)
       The ancestry path of an asset in Google Cloud [resource
       hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
       represented as a list of relative resource names. An ancestry path starts
       with the closest ancestor in the hierarchy and ends at root. If the asset
       is a project, folder, or organization, the ancestry path starts from the
       asset itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 10;
      Specified by:
      getAncestors in interface AssetOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ancestors at the given index.
    • getAncestorsBytes

      public com.google.protobuf.ByteString getAncestorsBytes(int index)
       The ancestry path of an asset in Google Cloud [resource
       hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
       represented as a list of relative resource names. An ancestry path starts
       with the closest ancestor in the hierarchy and ends at root. If the asset
       is a project, folder, or organization, the ancestry path starts from the
       asset itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 10;
      Specified by:
      getAncestorsBytes in interface AssetOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ancestors at the given index.
    • 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