Interface ResourceContextOrBuilder

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

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

    Modifier and Type
    Method
    Description
    getAncestors(int index)
    The ancestry path of the resource 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 the resource 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 ancestry path of the resource 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 ancestry path of the resource 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 asset type of the resource as defined by CAIS.
    com.google.protobuf.ByteString
    The asset type of the resource as defined by CAIS.
    The full name of the resource.
    com.google.protobuf.ByteString
    The full name of the resource.

    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

    • getResource

      String getResource()
       The full name of the resource. 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 resource = 1;
      Returns:
      The resource.
    • getResourceBytes

      com.google.protobuf.ByteString getResourceBytes()
       The full name of the resource. 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 resource = 1;
      Returns:
      The bytes for resource.
    • getAssetType

      String getAssetType()
       The asset type of the resource as defined by CAIS.
      
       Example: `compute.googleapis.com/Firewall`
      
       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 asset type of the resource as defined by CAIS.
      
       Example: `compute.googleapis.com/Firewall`
      
       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 ancestry path of the resource 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
       resource is a project, folder, or organization, the ancestry path starts
       from the resource itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 3;
      Returns:
      A list containing the ancestors.
    • getAncestorsCount

      int getAncestorsCount()
       The ancestry path of the resource 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
       resource is a project, folder, or organization, the ancestry path starts
       from the resource itself.
      
       Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
       
      repeated string ancestors = 3;
      Returns:
      The count of ancestors.
    • getAncestors

      String getAncestors(int index)
       The ancestry path of the resource 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
       resource is a project, folder, or organization, the ancestry path starts
       from the resource itself.
      
       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 ancestry path of the resource 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
       resource is a project, folder, or organization, the ancestry path starts
       from the resource itself.
      
       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.