public final class RelatedAsset extends GeneratedMessageV3 implements RelatedAssetOrBuilder
An asset identifier in Google Cloud which contains its name, type and ancestors. 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. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.Protobuf type
google.cloud.asset.v1.RelatedAsset
Modifier and Type | Class and Description |
---|---|
static class |
RelatedAsset.Builder
An asset identifier in Google Cloud which contains its name, type and
ancestors.
|
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 |
ANCESTORS_FIELD_NUMBER |
static int |
ASSET_FIELD_NUMBER |
static int |
ASSET_TYPE_FIELD_NUMBER |
static int |
RELATIONSHIP_TYPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAncestors(int index)
The ancestors 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.
|
ByteString |
getAncestorsBytes(int index)
The ancestors 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.
|
int |
getAncestorsCount()
The ancestors 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.
|
ProtocolStringList |
getAncestorsList()
The ancestors 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.
|
String |
getAsset()
The full name of the asset.
|
ByteString |
getAssetBytes()
The full name of the asset.
|
String |
getAssetType()
The type of the asset.
|
ByteString |
getAssetTypeBytes()
The type of the asset.
|
static RelatedAsset |
getDefaultInstance() |
RelatedAsset |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<RelatedAsset> |
getParserForType() |
String |
getRelationshipType()
The unique identifier of the relationship type.
|
ByteString |
getRelationshipTypeBytes()
The unique identifier of the relationship type.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RelatedAsset.Builder |
newBuilder() |
static RelatedAsset.Builder |
newBuilder(RelatedAsset prototype) |
RelatedAsset.Builder |
newBuilderForType() |
protected RelatedAsset.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static RelatedAsset |
parseDelimitedFrom(InputStream input) |
static RelatedAsset |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static RelatedAsset |
parseFrom(byte[] data) |
static RelatedAsset |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static RelatedAsset |
parseFrom(ByteBuffer data) |
static RelatedAsset |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static RelatedAsset |
parseFrom(ByteString data) |
static RelatedAsset |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static RelatedAsset |
parseFrom(CodedInputStream input) |
static RelatedAsset |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static RelatedAsset |
parseFrom(InputStream input) |
static RelatedAsset |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<RelatedAsset> |
parser() |
RelatedAsset.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 ASSET_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER
public static final int ANCESTORS_FIELD_NUMBER
public static final int RELATIONSHIP_TYPE_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 String getAsset()
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 asset = 1 [(.google.api.resource_reference) = { ... }
getAsset
in interface RelatedAssetOrBuilder
public ByteString getAssetBytes()
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 asset = 1 [(.google.api.resource_reference) = { ... }
getAssetBytes
in interface RelatedAssetOrBuilder
public String 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;
getAssetType
in interface RelatedAssetOrBuilder
public 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;
getAssetTypeBytes
in interface RelatedAssetOrBuilder
public ProtocolStringList getAncestorsList()
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsList
in interface RelatedAssetOrBuilder
public int getAncestorsCount()
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsCount
in interface RelatedAssetOrBuilder
public String getAncestors(int index)
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestors
in interface RelatedAssetOrBuilder
index
- The index of the element to return.public ByteString getAncestorsBytes(int index)
The ancestors 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. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsBytes
in interface RelatedAssetOrBuilder
index
- The index of the value to return.public String getRelationshipType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
getRelationshipType
in interface RelatedAssetOrBuilder
public ByteString getRelationshipTypeBytes()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
getRelationshipTypeBytes
in interface RelatedAssetOrBuilder
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 RelatedAsset parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RelatedAsset parseFrom(InputStream input) throws IOException
IOException
public static RelatedAsset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RelatedAsset parseDelimitedFrom(InputStream input) throws IOException
IOException
public static RelatedAsset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RelatedAsset parseFrom(CodedInputStream input) throws IOException
IOException
public static RelatedAsset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public RelatedAsset.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static RelatedAsset.Builder newBuilder()
public static RelatedAsset.Builder newBuilder(RelatedAsset prototype)
public RelatedAsset.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected RelatedAsset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static RelatedAsset getDefaultInstance()
public static Parser<RelatedAsset> parser()
public Parser<RelatedAsset> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public RelatedAsset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.