public final class Asset extends com.google.protobuf.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.v1p2beta1.Asset| Modifier and Type | Class and Description |
|---|---|
static class |
Asset.Builder
Cloud asset.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANCESTORS_FIELD_NUMBER |
static int |
ASSET_TYPE_FIELD_NUMBER |
static int |
IAM_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getAssetTypeBytes()
Type of the asset.
|
static Asset |
getDefaultInstance() |
Asset |
getDefaultInstanceForType() |
static com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getNameBytes()
The full name of the asset.
|
com.google.protobuf.Parser<Asset> |
getParserForType() |
Resource |
getResource()
Representation of the resource.
|
ResourceOrBuilder |
getResourceOrBuilder()
Representation of the resource.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
boolean |
hasResource()
Representation of the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Asset.Builder |
newBuilder() |
static Asset.Builder |
newBuilder(Asset prototype) |
Asset.Builder |
newBuilderForType() |
protected Asset.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Asset |
parseDelimitedFrom(InputStream input) |
static Asset |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(byte[] data) |
static Asset |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(ByteBuffer data) |
static Asset |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(com.google.protobuf.ByteString data) |
static Asset |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Asset |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Asset |
parseFrom(InputStream input) |
static Asset |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Asset> |
parser() |
Asset.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 ANCESTORS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 AssetOrBuilderpublic com.google.protobuf.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 AssetOrBuilderpublic String getAssetType()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;getAssetType in interface AssetOrBuilderpublic com.google.protobuf.ByteString getAssetTypeBytes()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;getAssetTypeBytes in interface AssetOrBuilderpublic boolean hasResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;hasResource in interface AssetOrBuilderpublic Resource getResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;getResource in interface AssetOrBuilderpublic ResourceOrBuilder getResourceOrBuilder()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;getResourceOrBuilder in interface AssetOrBuilderpublic 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 AssetOrBuilderpublic 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 AssetOrBuilderpublic 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 AssetOrBuilderpublic com.google.protobuf.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 = 6;getAncestorsList in interface AssetOrBuilderpublic 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 = 6;getAncestorsCount in interface AssetOrBuilderpublic 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 = 6;getAncestors in interface AssetOrBuilderindex - The index of the element to return.public com.google.protobuf.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 = 6;getAncestorsBytes in interface AssetOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Asset parseFrom(InputStream input) throws IOException
IOExceptionpublic static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Asset parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Asset.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Asset.Builder newBuilder()
public static Asset.Builder newBuilder(Asset prototype)
public Asset.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Asset getDefaultInstance()
public static com.google.protobuf.Parser<Asset> parser()
public com.google.protobuf.Parser<Asset> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.