public static final class Asset.Builder extends com.google.protobuf.GeneratedMessageV3.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.v1p5beta1.Asset| Modifier and Type | Method and Description |
|---|---|
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.
|
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).
|
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.
|
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.
|
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).
|
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).
|
Asset.Builder |
addOrgPolicy(Policy.Builder builderForValue)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
addOrgPolicy(Policy value)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Policy.Builder |
addOrgPolicyBuilder()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Policy.Builder |
addOrgPolicyBuilder(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Asset |
build() |
Asset |
buildPartial() |
Asset.Builder |
clear() |
Asset.Builder |
clearAccessContextPolicy() |
Asset.Builder |
clearAccessLevel()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
Asset.Builder |
clearAccessPolicy()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
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.
|
Asset.Builder |
clearAssetType()
The type of the asset.
|
Asset.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Asset.Builder |
clearIamPolicy()
A representation of the IAM policy set on a Google Cloud resource.
|
Asset.Builder |
clearName()
The full name of the asset.
|
Asset.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Asset.Builder |
clearOrgPolicy()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
clearResource()
A representation of the resource.
|
Asset.Builder |
clearServicePerimeter()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
clone() |
Asset.AccessContextPolicyCase |
getAccessContextPolicyCase() |
AccessLevel |
getAccessLevel()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
AccessLevel.Builder |
getAccessLevelBuilder()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
AccessLevelOrBuilder |
getAccessLevelOrBuilder()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
AccessPolicy |
getAccessPolicy()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
AccessPolicy.Builder |
getAccessPolicyBuilder()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
AccessPolicyOrBuilder |
getAccessPolicyOrBuilder()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
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.
|
com.google.protobuf.ByteString |
getAncestorsBytes(int index)
The ancestry path of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
int |
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.
|
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.
|
String |
getAssetType()
The type of the asset.
|
com.google.protobuf.ByteString |
getAssetTypeBytes()
The type of the asset.
|
Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.iam.v1.Policy |
getIamPolicy()
A representation of the IAM policy set on a Google Cloud resource.
|
com.google.iam.v1.Policy.Builder |
getIamPolicyBuilder()
A representation of the IAM policy set on a Google Cloud resource.
|
com.google.iam.v1.PolicyOrBuilder |
getIamPolicyOrBuilder()
A representation of the IAM policy set on a Google Cloud resource.
|
String |
getName()
The full name of the asset.
|
com.google.protobuf.ByteString |
getNameBytes()
The full name of the asset.
|
Policy |
getOrgPolicy(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Policy.Builder |
getOrgPolicyBuilder(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
List<Policy.Builder> |
getOrgPolicyBuilderList()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
int |
getOrgPolicyCount()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
List<Policy> |
getOrgPolicyList()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
PolicyOrBuilder |
getOrgPolicyOrBuilder(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
List<? extends PolicyOrBuilder> |
getOrgPolicyOrBuilderList()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Resource |
getResource()
A representation of the resource.
|
Resource.Builder |
getResourceBuilder()
A representation of the resource.
|
ResourceOrBuilder |
getResourceOrBuilder()
A representation of the resource.
|
ServicePerimeter |
getServicePerimeter()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
ServicePerimeter.Builder |
getServicePerimeterBuilder()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
ServicePerimeterOrBuilder |
getServicePerimeterOrBuilder()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
boolean |
hasAccessLevel()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
boolean |
hasAccessPolicy()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
boolean |
hasIamPolicy()
A representation of the IAM policy set on a Google Cloud resource.
|
boolean |
hasResource()
A representation of the resource.
|
boolean |
hasServicePerimeter()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Asset.Builder |
mergeAccessLevel(AccessLevel value)
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
Asset.Builder |
mergeAccessPolicy(AccessPolicy value)
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
Asset.Builder |
mergeFrom(Asset other) |
Asset.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Asset.Builder |
mergeFrom(com.google.protobuf.Message other) |
Asset.Builder |
mergeIamPolicy(com.google.iam.v1.Policy value)
A representation of the IAM policy set on a Google Cloud resource.
|
Asset.Builder |
mergeResource(Resource value)
A representation of the resource.
|
Asset.Builder |
mergeServicePerimeter(ServicePerimeter value)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Asset.Builder |
removeOrgPolicy(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
setAccessLevel(AccessLevel.Builder builderForValue)
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
Asset.Builder |
setAccessLevel(AccessLevel value)
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
Asset.Builder |
setAccessPolicy(AccessPolicy.Builder builderForValue)
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
Asset.Builder |
setAccessPolicy(AccessPolicy value)
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
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.
|
Asset.Builder |
setAssetType(String value)
The type of the asset.
|
Asset.Builder |
setAssetTypeBytes(com.google.protobuf.ByteString value)
The type of the asset.
|
Asset.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue)
A representation of the IAM policy set on a Google Cloud resource.
|
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy value)
A representation of the IAM policy set on a Google Cloud resource.
|
Asset.Builder |
setName(String value)
The full name of the asset.
|
Asset.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full name of the asset.
|
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).
|
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).
|
Asset.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Asset.Builder |
setResource(Resource.Builder builderForValue)
A representation of the resource.
|
Asset.Builder |
setResource(Resource value)
A representation of the resource.
|
Asset.Builder |
setServicePerimeter(ServicePerimeter.Builder builderForValue)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
setServicePerimeter(ServicePerimeter value)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Asset build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Asset buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Asset.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>public Asset.Builder mergeFrom(Asset other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>IOExceptionpublic Asset.AccessContextPolicyCase getAccessContextPolicyCase()
getAccessContextPolicyCase in interface AssetOrBuilderpublic Asset.Builder clearAccessContextPolicy()
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;getName in interface AssetOrBuilderpublic 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;getNameBytes in interface AssetOrBuilderpublic 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;value - The name to set.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;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;value - The bytes for name to set.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;getAssetType in interface AssetOrBuilderpublic 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;getAssetTypeBytes in interface AssetOrBuilderpublic 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;value - The assetType to set.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;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;value - The bytes for assetType to set.public boolean hasResource()
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;hasResource in interface AssetOrBuilderpublic Resource getResource()
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;getResource in interface AssetOrBuilderpublic Asset.Builder setResource(Resource value)
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;public Asset.Builder setResource(Resource.Builder builderForValue)
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;public Asset.Builder mergeResource(Resource value)
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;public Asset.Builder clearResource()
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;public Resource.Builder getResourceBuilder()
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;public ResourceOrBuilder getResourceOrBuilder()
A representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;getResourceOrBuilder in interface AssetOrBuilderpublic 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;hasIamPolicy in interface AssetOrBuilderpublic com.google.iam.v1.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;getIamPolicy in interface AssetOrBuilderpublic Asset.Builder setIamPolicy(com.google.iam.v1.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;public Asset.Builder setIamPolicy(com.google.iam.v1.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;public Asset.Builder mergeIamPolicy(com.google.iam.v1.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;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;public com.google.iam.v1.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;public com.google.iam.v1.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;getIamPolicyOrBuilder in interface AssetOrBuilderpublic 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;getOrgPolicyList in interface AssetOrBuilderpublic 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;getOrgPolicyCount in interface AssetOrBuilderpublic 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;getOrgPolicy in interface AssetOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getOrgPolicyOrBuilder in interface AssetOrBuilderpublic 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;getOrgPolicyOrBuilderList in interface AssetOrBuilderpublic 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;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;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;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;hasAccessPolicy in interface AssetOrBuilderpublic AccessPolicy getAccessPolicy()
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;getAccessPolicy in interface AssetOrBuilderpublic Asset.Builder setAccessPolicy(AccessPolicy value)
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;public Asset.Builder setAccessPolicy(AccessPolicy.Builder builderForValue)
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;public Asset.Builder mergeAccessPolicy(AccessPolicy value)
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;public Asset.Builder clearAccessPolicy()
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;public AccessPolicy.Builder getAccessPolicyBuilder()
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;public AccessPolicyOrBuilder getAccessPolicyOrBuilder()
Please also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;getAccessPolicyOrBuilder in interface AssetOrBuilderpublic 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;hasAccessLevel in interface AssetOrBuilderpublic AccessLevel getAccessLevel()
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;getAccessLevel in interface AssetOrBuilderpublic Asset.Builder setAccessLevel(AccessLevel value)
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;public Asset.Builder setAccessLevel(AccessLevel.Builder builderForValue)
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;public Asset.Builder mergeAccessLevel(AccessLevel value)
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;public Asset.Builder clearAccessLevel()
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;public AccessLevel.Builder getAccessLevelBuilder()
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;public AccessLevelOrBuilder getAccessLevelOrBuilder()
Please also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;getAccessLevelOrBuilder in interface AssetOrBuilderpublic 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;hasServicePerimeter in interface AssetOrBuilderpublic ServicePerimeter getServicePerimeter()
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;getServicePerimeter in interface AssetOrBuilderpublic Asset.Builder setServicePerimeter(ServicePerimeter value)
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;public Asset.Builder setServicePerimeter(ServicePerimeter.Builder builderForValue)
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;public Asset.Builder mergeServicePerimeter(ServicePerimeter value)
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;public Asset.Builder clearServicePerimeter()
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;public ServicePerimeter.Builder getServicePerimeterBuilder()
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;public ServicePerimeterOrBuilder getServicePerimeterOrBuilder()
Please also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;getServicePerimeterOrBuilder in interface AssetOrBuilderpublic 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;getAncestorsList in interface AssetOrBuilderpublic 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;getAncestorsCount in interface AssetOrBuilderpublic 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;getAncestors in interface AssetOrBuilderindex - The index of the element to return.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;getAncestorsBytes in interface AssetOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The ancestors to set.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;value - The ancestors to add.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;values - The ancestors to add.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;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;value - The bytes of the ancestors to add.public final Asset.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public final Asset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>Copyright © 2024 Google LLC. All rights reserved.