Class EffectiveTagDetails (3.51.0)

public final class EffectiveTagDetails extends GeneratedMessageV3 implements EffectiveTagDetailsOrBuilder

The effective tags and the ancestor resources from which they were inherited.

Protobuf type google.cloud.asset.v1.EffectiveTagDetails

Static Fields

ATTACHED_RESOURCE_FIELD_NUMBER

public static final int ATTACHED_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_TAGS_FIELD_NUMBER

public static final int EFFECTIVE_TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EffectiveTagDetails getDefaultInstance()
Returns
Type Description
EffectiveTagDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EffectiveTagDetails.Builder newBuilder()
Returns
Type Description
EffectiveTagDetails.Builder

newBuilder(EffectiveTagDetails prototype)

public static EffectiveTagDetails.Builder newBuilder(EffectiveTagDetails prototype)
Parameter
Name Description
prototype EffectiveTagDetails
Returns
Type Description
EffectiveTagDetails.Builder

parseDelimitedFrom(InputStream input)

public static EffectiveTagDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EffectiveTagDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EffectiveTagDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EffectiveTagDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EffectiveTagDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EffectiveTagDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EffectiveTagDetails> parser()
Returns
Type Description
Parser<EffectiveTagDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttachedResource()

public String getAttachedResource()

The full resource name of the ancestor from which an [effective_tag][] is inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
String

The attachedResource.

getAttachedResourceBytes()

public ByteString getAttachedResourceBytes()

The full resource name of the ancestor from which an [effective_tag][] is inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
ByteString

The bytes for attachedResource.

getDefaultInstanceForType()

public EffectiveTagDetails getDefaultInstanceForType()
Returns
Type Description
EffectiveTagDetails

getEffectiveTags(int index)

public Tag getEffectiveTags(int index)

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

repeated .google.cloud.asset.v1.Tag effective_tags = 2;

Parameter
Name Description
index int
Returns
Type Description
Tag

getEffectiveTagsCount()

public int getEffectiveTagsCount()

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

repeated .google.cloud.asset.v1.Tag effective_tags = 2;

Returns
Type Description
int

getEffectiveTagsList()

public List<Tag> getEffectiveTagsList()

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

repeated .google.cloud.asset.v1.Tag effective_tags = 2;

Returns
Type Description
List<Tag>

getEffectiveTagsOrBuilder(int index)

public TagOrBuilder getEffectiveTagsOrBuilder(int index)

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

repeated .google.cloud.asset.v1.Tag effective_tags = 2;

Parameter
Name Description
index int
Returns
Type Description
TagOrBuilder

getEffectiveTagsOrBuilderList()

public List<? extends TagOrBuilder> getEffectiveTagsOrBuilderList()

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

repeated .google.cloud.asset.v1.Tag effective_tags = 2;

Returns
Type Description
List<? extends com.google.cloud.asset.v1.TagOrBuilder>

getParserForType()

public Parser<EffectiveTagDetails> getParserForType()
Returns
Type Description
Parser<EffectiveTagDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAttachedResource()

public boolean hasAttachedResource()

The full resource name of the ancestor from which an [effective_tag][] is inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
boolean

Whether the attachedResource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EffectiveTagDetails.Builder newBuilderForType()
Returns
Type Description
EffectiveTagDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EffectiveTagDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EffectiveTagDetails.Builder toBuilder()
Returns
Type Description
EffectiveTagDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException