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.v1.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),
 or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
 See [Supported asset
 types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
 for more information.
 
Protobuf type google.cloud.asset.v1.Asset
  • 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.v1.Resource resource = 3;
      Specified by:
      hasResource in interface AssetOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

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

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

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

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

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

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

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

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

      public Policy getIamPolicy()
       A representation of the IAM policy set on a Google Cloud resource.
       There can be a maximum of one IAM policy set on any given resource.
       In addition, IAM policies inherit their granted access scope from any
       policies set on parent resources in the resource hierarchy. Therefore, the
       effectively policy is the union of both the policy set on this resource
       and each policy set on all of the resource's ancestry resource levels in
       the hierarchy. See
       [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
       for more information.
       
      .google.iam.v1.Policy iam_policy = 4;
      Specified by:
      getIamPolicy in interface AssetOrBuilder
      Returns:
      The iamPolicy.
    • 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()
       Also refer to the [access policy user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
       
      .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
      Specified by:
      hasAccessPolicy in interface AssetOrBuilder
      Returns:
      Whether the accessPolicy field is set.
    • getAccessPolicy

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

      public Asset.Builder setAccessPolicy(AccessPolicy value)
       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)
       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)
       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()
       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()
       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()
       Also refer to the [access policy user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
       
      .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
      Specified by:
      getAccessPolicyOrBuilder in interface AssetOrBuilder
    • hasAccessLevel

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

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

      public Asset.Builder setAccessLevel(AccessLevel value)
       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)
       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)
       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()
       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()
       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()
       Also refer to the [access level user
       guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
       
      .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
      Specified by:
      getAccessLevelOrBuilder in interface AssetOrBuilder
    • hasServicePerimeter

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

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

      public Asset.Builder setServicePerimeter(ServicePerimeter value)
       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)
       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)
       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()
       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()
       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()
       Also refer to the [service perimeter user
       guide](https://cloud.google.com/vpc-service-controls/docs/overview).
       
      .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
      Specified by:
      getServicePerimeterOrBuilder in interface AssetOrBuilder
    • hasOsInventory

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

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

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

      public Asset.Builder setOsInventory(Inventory.Builder builderForValue)
       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;
    • mergeOsInventory

      public Asset.Builder mergeOsInventory(Inventory value)
       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;
    • clearOsInventory

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

      public Inventory.Builder getOsInventoryBuilder()
       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;
    • getOsInventoryOrBuilder

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

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

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

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

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

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

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

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

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

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

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

      public Asset.Builder setRelatedAsset(RelatedAsset value)
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • setRelatedAsset

      public Asset.Builder setRelatedAsset(RelatedAsset.Builder builderForValue)
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • mergeRelatedAsset

      public Asset.Builder mergeRelatedAsset(RelatedAsset value)
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • clearRelatedAsset

      public Asset.Builder clearRelatedAsset()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • getRelatedAssetBuilder

      public RelatedAsset.Builder getRelatedAssetBuilder()
       One related asset of the current asset.
       
      .google.cloud.asset.v1.RelatedAsset related_asset = 15;
    • getRelatedAssetOrBuilder

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

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

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

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

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