Interface RelatedAssetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RelatedAsset, RelatedAsset.Builder

@Generated public interface RelatedAssetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    int
    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.
    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.
    The full name of the asset.
    com.google.protobuf.ByteString
    The full name of the asset.
    The type of the asset.
    com.google.protobuf.ByteString
    The type of the asset.
    The unique identifier of the relationship type.
    com.google.protobuf.ByteString
    The unique identifier of the relationship type.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.