public static final class EffectiveTag.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder> implements EffectiveTagOrBuilder
An EffectiveTag represents a tag that applies to a resource during policy evaluation. Tags can be either directly bound to a resource or inherited from its ancestor. EffectiveTag contains the name and namespaced_name of the tag value and tag key, with additional fields of `inherited` to indicate the inheritance status of the effective tag.Protobuf type
google.cloud.resourcemanager.v3.EffectiveTag| Modifier and Type | Method and Description |
|---|---|
EffectiveTag.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EffectiveTag |
build() |
EffectiveTag |
buildPartial() |
EffectiveTag.Builder |
clear() |
EffectiveTag.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EffectiveTag.Builder |
clearInherited()
Indicates the inheritance status of a tag value
attached to the given resource.
|
EffectiveTag.Builder |
clearNamespacedTagKey()
The namespaced name of the TagKey.
|
EffectiveTag.Builder |
clearNamespacedTagValue()
The namespaced name of the TagValue.
|
EffectiveTag.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EffectiveTag.Builder |
clearTagKey()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
|
EffectiveTag.Builder |
clearTagKeyParentName()
The parent name of the tag key.
|
EffectiveTag.Builder |
clearTagValue()
Resource name for TagValue in the format `tagValues/456`.
|
EffectiveTag.Builder |
clone() |
EffectiveTag |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getInherited()
Indicates the inheritance status of a tag value
attached to the given resource.
|
String |
getNamespacedTagKey()
The namespaced name of the TagKey.
|
com.google.protobuf.ByteString |
getNamespacedTagKeyBytes()
The namespaced name of the TagKey.
|
String |
getNamespacedTagValue()
The namespaced name of the TagValue.
|
com.google.protobuf.ByteString |
getNamespacedTagValueBytes()
The namespaced name of the TagValue.
|
String |
getTagKey()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
|
com.google.protobuf.ByteString |
getTagKeyBytes()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
|
String |
getTagKeyParentName()
The parent name of the tag key.
|
com.google.protobuf.ByteString |
getTagKeyParentNameBytes()
The parent name of the tag key.
|
String |
getTagValue()
Resource name for TagValue in the format `tagValues/456`.
|
com.google.protobuf.ByteString |
getTagValueBytes()
Resource name for TagValue in the format `tagValues/456`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EffectiveTag.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EffectiveTag.Builder |
mergeFrom(EffectiveTag other) |
EffectiveTag.Builder |
mergeFrom(com.google.protobuf.Message other) |
EffectiveTag.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EffectiveTag.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EffectiveTag.Builder |
setInherited(boolean value)
Indicates the inheritance status of a tag value
attached to the given resource.
|
EffectiveTag.Builder |
setNamespacedTagKey(String value)
The namespaced name of the TagKey.
|
EffectiveTag.Builder |
setNamespacedTagKeyBytes(com.google.protobuf.ByteString value)
The namespaced name of the TagKey.
|
EffectiveTag.Builder |
setNamespacedTagValue(String value)
The namespaced name of the TagValue.
|
EffectiveTag.Builder |
setNamespacedTagValueBytes(com.google.protobuf.ByteString value)
The namespaced name of the TagValue.
|
EffectiveTag.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EffectiveTag.Builder |
setTagKey(String value)
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
|
EffectiveTag.Builder |
setTagKeyBytes(com.google.protobuf.ByteString value)
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
|
EffectiveTag.Builder |
setTagKeyParentName(String value)
The parent name of the tag key.
|
EffectiveTag.Builder |
setTagKeyParentNameBytes(com.google.protobuf.ByteString value)
The parent name of the tag key.
|
EffectiveTag.Builder |
setTagValue(String value)
Resource name for TagValue in the format `tagValues/456`.
|
EffectiveTag.Builder |
setTagValueBytes(com.google.protobuf.ByteString value)
Resource name for TagValue in the format `tagValues/456`.
|
EffectiveTag.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EffectiveTag build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EffectiveTag buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EffectiveTag.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EffectiveTag.Builder>public EffectiveTag.Builder mergeFrom(EffectiveTag other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public EffectiveTag.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EffectiveTag.Builder>IOExceptionpublic String getTagValue()
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }getTagValue in interface EffectiveTagOrBuilderpublic com.google.protobuf.ByteString getTagValueBytes()
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }getTagValueBytes in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setTagValue(String value)
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }value - The tagValue to set.public EffectiveTag.Builder clearTagValue()
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }public EffectiveTag.Builder setTagValueBytes(com.google.protobuf.ByteString value)
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }value - The bytes for tagValue to set.public String getNamespacedTagValue()
The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_tag_value = 2;getNamespacedTagValue in interface EffectiveTagOrBuilderpublic com.google.protobuf.ByteString getNamespacedTagValueBytes()
The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_tag_value = 2;getNamespacedTagValueBytes in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setNamespacedTagValue(String value)
The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_tag_value = 2;value - The namespacedTagValue to set.public EffectiveTag.Builder clearNamespacedTagValue()
The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_tag_value = 2;public EffectiveTag.Builder setNamespacedTagValueBytes(com.google.protobuf.ByteString value)
The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_tag_value = 2;value - The bytes for namespacedTagValue to set.public String getTagKey()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
string tag_key = 3 [(.google.api.resource_reference) = { ... }getTagKey in interface EffectiveTagOrBuilderpublic com.google.protobuf.ByteString getTagKeyBytes()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
string tag_key = 3 [(.google.api.resource_reference) = { ... }getTagKeyBytes in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setTagKey(String value)
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
string tag_key = 3 [(.google.api.resource_reference) = { ... }value - The tagKey to set.public EffectiveTag.Builder clearTagKey()
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
string tag_key = 3 [(.google.api.resource_reference) = { ... }public EffectiveTag.Builder setTagKeyBytes(com.google.protobuf.ByteString value)
The name of the TagKey, in the format `tagKeys/{id}`, such as
`tagKeys/123`.
string tag_key = 3 [(.google.api.resource_reference) = { ... }value - The bytes for tagKey to set.public String getNamespacedTagKey()
The namespaced name of the TagKey. Can be in the form
`{organization_id}/{tag_key_short_name}` or
`{project_id}/{tag_key_short_name}` or
`{project_number}/{tag_key_short_name}`.
string namespaced_tag_key = 4;getNamespacedTagKey in interface EffectiveTagOrBuilderpublic com.google.protobuf.ByteString getNamespacedTagKeyBytes()
The namespaced name of the TagKey. Can be in the form
`{organization_id}/{tag_key_short_name}` or
`{project_id}/{tag_key_short_name}` or
`{project_number}/{tag_key_short_name}`.
string namespaced_tag_key = 4;getNamespacedTagKeyBytes in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setNamespacedTagKey(String value)
The namespaced name of the TagKey. Can be in the form
`{organization_id}/{tag_key_short_name}` or
`{project_id}/{tag_key_short_name}` or
`{project_number}/{tag_key_short_name}`.
string namespaced_tag_key = 4;value - The namespacedTagKey to set.public EffectiveTag.Builder clearNamespacedTagKey()
The namespaced name of the TagKey. Can be in the form
`{organization_id}/{tag_key_short_name}` or
`{project_id}/{tag_key_short_name}` or
`{project_number}/{tag_key_short_name}`.
string namespaced_tag_key = 4;public EffectiveTag.Builder setNamespacedTagKeyBytes(com.google.protobuf.ByteString value)
The namespaced name of the TagKey. Can be in the form
`{organization_id}/{tag_key_short_name}` or
`{project_id}/{tag_key_short_name}` or
`{project_number}/{tag_key_short_name}`.
string namespaced_tag_key = 4;value - The bytes for namespacedTagKey to set.public String getTagKeyParentName()
The parent name of the tag key.
Must be in the format `organizations/{organization_id}` or
`projects/{project_number}`
string tag_key_parent_name = 6;getTagKeyParentName in interface EffectiveTagOrBuilderpublic com.google.protobuf.ByteString getTagKeyParentNameBytes()
The parent name of the tag key.
Must be in the format `organizations/{organization_id}` or
`projects/{project_number}`
string tag_key_parent_name = 6;getTagKeyParentNameBytes in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setTagKeyParentName(String value)
The parent name of the tag key.
Must be in the format `organizations/{organization_id}` or
`projects/{project_number}`
string tag_key_parent_name = 6;value - The tagKeyParentName to set.public EffectiveTag.Builder clearTagKeyParentName()
The parent name of the tag key.
Must be in the format `organizations/{organization_id}` or
`projects/{project_number}`
string tag_key_parent_name = 6;public EffectiveTag.Builder setTagKeyParentNameBytes(com.google.protobuf.ByteString value)
The parent name of the tag key.
Must be in the format `organizations/{organization_id}` or
`projects/{project_number}`
string tag_key_parent_name = 6;value - The bytes for tagKeyParentName to set.public boolean getInherited()
Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false.
bool inherited = 5;getInherited in interface EffectiveTagOrBuilderpublic EffectiveTag.Builder setInherited(boolean value)
Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false.
bool inherited = 5;value - The inherited to set.public EffectiveTag.Builder clearInherited()
Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false.
bool inherited = 5;public final EffectiveTag.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>public final EffectiveTag.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveTag.Builder>Copyright © 2025 Google LLC. All rights reserved.