Package com.google.cloud.asset.v1p7beta1
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 TypeMethodDescriptionaddAllAncestors(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.addAllOrgPolicy(Iterable<? extends Policy> values) A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).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.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).addOrgPolicy(Policy value) 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).addOrgPolicyBuilder(int index) A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).build()clear()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.ByteStringgetAncestorsBytes(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.intThe 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.ProtocolStringListThe 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.ByteStringThe type of the asset.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA 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.getName()The full name of the asset.com.google.protobuf.ByteStringThe 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).getOrgPolicyBuilder(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).intA 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).getOrgPolicyOrBuilder(int index) A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).List<? extends PolicyOrBuilder>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.TimestampThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.com.google.protobuf.Timestamp.BuilderThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.com.google.protobuf.TimestampOrBuilderThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.booleanPlease also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).booleanPlease also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).booleanA representation of the IAM policy set on a Google Cloud resource.booleanThe related assets of the asset of one relationship type.booleanA representation of the resource.booleanPlease also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).booleanThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAccessLevel(AccessLevel value) Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).mergeAccessPolicy(AccessPolicy value) 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) mergeIamPolicy(Policy value) A representation of the IAM policy set on a Google Cloud resource.mergeRelatedAssets(RelatedAssets value) The related assets of the asset of one relationship type.mergeResource(Resource value) 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).setAccessLevel(AccessLevel value) Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).setAccessLevel(AccessLevel.Builder builderForValue) Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).setAccessPolicy(AccessPolicy value) Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).setAccessPolicy(AccessPolicy.Builder builderForValue) 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.setAssetType(String value) The type of the asset.setAssetTypeBytes(com.google.protobuf.ByteString value) The type of the asset.setIamPolicy(Policy value) 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.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).setRelatedAssets(RelatedAssets value) The related assets of the asset of one relationship type.setRelatedAssets(RelatedAssets.Builder builderForValue) The related assets of the asset of one relationship type.setResource(Resource value) 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).setServicePerimeter(ServicePerimeter.Builder builderForValue) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>- Throws:
IOException
-
getAccessContextPolicyCase
- Specified by:
getAccessContextPolicyCasein interfaceAssetOrBuilder
-
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:
hasUpdateTimein interfaceAssetOrBuilder- 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:
getUpdateTimein interfaceAssetOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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
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
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
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:
getUpdateTimeOrBuilderin interfaceAssetOrBuilder
-
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:
getNamein interfaceAssetOrBuilder- 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:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
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:
getAssetTypein interfaceAssetOrBuilder- 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:
getAssetTypeBytesin interfaceAssetOrBuilder- Returns:
- The bytes for assetType.
-
setAssetType
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
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
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:
hasResourcein interfaceAssetOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3;- Specified by:
getResourcein interfaceAssetOrBuilder- Returns:
- The resource.
-
setResource
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3; -
setResource
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3; -
mergeResource
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3; -
clearResource
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3; -
getResourceBuilder
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3; -
getResourceOrBuilder
A representation of the resource.
.google.cloud.asset.v1p7beta1.Resource resource = 3;- Specified by:
getResourceOrBuilderin interfaceAssetOrBuilder
-
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:
hasIamPolicyin interfaceAssetOrBuilder- Returns:
- Whether the iamPolicy field is set.
-
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:
getIamPolicyin interfaceAssetOrBuilder- Returns:
- The iamPolicy.
-
setIamPolicy
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
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
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
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
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
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:
getIamPolicyOrBuilderin interfaceAssetOrBuilder
-
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:
getOrgPolicyListin interfaceAssetOrBuilder
-
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:
getOrgPolicyCountin interfaceAssetOrBuilder
-
getOrgPolicy
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:
getOrgPolicyin interfaceAssetOrBuilder
-
setOrgPolicy
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
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
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
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
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
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
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
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
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
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
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:
getOrgPolicyOrBuilderin interfaceAssetOrBuilder
-
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:
getOrgPolicyOrBuilderListin interfaceAssetOrBuilder
-
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
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
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:
hasAccessPolicyin interfaceAssetOrBuilder- Returns:
- Whether the accessPolicy field is set.
-
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:
getAccessPolicyin interfaceAssetOrBuilder- Returns:
- The accessPolicy.
-
setAccessPolicy
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
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
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
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
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
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:
getAccessPolicyOrBuilderin interfaceAssetOrBuilder
-
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:
hasAccessLevelin interfaceAssetOrBuilder- Returns:
- Whether the accessLevel field is set.
-
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:
getAccessLevelin interfaceAssetOrBuilder- Returns:
- The accessLevel.
-
setAccessLevel
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
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
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
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
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
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:
getAccessLevelOrBuilderin interfaceAssetOrBuilder
-
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:
hasServicePerimeterin interfaceAssetOrBuilder- Returns:
- Whether the servicePerimeter field is set.
-
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:
getServicePerimeterin interfaceAssetOrBuilder- Returns:
- The servicePerimeter.
-
setServicePerimeter
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
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
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
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
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
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:
getServicePerimeterOrBuilderin interfaceAssetOrBuilder
-
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:
hasRelatedAssetsin interfaceAssetOrBuilder- Returns:
- Whether the relatedAssets field is set.
-
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:
getRelatedAssetsin interfaceAssetOrBuilder- Returns:
- The relatedAssets.
-
setRelatedAssets
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
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
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
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
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
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:
getRelatedAssetsOrBuilderin interfaceAssetOrBuilder
-
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:
getAncestorsListin interfaceAssetOrBuilder- 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:
getAncestorsCountin interfaceAssetOrBuilder- Returns:
- The count of ancestors.
-
getAncestors
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:
getAncestorsin interfaceAssetOrBuilder- 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:
getAncestorsBytesin interfaceAssetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ancestors at the given index.
-
setAncestors
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
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
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
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
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.
-