Class EffectiveTag.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EffectiveTag.Builder>
com.google.cloud.resourcemanager.v3.EffectiveTag.Builder
- All Implemented Interfaces:
EffectiveTagOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EffectiveTag
public static final class EffectiveTag.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates the inheritance status of a tag value attached to the given resource.The namespaced name of the TagKey.The namespaced name of the TagValue.The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.The parent name of the tag key.Resource name for TagValue in the format `tagValues/456`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates the inheritance status of a tag value attached to the given resource.The namespaced name of the TagKey.com.google.protobuf.ByteStringThe namespaced name of the TagKey.The namespaced name of the TagValue.com.google.protobuf.ByteStringThe namespaced name of the TagValue.The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.com.google.protobuf.ByteStringThe name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.The parent name of the tag key.com.google.protobuf.ByteStringThe parent name of the tag key.Resource name for TagValue in the format `tagValues/456`.com.google.protobuf.ByteStringResource name for TagValue in the format `tagValues/456`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EffectiveTag other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInherited(boolean value) Indicates the inheritance status of a tag value attached to the given resource.setNamespacedTagKey(String value) The namespaced name of the TagKey.setNamespacedTagKeyBytes(com.google.protobuf.ByteString value) The namespaced name of the TagKey.setNamespacedTagValue(String value) The namespaced name of the TagValue.setNamespacedTagValueBytes(com.google.protobuf.ByteString value) The namespaced name of the TagValue.The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.setTagKeyBytes(com.google.protobuf.ByteString value) The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.setTagKeyParentName(String value) The parent name of the tag key.setTagKeyParentNameBytes(com.google.protobuf.ByteString value) The parent name of the tag key.setTagValue(String value) Resource name for TagValue in the format `tagValues/456`.setTagValueBytes(com.google.protobuf.ByteString value) Resource name for TagValue in the format `tagValues/456`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EffectiveTag.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EffectiveTag.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EffectiveTag.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EffectiveTag.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EffectiveTag.Builder>
-
mergeFrom
public EffectiveTag.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EffectiveTag.Builder>- Throws:
IOException
-
getTagValue
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getTagValuein interfaceEffectiveTagOrBuilder- Returns:
- The tagValue.
-
getTagValueBytes
public com.google.protobuf.ByteString getTagValueBytes()Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getTagValueBytesin interfaceEffectiveTagOrBuilder- Returns:
- The bytes for tagValue.
-
setTagValue
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The tagValue to set.- Returns:
- This builder for chaining.
-
clearTagValue
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTagValueBytes
Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for tagValue to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNamespacedTagValuein interfaceEffectiveTagOrBuilder- Returns:
- The namespacedTagValue.
-
getNamespacedTagValueBytes
public 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;- Specified by:
getNamespacedTagValueBytesin interfaceEffectiveTagOrBuilder- Returns:
- The bytes for namespacedTagValue.
-
setNamespacedTagValue
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;- Parameters:
value- The namespacedTagValue to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNamespacedTagValueBytes
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;- Parameters:
value- The bytes for namespacedTagValue to set.- Returns:
- This builder for chaining.
-
getTagKey
The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getTagKeyin interfaceEffectiveTagOrBuilder- Returns:
- The tagKey.
-
getTagKeyBytes
public 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) = { ... }- Specified by:
getTagKeyBytesin interfaceEffectiveTagOrBuilder- Returns:
- The bytes for tagKey.
-
setTagKey
The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The tagKey to set.- Returns:
- This builder for chaining.
-
clearTagKey
The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTagKeyBytes
The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for tagKey to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNamespacedTagKeyin interfaceEffectiveTagOrBuilder- Returns:
- The namespacedTagKey.
-
getNamespacedTagKeyBytes
public 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;- Specified by:
getNamespacedTagKeyBytesin interfaceEffectiveTagOrBuilder- Returns:
- The bytes for namespacedTagKey.
-
setNamespacedTagKey
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;- Parameters:
value- The namespacedTagKey to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNamespacedTagKeyBytes
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;- Parameters:
value- The bytes for namespacedTagKey to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTagKeyParentNamein interfaceEffectiveTagOrBuilder- Returns:
- The tagKeyParentName.
-
getTagKeyParentNameBytes
public 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;- Specified by:
getTagKeyParentNameBytesin interfaceEffectiveTagOrBuilder- Returns:
- The bytes for tagKeyParentName.
-
setTagKeyParentName
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;- Parameters:
value- The tagKeyParentName to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setTagKeyParentNameBytes
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;- Parameters:
value- The bytes for tagKeyParentName to set.- Returns:
- This builder for chaining.
-
getInherited
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;- Specified by:
getInheritedin interfaceEffectiveTagOrBuilder- Returns:
- The inherited.
-
setInherited
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;- Parameters:
value- The inherited to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-