Package com.google.cloud.asset.v1
Interface AssetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Asset
,Asset.Builder
public interface AssetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.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.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.com.google.protobuf.ByteString
getAssetTypeBytes()
The type of the asset.com.google.iam.v1.Policy
getIamPolicy()
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.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.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).com.google.protobuf.Timestamp
getUpdateTime()
The last update timestamp of an asset.com.google.protobuf.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 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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasUpdateTime
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;
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;
-
getName
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;
- Returns:
- The name.
-
getNameBytes
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;
- Returns:
- The bytes for name.
-
getAssetType
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;
- Returns:
- The assetType.
-
getAssetTypeBytes
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;
- Returns:
- The bytes for assetType.
-
hasResource
boolean hasResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
- Returns:
- Whether the resource field is set.
-
getResource
Resource getResource()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
- Returns:
- The resource.
-
getResourceOrBuilder
ResourceOrBuilder getResourceOrBuilder()
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;
-
hasIamPolicy
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;
- Returns:
- Whether the iamPolicy field is set.
-
getIamPolicy
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;
- Returns:
- The iamPolicy.
-
getIamPolicyOrBuilder
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;
-
getOrgPolicyList
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;
-
getOrgPolicy
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;
-
getOrgPolicyCount
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;
-
getOrgPolicyOrBuilderList
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;
-
getOrgPolicyOrBuilder
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;
-
hasAccessPolicy
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;
- Returns:
- Whether the accessPolicy field is set.
-
getAccessPolicy
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;
- Returns:
- The accessPolicy.
-
getAccessPolicyOrBuilder
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;
-
hasAccessLevel
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;
- Returns:
- Whether the accessLevel field is set.
-
getAccessLevel
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;
- Returns:
- The accessLevel.
-
getAccessLevelOrBuilder
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;
-
hasServicePerimeter
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;
- Returns:
- Whether the servicePerimeter field is set.
-
getServicePerimeter
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;
- Returns:
- The servicePerimeter.
-
getServicePerimeterOrBuilder
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;
-
hasOsInventory
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;
- Returns:
- Whether the osInventory field is set.
-
getOsInventory
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;
- Returns:
- The osInventory.
-
getOsInventoryOrBuilder
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;
-
hasRelatedAssets
@Deprecated boolean hasRelatedAssets()
Deprecated.google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=167DEPRECATED. 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];
- Returns:
- Whether the relatedAssets field is set.
-
getRelatedAssets
@Deprecated RelatedAssets getRelatedAssets()
Deprecated.google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=167DEPRECATED. 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];
- Returns:
- The relatedAssets.
-
getRelatedAssetsOrBuilder
@Deprecated RelatedAssetsOrBuilder getRelatedAssetsOrBuilder()
Deprecated.DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
-
hasRelatedAsset
boolean hasRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
- Returns:
- Whether the relatedAsset field is set.
-
getRelatedAsset
RelatedAsset getRelatedAsset()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
- Returns:
- The relatedAsset.
-
getRelatedAssetOrBuilder
RelatedAssetOrBuilder getRelatedAssetOrBuilder()
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;
-
getAncestorsList
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;
- Returns:
- A list containing the ancestors.
-
getAncestorsCount
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;
- Returns:
- The count of ancestors.
-
getAncestors
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The ancestors at the given index.
-
getAncestorsBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ancestors at the given index.
-
getAccessContextPolicyCase
Asset.AccessContextPolicyCase getAccessContextPolicyCase()
-
-