- 1.59.0 (latest)
- 1.58.0
- 1.57.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.5
- 1.8.4
- 1.7.2
- 1.6.2
- 1.5.4
public final class PolicyTag extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PolicyTagImplements
PolicyTagOrBuilderFields
CHILD_POLICY_TAGS_FIELD_NUMBER
public static final int CHILD_POLICY_TAGS_FIELD_NUMBER
Type | Description |
int |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Type | Description |
int |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
PARENT_POLICY_TAG_FIELD_NUMBER
public static final int PARENT_POLICY_TAG_FIELD_NUMBER
Type | Description |
int |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getChildPolicyTags(int index)
public 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];
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The childPolicyTags at the given index. |
getChildPolicyTagsBytes(int index)
public 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];
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the childPolicyTags at the given index. |
getChildPolicyTagsCount()
public 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];
Type | Description |
int | The count of childPolicyTags. |
getChildPolicyTagsList()
public 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];
Type | Description |
ProtocolStringList | A list containing the childPolicyTags. |
getDefaultInstance()
public static PolicyTag getDefaultInstance()
Type | Description |
PolicyTag |
getDefaultInstanceForType()
public PolicyTag getDefaultInstanceForType()
Type | Description |
PolicyTag |
getDescription()
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;
Type | Description |
String | The description. |
getDescriptionBytes()
public 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;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDisplayName()
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];
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public 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];
Type | Description |
ByteString | The bytes for displayName. |
getName()
public 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.<br
/><br />
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public 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.<br
/><br />
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getParentPolicyTag()
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;
Type | Description |
String | The parentPolicyTag. |
getParentPolicyTagBytes()
public 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;
Type | Description |
ByteString | The bytes for parentPolicyTag. |
getParserForType()
public Parser<PolicyTag> getParserForType()
Type | Description |
Parser<PolicyTag> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilder()
public static PolicyTag.Builder newBuilder()
Type | Description |
PolicyTag.Builder |
newBuilder(PolicyTag prototype)
public static PolicyTag.Builder newBuilder(PolicyTag prototype)
Name | Description |
prototype | PolicyTag |
Type | Description |
PolicyTag.Builder |
newBuilderForType()
public PolicyTag.Builder newBuilderForType()
Type | Description |
PolicyTag.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PolicyTag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PolicyTag.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
parseDelimitedFrom(InputStream input)
public static PolicyTag parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PolicyTag parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PolicyTag parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PolicyTag parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PolicyTag parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PolicyTag parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyTag |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PolicyTag> parser()
Type | Description |
Parser<PolicyTag> |
toBuilder()
public PolicyTag.Builder toBuilder()
Type | Description |
PolicyTag.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |