public static final class PolicyTag.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder> implements PolicyTagOrBuilder
Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in a hierarchy. For example, consider the following hierarchy: Geolocation -> (LatLong, City, ZipCode). PolicyTag "Geolocation" contains three child policy tags: "LatLong", "City", and "ZipCode".Protobuf type
google.cloud.datacatalog.v1beta1.PolicyTag| Modifier and Type | Method and Description |
|---|---|
PolicyTag.Builder |
addAllChildPolicyTags(Iterable<String> values)
Output only.
|
PolicyTag.Builder |
addChildPolicyTags(String value)
Output only.
|
PolicyTag.Builder |
addChildPolicyTagsBytes(com.google.protobuf.ByteString value)
Output only.
|
PolicyTag.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PolicyTag |
build() |
PolicyTag |
buildPartial() |
PolicyTag.Builder |
clear() |
PolicyTag.Builder |
clearChildPolicyTags()
Output only.
|
PolicyTag.Builder |
clearDescription()
Description of this policy tag.
|
PolicyTag.Builder |
clearDisplayName()
Required.
|
PolicyTag.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PolicyTag.Builder |
clearName()
Identifier.
|
PolicyTag.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PolicyTag.Builder |
clearParentPolicyTag()
Resource name of this policy tag's parent policy tag (e.g. for the
"LatLong" policy tag in the example above, this field contains the
resource name of the "Geolocation" policy tag).
|
PolicyTag.Builder |
clone() |
String |
getChildPolicyTags(int index)
Output only.
|
com.google.protobuf.ByteString |
getChildPolicyTagsBytes(int index)
Output only.
|
int |
getChildPolicyTagsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getChildPolicyTagsList()
Output only.
|
PolicyTag |
getDefaultInstanceForType() |
String |
getDescription()
Description of this policy tag.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Description of this policy tag.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
String |
getParentPolicyTag()
Resource name of this policy tag's parent policy tag (e.g. for the
"LatLong" policy tag in the example above, this field contains the
resource name of the "Geolocation" policy tag).
|
com.google.protobuf.ByteString |
getParentPolicyTagBytes()
Resource name of this policy tag's parent policy tag (e.g. for the
"LatLong" policy tag in the example above, this field contains the
resource name of the "Geolocation" policy tag).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PolicyTag.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PolicyTag.Builder |
mergeFrom(com.google.protobuf.Message other) |
PolicyTag.Builder |
mergeFrom(PolicyTag other) |
PolicyTag.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PolicyTag.Builder |
setChildPolicyTags(int index,
String value)
Output only.
|
PolicyTag.Builder |
setDescription(String value)
Description of this policy tag.
|
PolicyTag.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Description of this policy tag.
|
PolicyTag.Builder |
setDisplayName(String value)
Required.
|
PolicyTag.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.
|
PolicyTag.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PolicyTag.Builder |
setName(String value)
Identifier.
|
PolicyTag.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
PolicyTag.Builder |
setParentPolicyTag(String value)
Resource name of this policy tag's parent policy tag (e.g. for the
"LatLong" policy tag in the example above, this field contains the
resource name of the "Geolocation" policy tag).
|
PolicyTag.Builder |
setParentPolicyTagBytes(com.google.protobuf.ByteString value)
Resource name of this policy tag's parent policy tag (e.g. for the
"LatLong" policy tag in the example above, this field contains the
resource name of the "Geolocation" policy tag).
|
PolicyTag.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PolicyTag.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<PolicyTag.Builder>public PolicyTag.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.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<PolicyTag.Builder>public PolicyTag getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PolicyTag build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PolicyTag buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PolicyTag.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>public PolicyTag.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<PolicyTag.Builder>public PolicyTag.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>public PolicyTag.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>public PolicyTag.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<PolicyTag.Builder>public PolicyTag.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<PolicyTag.Builder>public PolicyTag.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyTag.Builder>public PolicyTag.Builder mergeFrom(PolicyTag other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>public PolicyTag.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<PolicyTag.Builder>IOExceptionpublic String getName()
Identifier. Resource name of this policy tag, whose format is:
"projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. Resource name of this policy tag, whose format is:
"projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setName(String value)
Identifier. Resource name of this policy tag, whose format is:
"projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The name to set.public PolicyTag.Builder clearName()
Identifier. Resource name of this policy tag, whose format is:
"projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];public PolicyTag.Builder setNameBytes(com.google.protobuf.ByteString value)
Identifier. Resource name of this policy tag, whose format is:
"projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The bytes for name to set.public String getDisplayName()
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setDisplayName(String value)
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The displayName to set.public PolicyTag.Builder clearDisplayName()
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];public PolicyTag.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for displayName to set.public String getDescription()
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
string description = 3;getDescription in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
string description = 3;getDescriptionBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setDescription(String value)
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
string description = 3;value - The description to set.public PolicyTag.Builder clearDescription()
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
string description = 3;public PolicyTag.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
string description = 3;value - The bytes for description to set.public String getParentPolicyTag()
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
string parent_policy_tag = 4;getParentPolicyTag in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getParentPolicyTagBytes()
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
string parent_policy_tag = 4;getParentPolicyTagBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setParentPolicyTag(String value)
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
string parent_policy_tag = 4;value - The parentPolicyTag to set.public PolicyTag.Builder clearParentPolicyTag()
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
string parent_policy_tag = 4;public PolicyTag.Builder setParentPolicyTagBytes(com.google.protobuf.ByteString value)
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
string parent_policy_tag = 4;value - The bytes for parentPolicyTag to set.public com.google.protobuf.ProtocolStringList getChildPolicyTagsList()
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChildPolicyTagsList in interface PolicyTagOrBuilderpublic int getChildPolicyTagsCount()
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChildPolicyTagsCount in interface PolicyTagOrBuilderpublic String getChildPolicyTags(int index)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChildPolicyTags in interface PolicyTagOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getChildPolicyTagsBytes(int index)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChildPolicyTagsBytes in interface PolicyTagOrBuilderindex - The index of the value to return.public PolicyTag.Builder setChildPolicyTags(int index, String value)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index to set the value at.value - The childPolicyTags to set.public PolicyTag.Builder addChildPolicyTags(String value)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The childPolicyTags to add.public PolicyTag.Builder addAllChildPolicyTags(Iterable<String> values)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
values - The childPolicyTags to add.public PolicyTag.Builder clearChildPolicyTags()
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public PolicyTag.Builder addChildPolicyTagsBytes(com.google.protobuf.ByteString value)
Output only. Resource names of child policy tags of this policy tag.
repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The bytes of the childPolicyTags to add.public final PolicyTag.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>public final PolicyTag.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder>Copyright © 2025 Google LLC. All rights reserved.