Class EffectiveTagDetails.Builder (3.87.0)

public static final class EffectiveTagDetails.Builder extends GeneratedMessage.Builder<EffectiveTagDetails.Builder> implements EffectiveTagDetailsOrBuilder

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

Protobuf type google.cloud.asset.v1.EffectiveTagDetails

Static Methods

getDescriptor()

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

Methods

addAllEffectiveTags(Iterable<? extends Tag> values)

public EffectiveTagDetails.Builder addAllEffectiveTags(Iterable<? extends Tag> values)

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
values Iterable<? extends com.google.cloud.asset.v1.Tag>
Returns
Type Description
EffectiveTagDetails.Builder

addEffectiveTags(Tag value)

public EffectiveTagDetails.Builder addEffectiveTags(Tag value)

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
value Tag
Returns
Type Description
EffectiveTagDetails.Builder

addEffectiveTags(Tag.Builder builderForValue)

public EffectiveTagDetails.Builder addEffectiveTags(Tag.Builder builderForValue)

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
builderForValue Tag.Builder
Returns
Type Description
EffectiveTagDetails.Builder

addEffectiveTags(int index, Tag value)

public EffectiveTagDetails.Builder addEffectiveTags(int index, Tag value)

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;

Parameters
Name Description
index int
value Tag
Returns
Type Description
EffectiveTagDetails.Builder

addEffectiveTags(int index, Tag.Builder builderForValue)

public EffectiveTagDetails.Builder addEffectiveTags(int index, Tag.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Tag.Builder
Returns
Type Description
EffectiveTagDetails.Builder

addEffectiveTagsBuilder()

public Tag.Builder addEffectiveTagsBuilder()

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
Tag.Builder

addEffectiveTagsBuilder(int index)

public Tag.Builder addEffectiveTagsBuilder(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.Builder

build()

public EffectiveTagDetails build()
Returns
Type Description
EffectiveTagDetails

buildPartial()

public EffectiveTagDetails buildPartial()
Returns
Type Description
EffectiveTagDetails

clear()

public EffectiveTagDetails.Builder clear()
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

clearAttachedResource()

public EffectiveTagDetails.Builder clearAttachedResource()

The full resource name of the ancestor from which effective_tags are inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
EffectiveTagDetails.Builder

This builder for chaining.

clearEffectiveTags()

public EffectiveTagDetails.Builder clearEffectiveTags()

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
EffectiveTagDetails.Builder

getAttachedResource()

public String getAttachedResource()

The full resource name of the ancestor from which effective_tags are 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 effective_tags are 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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getEffectiveTagsBuilder(int index)

public Tag.Builder getEffectiveTagsBuilder(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.Builder

getEffectiveTagsBuilderList()

public List<Tag.Builder> getEffectiveTagsBuilderList()

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<Builder>

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>

hasAttachedResource()

public boolean hasAttachedResource()

The full resource name of the ancestor from which effective_tags are inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
boolean

Whether the attachedResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EffectiveTagDetails other)

public EffectiveTagDetails.Builder mergeFrom(EffectiveTagDetails other)
Parameter
Name Description
other EffectiveTagDetails
Returns
Type Description
EffectiveTagDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EffectiveTagDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EffectiveTagDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EffectiveTagDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

removeEffectiveTags(int index)

public EffectiveTagDetails.Builder removeEffectiveTags(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
EffectiveTagDetails.Builder

setAttachedResource(String value)

public EffectiveTagDetails.Builder setAttachedResource(String value)

The full resource name of the ancestor from which effective_tags are inherited, according to tag inheritance.

optional string attached_resource = 1;

Parameter
Name Description
value String

The attachedResource to set.

Returns
Type Description
EffectiveTagDetails.Builder

This builder for chaining.

setAttachedResourceBytes(ByteString value)

public EffectiveTagDetails.Builder setAttachedResourceBytes(ByteString value)

The full resource name of the ancestor from which effective_tags are inherited, according to tag inheritance.

optional string attached_resource = 1;

Parameter
Name Description
value ByteString

The bytes for attachedResource to set.

Returns
Type Description
EffectiveTagDetails.Builder

This builder for chaining.

setEffectiveTags(int index, Tag value)

public EffectiveTagDetails.Builder setEffectiveTags(int index, Tag value)

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;

Parameters
Name Description
index int
value Tag
Returns
Type Description
EffectiveTagDetails.Builder

setEffectiveTags(int index, Tag.Builder builderForValue)

public EffectiveTagDetails.Builder setEffectiveTags(int index, Tag.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Tag.Builder
Returns
Type Description
EffectiveTagDetails.Builder