public interface ResourceContextOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAncestors(int index)
public abstract String getAncestors(int index)
The ancestry path of the resource in Google Cloud 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The ancestors at the given index. |
getAncestorsBytes(int index)
public abstract ByteString getAncestorsBytes(int index)
The ancestry path of the resource in Google Cloud 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the ancestors at the given index. |
getAncestorsCount()
public abstract int getAncestorsCount()
The ancestry path of the resource in Google Cloud 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 | |
---|---|
Type | Description |
int |
The count of ancestors. |
getAncestorsList()
public abstract List<String> getAncestorsList()
The ancestry path of the resource in Google Cloud 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 | |
---|---|
Type | Description |
List<String> |
A list containing the ancestors. |
getAssetType()
public abstract String getAssetType()
The asset type of the resource as defined by CAIS.
Example: compute.googleapis.com/Firewall
See Supported asset types for more information.
string asset_type = 2;
Returns | |
---|---|
Type | Description |
String |
The assetType. |
getAssetTypeBytes()
public abstract ByteString getAssetTypeBytes()
The asset type of the resource as defined by CAIS.
Example: compute.googleapis.com/Firewall
See Supported asset types for more information.
string asset_type = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for assetType. |
getResource()
public abstract String getResource()
The full name of the resource. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
string resource = 1;
Returns | |
---|---|
Type | Description |
String |
The resource. |
getResourceBytes()
public abstract ByteString getResourceBytes()
The full name of the resource. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
string resource = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for resource. |