Package com.google.cloud.datacatalog.v1
Class Taxonomy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.datacatalog.v1.Taxonomy
-
- All Implemented Interfaces:
TaxonomyOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Taxonomy extends com.google.protobuf.GeneratedMessageV3 implements TaxonomyOrBuilder
A taxonomy is a collection of hierarchical policy tags that classify data along a common axis. For example, a "data sensitivity" taxonomy might contain the following policy tags: ``` + PII + Account number + Age + SSN + Zipcode + Financials + Revenue ``` A "data origin" taxonomy might contain the following policy tags: ``` + User data + Employee data + Partner data + Public data ```
Protobuf typegoogle.cloud.datacatalog.v1.Taxonomy
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Taxonomy.Builder
A taxonomy is a collection of hierarchical policy tags that classify data along a common axis.static class
Taxonomy.PolicyType
Defines policy types where the policy tags can be used for.static class
Taxonomy.Service
The source system of the Taxonomy.static interface
Taxonomy.ServiceOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVATED_POLICY_TYPES_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
POLICY_TAG_COUNT_FIELD_NUMBER
static int
SERVICE_FIELD_NUMBER
static int
TAXONOMY_TIMESTAMPS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Taxonomy.PolicyType
getActivatedPolicyTypes(int index)
Optional.int
getActivatedPolicyTypesCount()
Optional.List<Taxonomy.PolicyType>
getActivatedPolicyTypesList()
Optional.int
getActivatedPolicyTypesValue(int index)
Optional.List<Integer>
getActivatedPolicyTypesValueList()
Optional.static Taxonomy
getDefaultInstance()
Taxonomy
getDefaultInstanceForType()
String
getDescription()
Optional.com.google.protobuf.ByteString
getDescriptionBytes()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Taxonomy>
getParserForType()
int
getPolicyTagCount()
Output only.int
getSerializedSize()
Taxonomy.Service
getService()
Output only.Taxonomy.ServiceOrBuilder
getServiceOrBuilder()
Output only.SystemTimestamps
getTaxonomyTimestamps()
Output only.SystemTimestampsOrBuilder
getTaxonomyTimestampsOrBuilder()
Output only.int
hashCode()
boolean
hasService()
Output only.boolean
hasTaxonomyTimestamps()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Taxonomy.Builder
newBuilder()
static Taxonomy.Builder
newBuilder(Taxonomy prototype)
Taxonomy.Builder
newBuilderForType()
protected Taxonomy.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Taxonomy
parseDelimitedFrom(InputStream input)
static Taxonomy
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Taxonomy
parseFrom(byte[] data)
static Taxonomy
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Taxonomy
parseFrom(com.google.protobuf.ByteString data)
static Taxonomy
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Taxonomy
parseFrom(com.google.protobuf.CodedInputStream input)
static Taxonomy
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Taxonomy
parseFrom(InputStream input)
static Taxonomy
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Taxonomy
parseFrom(ByteBuffer data)
static Taxonomy
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Taxonomy>
parser()
Taxonomy.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_TAG_COUNT_FIELD_NUMBER
public static final int POLICY_TAG_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAXONOMY_TIMESTAMPS_FIELD_NUMBER
public static final int TAXONOMY_TIMESTAMPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIVATED_POLICY_TYPES_FIELD_NUMBER
public static final int ACTIVATED_POLICY_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceTaxonomyOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceTaxonomyOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. User-defined name of this taxonomy. The name can't start or end with spaces, must contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDisplayName
in interfaceTaxonomyOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. User-defined name of this taxonomy. The name can't start or end with spaces, must contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDisplayNameBytes
in interfaceTaxonomyOrBuilder
- Returns:
- The bytes for displayName.
-
getDescription
public String getDescription()
Optional. Description of this taxonomy. 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDescription
in interfaceTaxonomyOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. Description of this taxonomy. 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDescriptionBytes
in interfaceTaxonomyOrBuilder
- Returns:
- The bytes for description.
-
getPolicyTagCount
public int getPolicyTagCount()
Output only. Number of policy tags in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPolicyTagCount
in interfaceTaxonomyOrBuilder
- Returns:
- The policyTagCount.
-
hasTaxonomyTimestamps
public boolean hasTaxonomyTimestamps()
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasTaxonomyTimestamps
in interfaceTaxonomyOrBuilder
- Returns:
- Whether the taxonomyTimestamps field is set.
-
getTaxonomyTimestamps
public SystemTimestamps getTaxonomyTimestamps()
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTaxonomyTimestamps
in interfaceTaxonomyOrBuilder
- Returns:
- The taxonomyTimestamps.
-
getTaxonomyTimestampsOrBuilder
public SystemTimestampsOrBuilder getTaxonomyTimestampsOrBuilder()
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTaxonomyTimestampsOrBuilder
in interfaceTaxonomyOrBuilder
-
getActivatedPolicyTypesList
public List<Taxonomy.PolicyType> getActivatedPolicyTypesList()
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActivatedPolicyTypesList
in interfaceTaxonomyOrBuilder
- Returns:
- A list containing the activatedPolicyTypes.
-
getActivatedPolicyTypesCount
public int getActivatedPolicyTypesCount()
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActivatedPolicyTypesCount
in interfaceTaxonomyOrBuilder
- Returns:
- The count of activatedPolicyTypes.
-
getActivatedPolicyTypes
public Taxonomy.PolicyType getActivatedPolicyTypes(int index)
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActivatedPolicyTypes
in interfaceTaxonomyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The activatedPolicyTypes at the given index.
-
getActivatedPolicyTypesValueList
public List<Integer> getActivatedPolicyTypesValueList()
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActivatedPolicyTypesValueList
in interfaceTaxonomyOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for activatedPolicyTypes.
-
getActivatedPolicyTypesValue
public int getActivatedPolicyTypesValue(int index)
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActivatedPolicyTypesValue
in interfaceTaxonomyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of activatedPolicyTypes at the given index.
-
hasService
public boolean hasService()
Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported.
.google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasService
in interfaceTaxonomyOrBuilder
- Returns:
- Whether the service field is set.
-
getService
public Taxonomy.Service getService()
Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported.
.google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getService
in interfaceTaxonomyOrBuilder
- Returns:
- The service.
-
getServiceOrBuilder
public Taxonomy.ServiceOrBuilder getServiceOrBuilder()
Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported.
.google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceOrBuilder
in interfaceTaxonomyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Taxonomy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Taxonomy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Taxonomy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Taxonomy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Taxonomy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Taxonomy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Taxonomy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Taxonomy.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Taxonomy.Builder newBuilder()
-
newBuilder
public static Taxonomy.Builder newBuilder(Taxonomy prototype)
-
toBuilder
public Taxonomy.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Taxonomy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Taxonomy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Taxonomy> parser()
-
getParserForType
public com.google.protobuf.Parser<Taxonomy> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Taxonomy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-