public static final class Asset.Builder extends 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. Cloud IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.Protobuf type
google.cloud.asset.v1.Asset
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 com.google.cloud.orgpolicy.v1.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(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,
com.google.cloud.orgpolicy.v1.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,
com.google.cloud.orgpolicy.v1.Policy value)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
com.google.cloud.orgpolicy.v1.Policy.Builder |
addOrgPolicyBuilder()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
com.google.cloud.orgpolicy.v1.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(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(Descriptors.FieldDescriptor field) |
Asset.Builder |
clearIamPolicy()
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
Asset.Builder |
clearName()
The full name of the asset.
|
Asset.Builder |
clearOneof(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 |
clearOsInventory()
A representation of runtime OS Inventory information.
|
Asset.Builder |
clearRelatedAsset()
One related asset of the current asset.
|
Asset.Builder |
clearRelatedAssets()
Deprecated.
|
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 |
clearUpdateTime()
The last update timestamp of an asset.
|
Asset.Builder |
clone() |
Asset.AccessContextPolicyCase |
getAccessContextPolicyCase() |
com.google.identity.accesscontextmanager.v1.AccessLevel |
getAccessLevel()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
com.google.identity.accesscontextmanager.v1.AccessLevel.Builder |
getAccessLevelBuilder()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder |
getAccessLevelOrBuilder()
Please also refer to the [access level user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
com.google.identity.accesscontextmanager.v1.AccessPolicy |
getAccessPolicy()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder |
getAccessPolicyBuilder()
Please also refer to the [access policy user
guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
com.google.identity.accesscontextmanager.v1.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.
|
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.
|
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.
|
ByteString |
getAssetTypeBytes()
The type of the asset.
|
Asset |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
com.google.iam.v1.Policy |
getIamPolicy()
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
com.google.iam.v1.Policy.Builder |
getIamPolicyBuilder()
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
com.google.iam.v1.PolicyOrBuilder |
getIamPolicyOrBuilder()
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
String |
getName()
The full name of the asset.
|
ByteString |
getNameBytes()
The full name of the asset.
|
com.google.cloud.orgpolicy.v1.Policy |
getOrgPolicy(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
com.google.cloud.orgpolicy.v1.Policy.Builder |
getOrgPolicyBuilder(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
List<com.google.cloud.orgpolicy.v1.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<com.google.cloud.orgpolicy.v1.Policy> |
getOrgPolicyList()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
com.google.cloud.orgpolicy.v1.PolicyOrBuilder |
getOrgPolicyOrBuilder(int index)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
List<? extends com.google.cloud.orgpolicy.v1.PolicyOrBuilder> |
getOrgPolicyOrBuilderList()
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
com.google.cloud.osconfig.v1.Inventory |
getOsInventory()
A representation of runtime OS Inventory information.
|
com.google.cloud.osconfig.v1.Inventory.Builder |
getOsInventoryBuilder()
A representation of runtime OS Inventory information.
|
com.google.cloud.osconfig.v1.InventoryOrBuilder |
getOsInventoryOrBuilder()
A representation of runtime OS Inventory information.
|
RelatedAsset |
getRelatedAsset()
One related asset of the current asset.
|
RelatedAsset.Builder |
getRelatedAssetBuilder()
One related asset of the current asset.
|
RelatedAssetOrBuilder |
getRelatedAssetOrBuilder()
One related asset of the current asset.
|
RelatedAssets |
getRelatedAssets()
Deprecated.
google.cloud.asset.v1.Asset.related_assets is deprecated. See
google/cloud/asset/v1/assets.proto;l=166
|
RelatedAssets.Builder |
getRelatedAssetsBuilder()
Deprecated.
|
RelatedAssetsOrBuilder |
getRelatedAssetsOrBuilder()
Deprecated.
|
Resource |
getResource()
A representation of the resource.
|
Resource.Builder |
getResourceBuilder()
A representation of the resource.
|
ResourceOrBuilder |
getResourceOrBuilder()
A representation of the resource.
|
com.google.identity.accesscontextmanager.v1.ServicePerimeter |
getServicePerimeter()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder |
getServicePerimeterBuilder()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder |
getServicePerimeterOrBuilder()
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Timestamp |
getUpdateTime()
The last update timestamp of an asset.
|
Timestamp.Builder |
getUpdateTimeBuilder()
The last update timestamp of an asset.
|
TimestampOrBuilder |
getUpdateTimeOrBuilder()
The last update timestamp of an asset.
|
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 Cloud IAM policy set on a Google Cloud resource.
|
boolean |
hasOsInventory()
A representation of runtime OS Inventory information.
|
boolean |
hasRelatedAsset()
One related asset of the current asset.
|
boolean |
hasRelatedAssets()
Deprecated.
google.cloud.asset.v1.Asset.related_assets is deprecated. See
google/cloud/asset/v1/assets.proto;l=166
|
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).
|
boolean |
hasUpdateTime()
The last update timestamp of an asset.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Asset.Builder |
mergeAccessLevel(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Asset.Builder |
mergeFrom(Message other) |
Asset.Builder |
mergeIamPolicy(com.google.iam.v1.Policy value)
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
Asset.Builder |
mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value)
A representation of runtime OS Inventory information.
|
Asset.Builder |
mergeRelatedAsset(RelatedAsset value)
One related asset of the current asset.
|
Asset.Builder |
mergeRelatedAssets(RelatedAssets value)
Deprecated.
|
Asset.Builder |
mergeResource(Resource value)
A representation of the resource.
|
Asset.Builder |
mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Asset.Builder |
mergeUpdateTime(Timestamp value)
The last update timestamp of an asset.
|
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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(ByteString value)
The type of the asset.
|
Asset.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue)
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy value)
A representation of the Cloud IAM policy set on a Google Cloud resource.
|
Asset.Builder |
setName(String value)
The full name of the asset.
|
Asset.Builder |
setNameBytes(ByteString value)
The full name of the asset.
|
Asset.Builder |
setOrgPolicy(int index,
com.google.cloud.orgpolicy.v1.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,
com.google.cloud.orgpolicy.v1.Policy value)
A representation of an [organization
policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
|
Asset.Builder |
setOsInventory(com.google.cloud.osconfig.v1.Inventory.Builder builderForValue)
A representation of runtime OS Inventory information.
|
Asset.Builder |
setOsInventory(com.google.cloud.osconfig.v1.Inventory value)
A representation of runtime OS Inventory information.
|
Asset.Builder |
setRelatedAsset(RelatedAsset.Builder builderForValue)
One related asset of the current asset.
|
Asset.Builder |
setRelatedAsset(RelatedAsset value)
One related asset of the current asset.
|
Asset.Builder |
setRelatedAssets(RelatedAssets.Builder builderForValue)
Deprecated.
|
Asset.Builder |
setRelatedAssets(RelatedAssets value)
Deprecated.
|
Asset.Builder |
setRepeatedField(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(com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder builderForValue)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value)
Please also refer to the [service perimeter user
guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
Asset.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Asset.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
The last update timestamp of an asset.
|
Asset.Builder |
setUpdateTime(Timestamp value)
The last update timestamp of an asset.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Asset.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Asset build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Asset buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Asset.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Asset.Builder>
public Asset.Builder mergeFrom(Asset other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Asset.Builder>
IOException
public Asset.AccessContextPolicyCase getAccessContextPolicyCase()
getAccessContextPolicyCase
in interface AssetOrBuilder
public Asset.Builder clearAccessContextPolicy()
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;
hasUpdateTime
in interface AssetOrBuilder
public 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;
getUpdateTime
in interface AssetOrBuilder
public Asset.Builder setUpdateTime(Timestamp value)
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
public Asset.Builder setUpdateTime(Timestamp.Builder builderForValue)
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
public Asset.Builder mergeUpdateTime(Timestamp value)
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
public Asset.Builder clearUpdateTime()
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
public 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;
public 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;
getUpdateTimeOrBuilder
in interface AssetOrBuilder
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 AssetOrBuilder
public 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 AssetOrBuilder
public Asset.Builder setName(String value)
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string name = 1;
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(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 AssetOrBuilder
public 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 AssetOrBuilder
public Asset.Builder setAssetType(String value)
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
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(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.v1.Resource resource = 3;
hasResource
in interface AssetOrBuilder
public Resource getResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
getResource
in interface AssetOrBuilder
public Asset.Builder setResource(Resource value)
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
public Asset.Builder setResource(Resource.Builder builderForValue)
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
public Asset.Builder mergeResource(Resource value)
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
public Asset.Builder clearResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
public Resource.Builder getResourceBuilder()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
public ResourceOrBuilder getResourceOrBuilder()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
getResourceOrBuilder
in interface AssetOrBuilder
public boolean hasIamPolicy()
A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 AssetOrBuilder
public com.google.iam.v1.Policy getIamPolicy()
A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 AssetOrBuilder
public Asset.Builder setIamPolicy(com.google.iam.v1.Policy value)
A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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 AssetOrBuilder
public List<com.google.cloud.orgpolicy.v1.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 AssetOrBuilder
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;
getOrgPolicyCount
in interface AssetOrBuilder
public com.google.cloud.orgpolicy.v1.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 AssetOrBuilder
public Asset.Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.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, com.google.cloud.orgpolicy.v1.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(com.google.cloud.orgpolicy.v1.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, com.google.cloud.orgpolicy.v1.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(com.google.cloud.orgpolicy.v1.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, com.google.cloud.orgpolicy.v1.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 com.google.cloud.orgpolicy.v1.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 com.google.cloud.orgpolicy.v1.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 com.google.cloud.orgpolicy.v1.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 AssetOrBuilder
public List<? extends com.google.cloud.orgpolicy.v1.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 AssetOrBuilder
public com.google.cloud.orgpolicy.v1.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 com.google.cloud.orgpolicy.v1.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<com.google.cloud.orgpolicy.v1.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 AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
public Asset.Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
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;
hasAccessLevel
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
public Asset.Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
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;
hasServicePerimeter
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
public Asset.Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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(com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 com.google.identity.accesscontextmanager.v1.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 AssetOrBuilder
public boolean hasOsInventory()
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
hasOsInventory
in interface AssetOrBuilder
public com.google.cloud.osconfig.v1.Inventory getOsInventory()
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
getOsInventory
in interface AssetOrBuilder
public Asset.Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory value)
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
public Asset.Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory.Builder builderForValue)
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
public Asset.Builder mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value)
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
public Asset.Builder clearOsInventory()
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
public com.google.cloud.osconfig.v1.Inventory.Builder getOsInventoryBuilder()
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;
getOsInventoryOrBuilder
in interface AssetOrBuilder
@Deprecated public boolean hasRelatedAssets()
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
hasRelatedAssets
in interface AssetOrBuilder
@Deprecated public RelatedAssets getRelatedAssets()
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
getRelatedAssets
in interface AssetOrBuilder
@Deprecated public Asset.Builder setRelatedAssets(RelatedAssets value)
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
@Deprecated public Asset.Builder setRelatedAssets(RelatedAssets.Builder builderForValue)
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
@Deprecated public Asset.Builder mergeRelatedAssets(RelatedAssets value)
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
@Deprecated public Asset.Builder clearRelatedAssets()
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
@Deprecated public RelatedAssets.Builder getRelatedAssetsBuilder()
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
@Deprecated public RelatedAssetsOrBuilder getRelatedAssetsOrBuilder()
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
getRelatedAssetsOrBuilder
in interface AssetOrBuilder
public boolean hasRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
hasRelatedAsset
in interface AssetOrBuilder
public RelatedAsset getRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
getRelatedAsset
in interface AssetOrBuilder
public Asset.Builder setRelatedAsset(RelatedAsset value)
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
public Asset.Builder setRelatedAsset(RelatedAsset.Builder builderForValue)
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
public Asset.Builder mergeRelatedAsset(RelatedAsset value)
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
public Asset.Builder clearRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
public RelatedAsset.Builder getRelatedAssetBuilder()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
public RelatedAssetOrBuilder getRelatedAssetOrBuilder()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
getRelatedAssetOrBuilder
in interface AssetOrBuilder
public 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 AssetOrBuilder
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;
getAncestorsCount
in interface AssetOrBuilder
public String getAncestors(int index)
The ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 10;
getAncestors
in interface AssetOrBuilder
index
- The index of the element to return.public 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 AssetOrBuilder
index
- 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(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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Asset.Builder>
public final Asset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Asset.Builder>
Copyright © 2022 Google LLC. All rights reserved.