Interface AssetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Asset, Asset.Builder

@Generated public interface AssetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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.
    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.
    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.
    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.
    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).
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • hasUpdateTime

      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;
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      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;
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      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;
    • getName

      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;
      Returns:
      The name.
    • getNameBytes

      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;
      Returns:
      The bytes for name.
    • getAssetType

      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;
      Returns:
      The assetType.
    • getAssetTypeBytes

      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;
      Returns:
      The bytes for assetType.
    • hasResource

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

      Resource getResource()
       A representation of the resource.
       
      .google.cloud.asset.v1.Resource resource = 3;
      Returns:
      The resource.
    • getResourceOrBuilder

      ResourceOrBuilder getResourceOrBuilder()
       A representation of the resource.
       
      .google.cloud.asset.v1.Resource resource = 3;
    • hasIamPolicy

      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;
      Returns:
      Whether the iamPolicy field is set.
    • getIamPolicy

      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;
      Returns:
      The iamPolicy.
    • getIamPolicyOrBuilder

      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;
    • getOrgPolicyList

      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;
    • getOrgPolicy

      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;
    • getOrgPolicyCount

      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;
    • getOrgPolicyOrBuilderList

      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;
    • getOrgPolicyOrBuilder

      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;
    • hasAccessPolicy

      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;
      Returns:
      Whether the accessPolicy field is set.
    • getAccessPolicy

      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;
      Returns:
      The accessPolicy.
    • getAccessPolicyOrBuilder

      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;
    • hasAccessLevel

      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;
      Returns:
      Whether the accessLevel field is set.
    • getAccessLevel

      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;
      Returns:
      The accessLevel.
    • getAccessLevelOrBuilder

      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;
    • hasServicePerimeter

      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;
      Returns:
      Whether the servicePerimeter field is set.
    • getServicePerimeter

      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;
      Returns:
      The servicePerimeter.
    • getServicePerimeterOrBuilder

      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;
    • hasOsInventory

      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;
      Returns:
      Whether the osInventory field is set.
    • getOsInventory

      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;
      Returns:
      The osInventory.
    • getOsInventoryOrBuilder

      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;
    • hasRelatedAssets

      @Deprecated 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];
      Returns:
      Whether the relatedAssets field is set.
    • getRelatedAssets

      @Deprecated 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];
      Returns:
      The relatedAssets.
    • getRelatedAssetsOrBuilder

      @Deprecated 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];
    • hasRelatedAsset

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

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

      RelatedAssetOrBuilder getRelatedAssetOrBuilder()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • getAncestorsList

      List<String> 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;
      Returns:
      A list containing the ancestors.
    • getAncestorsCount

      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;
      Returns:
      The count of ancestors.
    • getAncestors

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The ancestors at the given index.
    • getAncestorsBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ancestors at the given index.
    • getAccessContextPolicyCase

      Asset.AccessContextPolicyCase getAccessContextPolicyCase()