public final class Asset extends GeneratedMessageV3 implements AssetOrBuilder
Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.Protobuf type
google.cloud.asset.v1p5beta1.Asset
Modifier and Type | Class and Description |
---|---|
static class |
Asset.AccessContextPolicyCase |
static class |
Asset.Builder
Cloud asset.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_LEVEL_FIELD_NUMBER |
static int |
ACCESS_POLICY_FIELD_NUMBER |
static int |
ANCESTORS_FIELD_NUMBER |
static int |
ASSET_TYPE_FIELD_NUMBER |
static int |
IAM_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
ORG_POLICY_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
SERVICE_PERIMETER_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Asset.AccessContextPolicyCase |
getAccessContextPolicyCase() |
com.google.identity.accesscontextmanager.v1.AccessLevel |
getAccessLevel()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; |
com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder |
getAccessLevelOrBuilder()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; |
com.google.identity.accesscontextmanager.v1.AccessPolicy |
getAccessPolicy()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; |
com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder |
getAccessPolicyOrBuilder()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; |
String |
getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
ByteString |
getAncestorsBytes(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
int |
getAncestorsCount()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
ProtocolStringList |
getAncestorsList()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
String |
getAssetType()
Type of the asset.
|
ByteString |
getAssetTypeBytes()
Type of the asset.
|
static Asset |
getDefaultInstance() |
Asset |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
com.google.iam.v1.Policy |
getIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
com.google.iam.v1.PolicyOrBuilder |
getIamPolicyOrBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
String |
getName()
The full name of the asset.
|
ByteString |
getNameBytes()
The full name of the asset.
|
com.google.cloud.orgpolicy.v1.Policy |
getOrgPolicy(int index)
Representation of the Cloud Organization Policy set on an asset.
|
int |
getOrgPolicyCount()
Representation of the Cloud Organization Policy set on an asset.
|
List<com.google.cloud.orgpolicy.v1.Policy> |
getOrgPolicyList()
Representation of the Cloud Organization Policy set on an asset.
|
com.google.cloud.orgpolicy.v1.PolicyOrBuilder |
getOrgPolicyOrBuilder(int index)
Representation of the Cloud Organization Policy set on an asset.
|
List<? extends com.google.cloud.orgpolicy.v1.PolicyOrBuilder> |
getOrgPolicyOrBuilderList()
Representation of the Cloud Organization Policy set on an asset.
|
Parser<Asset> |
getParserForType() |
Resource |
getResource()
Representation of the resource.
|
ResourceOrBuilder |
getResourceOrBuilder()
Representation of the resource.
|
int |
getSerializedSize() |
com.google.identity.accesscontextmanager.v1.ServicePerimeter |
getServicePerimeter()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; |
com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder |
getServicePerimeterOrBuilder()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasAccessLevel()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; |
boolean |
hasAccessPolicy()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; |
int |
hashCode() |
boolean |
hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
boolean |
hasResource()
Representation of the resource.
|
boolean |
hasServicePerimeter()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Asset.Builder |
newBuilder() |
static Asset.Builder |
newBuilder(Asset prototype) |
Asset.Builder |
newBuilderForType() |
protected Asset.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Asset |
parseDelimitedFrom(InputStream input) |
static Asset |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(byte[] data) |
static Asset |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteBuffer data) |
static Asset |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteString data) |
static Asset |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(CodedInputStream input) |
static Asset |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(InputStream input) |
static Asset |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Asset> |
parser() |
Asset.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
public static final int IAM_POLICY_FIELD_NUMBER
public static final int ORG_POLICY_FIELD_NUMBER
public static final int ACCESS_POLICY_FIELD_NUMBER
public static final int ACCESS_LEVEL_FIELD_NUMBER
public static final int SERVICE_PERIMETER_FIELD_NUMBER
public static final int ANCESTORS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Asset.AccessContextPolicyCase getAccessContextPolicyCase()
getAccessContextPolicyCase
in interface AssetOrBuilder
public String getName()
The full name of the asset. For 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;
getName
in interface AssetOrBuilder
public ByteString getNameBytes()
The full name of the asset. For 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;
getNameBytes
in interface AssetOrBuilder
public String getAssetType()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetType
in interface AssetOrBuilder
public ByteString getAssetTypeBytes()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetTypeBytes
in interface AssetOrBuilder
public boolean hasResource()
Representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;
hasResource
in interface AssetOrBuilder
public Resource getResource()
Representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;
getResource
in interface AssetOrBuilder
public ResourceOrBuilder getResourceOrBuilder()
Representation of the resource.
.google.cloud.asset.v1p5beta1.Resource resource = 3;
getResourceOrBuilder
in interface AssetOrBuilder
public boolean hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
hasIamPolicy
in interface AssetOrBuilder
public com.google.iam.v1.Policy getIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
getIamPolicy
in interface AssetOrBuilder
public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
getIamPolicyOrBuilder
in interface AssetOrBuilder
public List<com.google.cloud.orgpolicy.v1.Policy> getOrgPolicyList()
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
getOrgPolicyList
in interface AssetOrBuilder
public List<? extends com.google.cloud.orgpolicy.v1.PolicyOrBuilder> getOrgPolicyOrBuilderList()
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
getOrgPolicyOrBuilderList
in interface AssetOrBuilder
public int getOrgPolicyCount()
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
getOrgPolicyCount
in interface AssetOrBuilder
public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index)
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
getOrgPolicy
in interface AssetOrBuilder
public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index)
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.
repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
getOrgPolicyOrBuilder
in interface AssetOrBuilder
public boolean hasAccessPolicy()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
hasAccessPolicy
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
getAccessPolicy
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder()
.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
getAccessPolicyOrBuilder
in interface AssetOrBuilder
public boolean hasAccessLevel()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
hasAccessLevel
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
getAccessLevel
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder()
.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
getAccessLevelOrBuilder
in interface AssetOrBuilder
public boolean hasServicePerimeter()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
hasServicePerimeter
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
getServicePerimeter
in interface AssetOrBuilder
public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder()
.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
getServicePerimeterOrBuilder
in interface AssetOrBuilder
public ProtocolStringList getAncestorsList()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 10;
getAncestorsList
in interface AssetOrBuilder
public int getAncestorsCount()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 10;
getAncestorsCount
in interface AssetOrBuilder
public String getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 10;
getAncestors
in interface AssetOrBuilder
index
- The index of the element to return.public ByteString getAncestorsBytes(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 10;
getAncestorsBytes
in interface AssetOrBuilder
index
- The index of the value to return.public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Asset parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Asset parseFrom(InputStream input) throws IOException
IOException
public static Asset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Asset parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Asset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Asset parseFrom(CodedInputStream input) throws IOException
IOException
public static Asset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Asset.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Asset.Builder newBuilder()
public static Asset.Builder newBuilder(Asset prototype)
public Asset.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Asset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Asset getDefaultInstance()
public Parser<Asset> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Asset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.