public static final class PolicyTag.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyTag.Builder> implements PolicyTagOrBuilder
Denotes one policy tag in a taxonomy, for example, SSN. Policy tags can be defined in a hierarchy. For example: ``` + Geolocation + LatLong + City + ZipCode ``` Where the "Geolocation" policy tag contains three children.Protobuf type
google.cloud.datacatalog.v1.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()
Output only.
|
PolicyTag.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PolicyTag.Builder |
clearParentPolicyTag()
Resource name of this policy tag's parent 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()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
String |
getParentPolicyTag()
Resource name of this policy tag's parent policy tag.
|
com.google.protobuf.ByteString |
getParentPolicyTagBytes()
Resource name of this policy tag's parent 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)
Output only.
|
PolicyTag.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
PolicyTag.Builder |
setParentPolicyTag(String value)
Resource name of this policy tag's parent policy tag.
|
PolicyTag.Builder |
setParentPolicyTagBytes(com.google.protobuf.ByteString value)
Resource name of this policy tag's parent 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, internalGetMutableMapField, 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, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic 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()
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setName(String value)
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public PolicyTag.Builder clearName()
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public PolicyTag.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getDisplayName()
Required. User-defined name of this policy tag. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and 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. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and 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. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and 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. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and 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. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and 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. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
string description = 3;getDescription in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
string description = 3;getDescriptionBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setDescription(String value)
Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
string description = 3;value - The description to set.public PolicyTag.Builder clearDescription()
Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
string description = 3;public PolicyTag.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
string description = 3;value - The bytes for description to set.public String getParentPolicyTag()
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
string parent_policy_tag = 4;getParentPolicyTag in interface PolicyTagOrBuilderpublic com.google.protobuf.ByteString getParentPolicyTagBytes()
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
string parent_policy_tag = 4;getParentPolicyTagBytes in interface PolicyTagOrBuilderpublic PolicyTag.Builder setParentPolicyTag(String value)
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
string parent_policy_tag = 4;value - The parentPolicyTag to set.public PolicyTag.Builder clearParentPolicyTag()
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
string parent_policy_tag = 4;public PolicyTag.Builder setParentPolicyTagBytes(com.google.protobuf.ByteString value)
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
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 © 2023 Google LLC. All rights reserved.