Class Asset.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
com.google.cloud.asset.v1p7beta1.Asset.Builder
All Implemented Interfaces:
AssetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Asset

public static final class Asset.Builder extends com.google.protobuf.GeneratedMessage.Builder<Asset.Builder> 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).
 See [Supported asset
 types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
 for more information.
 
Protobuf type google.cloud.asset.v1p7beta1.Asset
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    addAllOrgPolicy(Iterable<? extends Policy> values)
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    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.
    addAncestorsBytes(com.google.protobuf.ByteString value)
    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.
    addOrgPolicy(int index, Policy value)
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    addOrgPolicy(int index, Policy.Builder builderForValue)
    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).
    addOrgPolicy(Policy.Builder builderForValue)
    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).
     
     
     
     
    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).
    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.
    A representation of the IAM policy set on a Google Cloud resource.
    The full name of the asset.
    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.
    A representation of the resource.
    Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
     
    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 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).
    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.
    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 final com.google.protobuf.Descriptors.Descriptor
     
    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.
    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).
    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).
    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.
    The related assets of the asset of one relationship type.
    A representation of the resource.
    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).
    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.Timestamp.Builder
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    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).
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    A representation of the IAM policy set on a Google Cloud resource.
    The related assets of the asset of one relationship type.
    A representation of the resource.
    Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    mergeUpdateTime(com.google.protobuf.Timestamp value)
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
    removeOrgPolicy(int index)
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    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).
    setAncestors(int index, String value)
    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.
    setAssetTypeBytes(com.google.protobuf.ByteString value)
    The type of the asset.
    A representation of the IAM policy set on a Google Cloud resource.
    setIamPolicy(Policy.Builder builderForValue)
    A representation of the IAM policy set on a Google Cloud resource.
    setName(String value)
    The full name of the asset.
    setNameBytes(com.google.protobuf.ByteString value)
    The full name of the asset.
    setOrgPolicy(int index, Policy value)
    A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    setOrgPolicy(int index, Policy.Builder builderForValue)
    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.
    setResource(Resource.Builder builderForValue)
    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).
    setUpdateTime(com.google.protobuf.Timestamp value)
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
    setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Builder<Asset.Builder>
    • clear

      public Asset.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
    • getDefaultInstanceForType

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

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

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

      public Asset.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>
    • mergeFrom

      public Asset.Builder mergeFrom(Asset other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
    • mergeFrom

      public Asset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>
      Throws:
      IOException
    • getAccessContextPolicyCase

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

      public Asset.Builder clearAccessContextPolicy()
    • 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.
    • setUpdateTime

      public Asset.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
    • setUpdateTime

      public Asset.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
    • mergeUpdateTime

      public Asset.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
    • clearUpdateTime

      public Asset.Builder clearUpdateTime()
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The last update timestamp of an asset. update_time is updated when
       create/update/delete operation is performed.
       
      .google.protobuf.Timestamp update_time = 11;
    • 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.
    • setName

      public Asset.Builder setName(String value)
       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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Asset.Builder clearName()
       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:
      This builder for chaining.
    • setNameBytes

      public Asset.Builder setNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setAssetType

      public Asset.Builder setAssetType(String value)
       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;
      Parameters:
      value - The assetType to set.
      Returns:
      This builder for chaining.
    • clearAssetType

      public Asset.Builder clearAssetType()
       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:
      This builder for chaining.
    • setAssetTypeBytes

      public Asset.Builder setAssetTypeBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for assetType to set.
      Returns:
      This builder for chaining.
    • hasResource

      public boolean hasResource()
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.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.v1p7beta1.Resource resource = 3;
      Specified by:
      getResource in interface AssetOrBuilder
      Returns:
      The resource.
    • setResource

      public Asset.Builder setResource(Resource value)
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.Resource resource = 3;
    • setResource

      public Asset.Builder setResource(Resource.Builder builderForValue)
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.Resource resource = 3;
    • mergeResource

      public Asset.Builder mergeResource(Resource value)
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.Resource resource = 3;
    • clearResource

      public Asset.Builder clearResource()
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.Resource resource = 3;
    • getResourceBuilder

      public Resource.Builder getResourceBuilder()
       A representation of the resource.
       
      .google.cloud.asset.v1p7beta1.Resource resource = 3;
    • getResourceOrBuilder

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

      public Asset.Builder setIamPolicy(Policy value)
       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;
    • setIamPolicy

      public Asset.Builder setIamPolicy(Policy.Builder builderForValue)
       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;
    • mergeIamPolicy

      public Asset.Builder mergeIamPolicy(Policy value)
       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;
    • clearIamPolicy

      public Asset.Builder clearIamPolicy()
       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;
    • getIamPolicyBuilder

      public Policy.Builder getIamPolicyBuilder()
       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;
    • 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
    • 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
    • setOrgPolicy

      public Asset.Builder setOrgPolicy(int index, Policy value)
       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;
    • setOrgPolicy

      public Asset.Builder setOrgPolicy(int index, Policy.Builder builderForValue)
       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;
    • addOrgPolicy

      public Asset.Builder addOrgPolicy(Policy value)
       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;
    • addOrgPolicy

      public Asset.Builder addOrgPolicy(int index, Policy value)
       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;
    • addOrgPolicy

      public Asset.Builder addOrgPolicy(Policy.Builder builderForValue)
       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;
    • addOrgPolicy

      public Asset.Builder addOrgPolicy(int index, Policy.Builder builderForValue)
       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;
    • addAllOrgPolicy

      public Asset.Builder addAllOrgPolicy(Iterable<? extends Policy> values)
       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;
    • clearOrgPolicy

      public Asset.Builder clearOrgPolicy()
       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;
    • removeOrgPolicy

      public Asset.Builder removeOrgPolicy(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;
    • getOrgPolicyBuilder

      public Policy.Builder getOrgPolicyBuilder(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;
    • 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
    • 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
    • addOrgPolicyBuilder

      public Policy.Builder addOrgPolicyBuilder()
       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;
    • addOrgPolicyBuilder

      public Policy.Builder addOrgPolicyBuilder(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;
    • getOrgPolicyBuilderList

      public List<Policy.Builder> getOrgPolicyBuilderList()
       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

      public 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;
      Specified by:
      hasAccessPolicy in interface AssetOrBuilder
      Returns:
      Whether the accessPolicy field is set.
    • getAccessPolicy

      public 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;
      Specified by:
      getAccessPolicy in interface AssetOrBuilder
      Returns:
      The accessPolicy.
    • setAccessPolicy

      public Asset.Builder setAccessPolicy(AccessPolicy value)
       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;
    • setAccessPolicy

      public Asset.Builder setAccessPolicy(AccessPolicy.Builder builderForValue)
       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;
    • mergeAccessPolicy

      public Asset.Builder mergeAccessPolicy(AccessPolicy value)
       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;
    • clearAccessPolicy

      public Asset.Builder clearAccessPolicy()
       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;
    • getAccessPolicyBuilder

      public AccessPolicy.Builder getAccessPolicyBuilder()
       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;
    • getAccessPolicyOrBuilder

      public 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;
      Specified by:
      getAccessPolicyOrBuilder in interface AssetOrBuilder
    • hasAccessLevel

      public 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;
      Specified by:
      hasAccessLevel in interface AssetOrBuilder
      Returns:
      Whether the accessLevel field is set.
    • getAccessLevel

      public 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;
      Specified by:
      getAccessLevel in interface AssetOrBuilder
      Returns:
      The accessLevel.
    • setAccessLevel

      public Asset.Builder setAccessLevel(AccessLevel value)
       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;
    • setAccessLevel

      public Asset.Builder setAccessLevel(AccessLevel.Builder builderForValue)
       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;
    • mergeAccessLevel

      public Asset.Builder mergeAccessLevel(AccessLevel value)
       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;
    • clearAccessLevel

      public Asset.Builder clearAccessLevel()
       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;
    • getAccessLevelBuilder

      public AccessLevel.Builder getAccessLevelBuilder()
       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;
    • getAccessLevelOrBuilder

      public 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;
      Specified by:
      getAccessLevelOrBuilder in interface AssetOrBuilder
    • hasServicePerimeter

      public 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;
      Specified by:
      hasServicePerimeter in interface AssetOrBuilder
      Returns:
      Whether the servicePerimeter field is set.
    • getServicePerimeter

      public 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;
      Specified by:
      getServicePerimeter in interface AssetOrBuilder
      Returns:
      The servicePerimeter.
    • setServicePerimeter

      public Asset.Builder setServicePerimeter(ServicePerimeter value)
       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;
    • setServicePerimeter

      public Asset.Builder setServicePerimeter(ServicePerimeter.Builder builderForValue)
       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;
    • mergeServicePerimeter

      public Asset.Builder mergeServicePerimeter(ServicePerimeter value)
       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;
    • clearServicePerimeter

      public Asset.Builder clearServicePerimeter()
       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;
    • getServicePerimeterBuilder

      public ServicePerimeter.Builder getServicePerimeterBuilder()
       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;
    • getServicePerimeterOrBuilder

      public 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;
      Specified by:
      getServicePerimeterOrBuilder in interface AssetOrBuilder
    • hasRelatedAssets

      public 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;
      Specified by:
      hasRelatedAssets in interface AssetOrBuilder
      Returns:
      Whether the relatedAssets field is set.
    • getRelatedAssets

      public 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;
      Specified by:
      getRelatedAssets in interface AssetOrBuilder
      Returns:
      The relatedAssets.
    • setRelatedAssets

      public Asset.Builder setRelatedAssets(RelatedAssets value)
       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;
    • setRelatedAssets

      public Asset.Builder setRelatedAssets(RelatedAssets.Builder builderForValue)
       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;
    • mergeRelatedAssets

      public Asset.Builder mergeRelatedAssets(RelatedAssets value)
       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;
    • clearRelatedAssets

      public Asset.Builder clearRelatedAssets()
       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;
    • getRelatedAssetsBuilder

      public RelatedAssets.Builder getRelatedAssetsBuilder()
       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;
    • getRelatedAssetsOrBuilder

      public 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;
      Specified by:
      getRelatedAssetsOrBuilder 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.
    • setAncestors

      public Asset.Builder setAncestors(int index, String value)
       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 to set the value at.
      value - The ancestors to set.
      Returns:
      This builder for chaining.
    • addAncestors

      public Asset.Builder addAncestors(String value)
       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:
      value - The ancestors to add.
      Returns:
      This builder for chaining.
    • addAllAncestors

      public Asset.Builder addAllAncestors(Iterable<String> values)
       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:
      values - The ancestors to add.
      Returns:
      This builder for chaining.
    • clearAncestors

      public Asset.Builder clearAncestors()
       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:
      This builder for chaining.
    • addAncestorsBytes

      public Asset.Builder addAncestorsBytes(com.google.protobuf.ByteString value)
       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:
      value - The bytes of the ancestors to add.
      Returns:
      This builder for chaining.