Package com.google.cloud.asset.v1
Class Asset
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1.Asset
- All Implemented Interfaces:
AssetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Asset
extends com.google.protobuf.GeneratedMessage
implements AssetOrBuilder
An asset in Google Cloud. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.Protobuf type
google.cloud.asset.v1.Asset- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classAn asset in Google Cloud.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAlso refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).getAncestors(int index) The ancestry path 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 ancestry path 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.intThe ancestry path 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.ProtocolStringListThe ancestry path 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 type of the asset.com.google.protobuf.ByteStringThe type of the asset.static Assetstatic final com.google.protobuf.Descriptors.DescriptorA representation of the IAM policy set on a Google Cloud resource.A representation of the IAM policy set on a Google Cloud resource.getName()The full name of the asset.com.google.protobuf.ByteStringThe full name of the asset.getOrgPolicy(int index) A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).intA representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).getOrgPolicyOrBuilder(int index) A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).List<? extends PolicyOrBuilder>A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).A representation of runtime OS Inventory information.A representation of runtime OS Inventory information.com.google.protobuf.Parser<Asset>One related asset of the current asset.One related asset of the current asset.Deprecated.google.cloud.asset.v1.Asset.related_assets is deprecated.Deprecated.A representation of the resource.A representation of the resource.intAlso refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).com.google.protobuf.TimestampThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.com.google.protobuf.TimestampOrBuilderThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.booleanAlso refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).booleanAlso refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).inthashCode()booleanA representation of the IAM policy set on a Google Cloud resource.booleanA representation of runtime OS Inventory information.booleanOne related asset of the current asset.booleanDeprecated.google.cloud.asset.v1.Asset.related_assets is deprecated.booleanA representation of the resource.booleanAlso refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).booleanThe last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Asset.Builderstatic Asset.BuildernewBuilder(Asset prototype) protected Asset.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AssetparseDelimitedFrom(InputStream input) static AssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(byte[] data) static AssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.ByteString data) static AssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.CodedInputStream input) static AssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(InputStream input) static AssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(ByteBuffer data) static AssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Asset>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ASSET_TYPE_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
IAM_POLICY_FIELD_NUMBER
public static final int IAM_POLICY_FIELD_NUMBER- See Also:
-
ORG_POLICY_FIELD_NUMBER
public static final int ORG_POLICY_FIELD_NUMBER- See Also:
-
ACCESS_POLICY_FIELD_NUMBER
public static final int ACCESS_POLICY_FIELD_NUMBER- See Also:
-
ACCESS_LEVEL_FIELD_NUMBER
public static final int ACCESS_LEVEL_FIELD_NUMBER- See Also:
-
SERVICE_PERIMETER_FIELD_NUMBER
public static final int SERVICE_PERIMETER_FIELD_NUMBER- See Also:
-
OS_INVENTORY_FIELD_NUMBER
public static final int OS_INVENTORY_FIELD_NUMBER- See Also:
-
RELATED_ASSETS_FIELD_NUMBER
public static final int RELATED_ASSETS_FIELD_NUMBER- See Also:
-
RELATED_ASSET_FIELD_NUMBER
public static final int RELATED_ASSET_FIELD_NUMBER- See Also:
-
ANCESTORS_FIELD_NUMBER
public static final int ANCESTORS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAccessContextPolicyCase
- Specified by:
getAccessContextPolicyCasein interfaceAssetOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;- Specified by:
hasUpdateTimein interfaceAssetOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;- Specified by:
getUpdateTimein interfaceAssetOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
.google.protobuf.Timestamp update_time = 11;- Specified by:
getUpdateTimeOrBuilderin interfaceAssetOrBuilder
-
getName
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 name = 1;- Specified by:
getNamein interfaceAssetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()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 name = 1;- Specified by:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
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;- Specified by:
getAssetTypein interfaceAssetOrBuilder- Returns:
- The assetType.
-
getAssetTypeBytes
public 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;- Specified by:
getAssetTypeBytesin interfaceAssetOrBuilder- Returns:
- The bytes for assetType.
-
hasResource
public boolean hasResource()A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;- Specified by:
hasResourcein interfaceAssetOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;- Specified by:
getResourcein interfaceAssetOrBuilder- Returns:
- The resource.
-
getResourceOrBuilder
A representation of the resource.
.google.cloud.asset.v1.Resource resource = 3;- Specified by:
getResourceOrBuilderin interfaceAssetOrBuilder
-
hasIamPolicy
public boolean hasIamPolicy()A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for more information.
.google.iam.v1.Policy iam_policy = 4;- Specified by:
hasIamPolicyin interfaceAssetOrBuilder- Returns:
- Whether the iamPolicy field is set.
-
getIamPolicy
A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for more information.
.google.iam.v1.Policy iam_policy = 4;- Specified by:
getIamPolicyin interfaceAssetOrBuilder- Returns:
- The iamPolicy.
-
getIamPolicyOrBuilder
A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for more information.
.google.iam.v1.Policy iam_policy = 4;- Specified by:
getIamPolicyOrBuilderin interfaceAssetOrBuilder
-
getOrgPolicyList
A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;- Specified by:
getOrgPolicyListin interfaceAssetOrBuilder
-
getOrgPolicyOrBuilderList
A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;- Specified by:
getOrgPolicyOrBuilderListin interfaceAssetOrBuilder
-
getOrgPolicyCount
public int getOrgPolicyCount()A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;- Specified by:
getOrgPolicyCountin interfaceAssetOrBuilder
-
getOrgPolicy
A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;- Specified by:
getOrgPolicyin interfaceAssetOrBuilder
-
getOrgPolicyOrBuilder
A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;- Specified by:
getOrgPolicyOrBuilderin interfaceAssetOrBuilder
-
hasAccessPolicy
public boolean hasAccessPolicy()Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;- Specified by:
hasAccessPolicyin interfaceAssetOrBuilder- Returns:
- Whether the accessPolicy field is set.
-
getAccessPolicy
Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;- Specified by:
getAccessPolicyin interfaceAssetOrBuilder- Returns:
- The accessPolicy.
-
getAccessPolicyOrBuilder
Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;- Specified by:
getAccessPolicyOrBuilderin interfaceAssetOrBuilder
-
hasAccessLevel
public boolean hasAccessLevel()Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;- Specified by:
hasAccessLevelin interfaceAssetOrBuilder- Returns:
- Whether the accessLevel field is set.
-
getAccessLevel
Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;- Specified by:
getAccessLevelin interfaceAssetOrBuilder- Returns:
- The accessLevel.
-
getAccessLevelOrBuilder
Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;- Specified by:
getAccessLevelOrBuilderin interfaceAssetOrBuilder
-
hasServicePerimeter
public boolean hasServicePerimeter()Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;- Specified by:
hasServicePerimeterin interfaceAssetOrBuilder- Returns:
- Whether the servicePerimeter field is set.
-
getServicePerimeter
Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;- Specified by:
getServicePerimeterin interfaceAssetOrBuilder- Returns:
- The servicePerimeter.
-
getServicePerimeterOrBuilder
Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;- Specified by:
getServicePerimeterOrBuilderin interfaceAssetOrBuilder
-
hasOsInventory
public boolean hasOsInventory()A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;- Specified by:
hasOsInventoryin interfaceAssetOrBuilder- Returns:
- Whether the osInventory field is set.
-
getOsInventory
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;- Specified by:
getOsInventoryin interfaceAssetOrBuilder- Returns:
- The osInventory.
-
getOsInventoryOrBuilder
A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
.google.cloud.osconfig.v1.Inventory os_inventory = 12;- Specified by:
getOsInventoryOrBuilderin interfaceAssetOrBuilder
-
hasRelatedAssets
Deprecated.google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=177DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];- Specified by:
hasRelatedAssetsin interfaceAssetOrBuilder- Returns:
- Whether the relatedAssets field is set.
-
getRelatedAssets
Deprecated.google.cloud.asset.v1.Asset.related_assets is deprecated. See google/cloud/asset/v1/assets.proto;l=177DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];- Specified by:
getRelatedAssetsin interfaceAssetOrBuilder- Returns:
- The relatedAssets.
-
getRelatedAssetsOrBuilder
Deprecated.DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];- Specified by:
getRelatedAssetsOrBuilderin interfaceAssetOrBuilder
-
hasRelatedAsset
public boolean hasRelatedAsset()One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;- Specified by:
hasRelatedAssetin interfaceAssetOrBuilder- Returns:
- Whether the relatedAsset field is set.
-
getRelatedAsset
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;- Specified by:
getRelatedAssetin interfaceAssetOrBuilder- Returns:
- The relatedAsset.
-
getRelatedAssetOrBuilder
One related asset of the current asset.
.google.cloud.asset.v1.RelatedAsset related_asset = 15;- Specified by:
getRelatedAssetOrBuilderin interfaceAssetOrBuilder
-
getAncestorsList
public com.google.protobuf.ProtocolStringList getAncestorsList()The ancestry path 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. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 10;- Specified by:
getAncestorsListin interfaceAssetOrBuilder- Returns:
- A list containing the ancestors.
-
getAncestorsCount
public int getAncestorsCount()The ancestry path 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. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 10;- Specified by:
getAncestorsCountin interfaceAssetOrBuilder- Returns:
- The count of ancestors.
-
getAncestors
The ancestry path 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. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 10;- Specified by:
getAncestorsin interfaceAssetOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ancestors at the given index.
-
getAncestorsBytes
public com.google.protobuf.ByteString getAncestorsBytes(int index) The ancestry path 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. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 10;- Specified by:
getAncestorsBytesin interfaceAssetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ancestors at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-