Class EffectiveTagDetails (3.44.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
TypeDescription
int

EFFECTIVE_TAGS_FIELD_NUMBER

public static final int EFFECTIVE_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EffectiveTagDetails getDefaultInstance()
Returns
TypeDescription
EffectiveTagDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static EffectiveTagDetails.Builder newBuilder()
Returns
TypeDescription
EffectiveTagDetails.Builder

newBuilder(EffectiveTagDetails prototype)

public static EffectiveTagDetails.Builder newBuilder(EffectiveTagDetails prototype)
Parameter
NameDescription
prototypeEffectiveTagDetails
Returns
TypeDescription
EffectiveTagDetails.Builder

parseDelimitedFrom(InputStream input)

public static EffectiveTagDetails parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EffectiveTagDetails parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EffectiveTagDetails parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EffectiveTagDetails parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EffectiveTagDetails parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EffectiveTagDetails parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EffectiveTagDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EffectiveTagDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EffectiveTagDetails> parser()
Returns
TypeDescription
Parser<EffectiveTagDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for attachedResource.

getDefaultInstanceForType()

public EffectiveTagDetails getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.asset.v1.TagOrBuilder>

getParserForType()

public Parser<EffectiveTagDetails> getParserForType()
Returns
TypeDescription
Parser<EffectiveTagDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the attachedResource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EffectiveTagDetails.Builder newBuilderForType()
Returns
TypeDescription
EffectiveTagDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EffectiveTagDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EffectiveTagDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EffectiveTagDetails.Builder toBuilder()
Returns
TypeDescription
EffectiveTagDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException