Package com.google.cloud.asset.v1p2beta1
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 Modifier and Type Method Description StringgetAncestors(int index)Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names.com.google.protobuf.ByteStringgetAncestorsBytes(int index)Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names.intgetAncestorsCount()Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names.List<String>getAncestorsList()Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names.StringgetAssetType()Type of the asset.com.google.protobuf.ByteStringgetAssetTypeBytes()Type of the asset.com.google.iam.v1.PolicygetIamPolicy()Representation of the actual Cloud IAM policy set on a cloud resource.com.google.iam.v1.PolicyOrBuildergetIamPolicyOrBuilder()Representation of the actual Cloud IAM policy set on a cloud resource.StringgetName()The full name of the asset.com.google.protobuf.ByteStringgetNameBytes()The full name of the asset.ResourcegetResource()Representation of the resource.ResourceOrBuildergetResourceOrBuilder()Representation of the resource.booleanhasIamPolicy()Representation of the actual Cloud IAM policy set on a cloud resource.booleanhasResource()Representation of the resource.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The full name of the asset. For 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. For 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()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;- Returns:
- The assetType.
-
getAssetTypeBytes
com.google.protobuf.ByteString getAssetTypeBytes()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;- Returns:
- The bytes for assetType.
-
hasResource
boolean hasResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;- Returns:
- Whether the resource field is set.
-
getResource
Resource getResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;- Returns:
- The resource.
-
getResourceOrBuilder
ResourceOrBuilder getResourceOrBuilder()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
-
hasIamPolicy
boolean hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;- Returns:
- Whether the iamPolicy field is set.
-
getIamPolicy
com.google.iam.v1.Policy getIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;- Returns:
- The iamPolicy.
-
getIamPolicyOrBuilder
com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
-
getAncestorsList
List<String> getAncestorsList()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;- Returns:
- A list containing the ancestors.
-
getAncestorsCount
int getAncestorsCount()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;- Returns:
- The count of ancestors.
-
getAncestors
String getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;- Parameters:
index- The index of the element to return.- Returns:
- The ancestors at the given index.
-
getAncestorsBytes
com.google.protobuf.ByteString getAncestorsBytes(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ancestors at the given index.
-
-