public final class EffectiveTag extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
EffectiveTag.Builder
An EffectiveTag represents a tag that applies to a resource during policy
evaluation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
INHERITED_FIELD_NUMBER |
static int |
NAMESPACED_TAG_KEY_FIELD_NUMBER |
static int |
NAMESPACED_TAG_VALUE_FIELD_NUMBER |
static int |
TAG_KEY_FIELD_NUMBER |
static int |
TAG_KEY_PARENT_NAME_FIELD_NUMBER |
static int |
TAG_VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static EffectiveTag |
getDefaultInstance() |
EffectiveTag |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<EffectiveTag> |
getParserForType() |
int |
getSerializedSize() |
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`.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EffectiveTag.Builder |
newBuilder() |
static EffectiveTag.Builder |
newBuilder(EffectiveTag prototype) |
EffectiveTag.Builder |
newBuilderForType() |
protected EffectiveTag.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static EffectiveTag |
parseDelimitedFrom(InputStream input) |
static EffectiveTag |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EffectiveTag |
parseFrom(byte[] data) |
static EffectiveTag |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EffectiveTag |
parseFrom(ByteBuffer data) |
static EffectiveTag |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EffectiveTag |
parseFrom(com.google.protobuf.ByteString data) |
static EffectiveTag |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EffectiveTag |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EffectiveTag |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EffectiveTag |
parseFrom(InputStream input) |
static EffectiveTag |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EffectiveTag> |
parser() |
EffectiveTag.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TAG_VALUE_FIELD_NUMBER
public static final int NAMESPACED_TAG_VALUE_FIELD_NUMBER
public static final int TAG_KEY_FIELD_NUMBER
public static final int NAMESPACED_TAG_KEY_FIELD_NUMBER
public static final int TAG_KEY_PARENT_NAME_FIELD_NUMBER
public static final int INHERITED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static EffectiveTag parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EffectiveTag parseFrom(InputStream input) throws IOException
IOExceptionpublic static EffectiveTag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EffectiveTag parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EffectiveTag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EffectiveTag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EffectiveTag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EffectiveTag.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EffectiveTag.Builder newBuilder()
public static EffectiveTag.Builder newBuilder(EffectiveTag prototype)
public EffectiveTag.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EffectiveTag.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EffectiveTag getDefaultInstance()
public static com.google.protobuf.Parser<EffectiveTag> parser()
public com.google.protobuf.Parser<EffectiveTag> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EffectiveTag getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.