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
     
    Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    Please 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).
    The related assets of the asset of one relationship type.
    The related assets of the asset of one relationship type.
    A representation of the resource.
    A representation of the resource.
    Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    Please 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
    Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    boolean
    Please 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
    The related assets of the asset of one relationship type.
    boolean
    A representation of the resource.
    boolean
    Please 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.v1p7beta1.Resource resource = 3;
      Returns:
      Whether the resource field is set.
    • getResource

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

      ResourceOrBuilder getResourceOrBuilder()
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.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()
       Please 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()
       Please 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()
       Please 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()
       Please 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()
       Please 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()
       Please 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()
       Please 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()
       Please 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()
       Please 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;
    • hasRelatedAssets

      boolean hasRelatedAssets()
       The related assets of the asset of one relationship type.
       One asset only represents one type of relationship.
       
      .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
      Returns:
      Whether the relatedAssets field is set.
    • getRelatedAssets

      RelatedAssets getRelatedAssets()
       The related assets of the asset of one relationship type.
       One asset only represents one type of relationship.
       
      .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
      Returns:
      The relatedAssets.
    • getRelatedAssetsOrBuilder

      RelatedAssetsOrBuilder getRelatedAssetsOrBuilder()
       The related assets of the asset of one relationship type.
       One asset only represents one type of relationship.
       
      .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
    • 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()