public final class PolicyTag extends GeneratedMessageV3 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
Static Fields
public static final int CHILD_POLICY_TAGS_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PARENT_POLICY_TAG_FIELD_NUMBER
public static final int PARENT_POLICY_TAG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PolicyTag getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PolicyTag.Builder newBuilder()
Returns
newBuilder(PolicyTag prototype)
public static PolicyTag.Builder newBuilder(PolicyTag prototype)
Parameter
Returns
public static PolicyTag parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PolicyTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PolicyTag parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PolicyTag parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PolicyTag parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PolicyTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PolicyTag parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PolicyTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PolicyTag parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PolicyTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PolicyTag> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The childPolicyTags at the given 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];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the childPolicyTags at the given index.
|
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];
Returns
Type | Description |
int | The count of childPolicyTags.
|
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];
Returns
getDefaultInstanceForType()
public PolicyTag getDefaultInstanceForType()
Returns
getDescription()
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;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for description.
|
getDisplayName()
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];
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public 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];
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getName()
Output only. 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) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. 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) = OUTPUT_ONLY];
Returns
getParentPolicyTag()
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;
Returns
Type | Description |
String | The parentPolicyTag.
|
getParentPolicyTagBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for parentPolicyTag.
|
getParserForType()
public Parser<PolicyTag> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PolicyTag.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PolicyTag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PolicyTag.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions