public interface AssetOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
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.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.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.
|
List<String> |
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.
|
com.google.iam.v1.Policy |
getIamPolicy()
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).
|
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.InventoryOrBuilder |
getOsInventoryOrBuilder()
A representation of runtime OS Inventory information.
|
RelatedAsset |
getRelatedAsset()
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
|
RelatedAssetsOrBuilder |
getRelatedAssetsOrBuilder()
Deprecated.
|
Resource |
getResource()
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.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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
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;
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;
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;
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;
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;
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;
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;
boolean hasResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
Resource getResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
ResourceOrBuilder getResourceOrBuilder()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
@Deprecated 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];
@Deprecated 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];
@Deprecated 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];
boolean hasRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
RelatedAsset getRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
RelatedAssetOrBuilder getRelatedAssetOrBuilder()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
List<String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.Asset.AccessContextPolicyCase getAccessContextPolicyCase()
Copyright © 2022 Google LLC. All rights reserved.