Class EffectiveTagDetails.Builder (3.32.0)

public static final class EffectiveTagDetails.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EffectiveTagDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

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 an [effective_tag][] is 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

clearField(Descriptors.FieldDescriptor field)

public EffectiveTagDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EffectiveTagDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

clone()

public EffectiveTagDetails.Builder clone()
Returns
Type Description
EffectiveTagDetails.Builder
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

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 an [effective_tag][] is inherited, according to tag inheritance.

optional string attached_resource = 1;

Returns
Type Description
boolean

Whether the attachedResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EffectiveTagDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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 an [effective_tag][] is 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 an [effective_tag][] is 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

setField(Descriptors.FieldDescriptor field, Object value)

public EffectiveTagDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EffectiveTagDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EffectiveTagDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EffectiveTagDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EffectiveTagDetails.Builder
Overrides