Class ConditionContext.EffectiveTag.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConditionContext.EffectiveTag.Builder>
com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.Builder
- All Implemented Interfaces:
ConditionContext.EffectiveTagOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConditionContext.EffectiveTag
public static final class ConditionContext.EffectiveTag.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConditionContext.EffectiveTag.Builder>
implements ConditionContext.EffectiveTagOrBuilder
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.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.The parent name of the tag key.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.The parent name of the tag key.com.google.protobuf.ByteStringThe parent name of the tag key.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInherited(boolean value) Output only.setNamespacedTagKey(String value) Output only.setNamespacedTagKeyBytes(com.google.protobuf.ByteString value) Output only.setNamespacedTagValue(String value) Output only.setNamespacedTagValueBytes(com.google.protobuf.ByteString value) Output only.Output only.setTagKeyBytes(com.google.protobuf.ByteString value) Output only.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) Output only.setTagValueBytes(com.google.protobuf.ByteString value) Output only.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<ConditionContext.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<ConditionContext.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<ConditionContext.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<ConditionContext.EffectiveTag.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConditionContext.EffectiveTag.Builder>
-
mergeFrom
public ConditionContext.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<ConditionContext.EffectiveTag.Builder>- Throws:
IOException
-
getTagValue
Output only. Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagValuein interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The tagValue.
-
getTagValueBytes
public com.google.protobuf.ByteString getTagValueBytes()Output only. Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagValueBytesin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The bytes for tagValue.
-
setTagValue
Output only. Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The tagValue to set.- Returns:
- This builder for chaining.
-
clearTagValue
Output only. Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTagValueBytes
Output only. Resource name for TagValue in the format `tagValues/456`.
string tag_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for tagValue to set.- Returns:
- This builder for chaining.
-
getNamespacedTagValue
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamespacedTagValuein interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The namespacedTagValue.
-
getNamespacedTagValueBytes
public com.google.protobuf.ByteString getNamespacedTagValueBytes()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamespacedTagValueBytesin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The bytes for namespacedTagValue.
-
setNamespacedTagValue
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The namespacedTagValue to set.- Returns:
- This builder for chaining.
-
clearNamespacedTagValue
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNamespacedTagValueBytes
public ConditionContext.EffectiveTag.Builder setNamespacedTagValueBytes(com.google.protobuf.ByteString value) Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for namespacedTagValue to set.- Returns:
- This builder for chaining.
-
getTagKey
Output only. The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagKeyin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The tagKey.
-
getTagKeyBytes
public com.google.protobuf.ByteString getTagKeyBytes()Output only. The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagKeyBytesin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The bytes for tagKey.
-
setTagKey
Output only. The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The tagKey to set.- Returns:
- This builder for chaining.
-
clearTagKey
Output only. The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTagKeyBytes
Output only. The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.string tag_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for tagKey to set.- Returns:
- This builder for chaining.
-
getNamespacedTagKey
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamespacedTagKeyin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The namespacedTagKey.
-
getNamespacedTagKeyBytes
public com.google.protobuf.ByteString getNamespacedTagKeyBytes()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamespacedTagKeyBytesin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The bytes for namespacedTagKey.
-
setNamespacedTagKey
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The namespacedTagKey to set.- Returns:
- This builder for chaining.
-
clearNamespacedTagKey
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNamespacedTagKeyBytes
public ConditionContext.EffectiveTag.Builder setNamespacedTagKeyBytes(com.google.protobuf.ByteString value) Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- 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 interfaceConditionContext.EffectiveTagOrBuilder- 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 interfaceConditionContext.EffectiveTagOrBuilder- 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
public ConditionContext.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;- Parameters:
value- The bytes for tagKeyParentName to set.- Returns:
- This builder for chaining.
-
getInherited
public boolean getInherited()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInheritedin interfaceConditionContext.EffectiveTagOrBuilder- Returns:
- The inherited.
-
setInherited
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The inherited to set.- Returns:
- This builder for chaining.
-
clearInherited
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-