Class PolicyTag

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

Implements

PolicyTagOrBuilder

Fields

CHILD_POLICY_TAGS_FIELD_NUMBER

public static final int CHILD_POLICY_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_POLICY_TAG_FIELD_NUMBER

public static final int PARENT_POLICY_TAG_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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];

Returns
TypeDescription
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];

Returns
TypeDescription
ProtocolStringList

A list containing the childPolicyTags.

getDefaultInstance()

public static PolicyTag getDefaultInstance()
Returns
TypeDescription
PolicyTag

getDefaultInstanceForType()

public PolicyTag getDefaultInstanceForType()
Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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];

Returns
TypeDescription
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];

Returns
TypeDescription
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];

Returns
TypeDescription
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];

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for parentPolicyTag.

getParserForType()

public Parser<PolicyTag> getParserForType()
Returns
TypeDescription
Parser<PolicyTag>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static PolicyTag.Builder newBuilder()
Returns
TypeDescription
PolicyTag.Builder

newBuilder(PolicyTag prototype)

public static PolicyTag.Builder newBuilder(PolicyTag prototype)
Parameter
NameDescription
prototypePolicyTag
Returns
TypeDescription
PolicyTag.Builder

newBuilderForType()

public PolicyTag.Builder newBuilderForType()
Returns
TypeDescription
PolicyTag.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyTag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PolicyTag.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static PolicyTag parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PolicyTag parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyTag parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyTag parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PolicyTag parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PolicyTag parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PolicyTag> parser()
Returns
TypeDescription
Parser<PolicyTag>

toBuilder()

public PolicyTag.Builder toBuilder()
Returns
TypeDescription
PolicyTag.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException