Package com.google.cloud.asset.v1
Interface RelatedAssetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RelatedAsset,RelatedAsset.Builder
public interface RelatedAssetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAncestors(int index)The ancestors 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.ByteStringgetAncestorsBytes(int index)The ancestors 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.intgetAncestorsCount()The ancestors 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 ancestors 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.StringgetAsset()The full name of the asset.com.google.protobuf.ByteStringgetAssetBytes()The full name of the asset.StringgetAssetType()The type of the asset.com.google.protobuf.ByteStringgetAssetTypeBytes()The type of the asset.StringgetRelationshipType()The unique identifier of the relationship type.com.google.protobuf.ByteStringgetRelationshipTypeBytes()The unique identifier of the relationship type.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getAsset
String getAsset()
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 asset = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The asset.
-
getAssetBytes
com.google.protobuf.ByteString getAssetBytes()
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 asset = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for asset.
-
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.
-
getAncestorsList
List<String> getAncestorsList()
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;- Returns:
- A list containing the ancestors.
-
getAncestorsCount
int getAncestorsCount()
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;- Returns:
- The count of ancestors.
-
getAncestors
String getAncestors(int index)
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;- 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 ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ancestors at the given index.
-
getRelationshipType
String getRelationshipType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;- Returns:
- The relationshipType.
-
getRelationshipTypeBytes
com.google.protobuf.ByteString getRelationshipTypeBytes()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;- Returns:
- The bytes for relationshipType.
-
-