public static final class Taxonomy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder> 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 type
google.cloud.datacatalog.v1.TaxonomygetAllFields, 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<Taxonomy.Builder>public Taxonomy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.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<Taxonomy.Builder>public Taxonomy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Taxonomy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Taxonomy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Taxonomy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>public Taxonomy.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<Taxonomy.Builder>public Taxonomy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>public Taxonomy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>public Taxonomy.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<Taxonomy.Builder>public Taxonomy.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<Taxonomy.Builder>public Taxonomy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Taxonomy.Builder>public Taxonomy.Builder mergeFrom(Taxonomy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>public Taxonomy.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<Taxonomy.Builder>IOExceptionpublic 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];getName in interface TaxonomyOrBuilderpublic 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];getNameBytes in interface TaxonomyOrBuilderpublic Taxonomy.Builder setName(String value)
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];value - The name to set.public Taxonomy.Builder clearName()
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];public Taxonomy.Builder setNameBytes(com.google.protobuf.ByteString value)
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];value - The bytes for name to set.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];getDisplayName in interface TaxonomyOrBuilderpublic 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];getDisplayNameBytes in interface TaxonomyOrBuilderpublic Taxonomy.Builder setDisplayName(String value)
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];value - The displayName to set.public Taxonomy.Builder clearDisplayName()
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];public Taxonomy.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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];value - The bytes for displayName to set.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];getDescription in interface TaxonomyOrBuilderpublic 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];getDescriptionBytes in interface TaxonomyOrBuilderpublic Taxonomy.Builder setDescription(String value)
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];value - The description to set.public Taxonomy.Builder clearDescription()
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];public Taxonomy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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];value - The bytes for description to set.public int getPolicyTagCount()
Output only. Number of policy tags in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getPolicyTagCount in interface TaxonomyOrBuilderpublic Taxonomy.Builder setPolicyTagCount(int value)
Output only. Number of policy tags in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The policyTagCount to set.public Taxonomy.Builder clearPolicyTagCount()
Output only. Number of policy tags in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];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];
hasTaxonomyTimestamps in interface TaxonomyOrBuilderpublic 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];
getTaxonomyTimestamps in interface TaxonomyOrBuilderpublic Taxonomy.Builder setTaxonomyTimestamps(SystemTimestamps value)
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Taxonomy.Builder setTaxonomyTimestamps(SystemTimestamps.Builder builderForValue)
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Taxonomy.Builder mergeTaxonomyTimestamps(SystemTimestamps value)
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Taxonomy.Builder clearTaxonomyTimestamps()
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SystemTimestamps.Builder getTaxonomyTimestampsBuilder()
Output only. Creation and modification timestamps of this taxonomy.
.google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
getTaxonomyTimestampsOrBuilder in interface TaxonomyOrBuilderpublic 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];
getActivatedPolicyTypesList in interface TaxonomyOrBuilderpublic 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];
getActivatedPolicyTypesCount in interface TaxonomyOrBuilderpublic 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];
getActivatedPolicyTypes in interface TaxonomyOrBuilderindex - The index of the element to return.public Taxonomy.Builder setActivatedPolicyTypes(int index, Taxonomy.PolicyType value)
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];
index - The index to set the value at.value - The activatedPolicyTypes to set.public Taxonomy.Builder addActivatedPolicyTypes(Taxonomy.PolicyType value)
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];
value - The activatedPolicyTypes to add.public Taxonomy.Builder addAllActivatedPolicyTypes(Iterable<? extends Taxonomy.PolicyType> values)
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];
values - The activatedPolicyTypes to add.public Taxonomy.Builder clearActivatedPolicyTypes()
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];
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];
getActivatedPolicyTypesValueList in interface TaxonomyOrBuilderpublic 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];
getActivatedPolicyTypesValue in interface TaxonomyOrBuilderindex - The index of the value to return.public Taxonomy.Builder setActivatedPolicyTypesValue(int index, int value)
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];
index - The index to set the value at.value - The enum numeric value on the wire for activatedPolicyTypes to set.public Taxonomy.Builder addActivatedPolicyTypesValue(int value)
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];
value - The enum numeric value on the wire for activatedPolicyTypes to add.public Taxonomy.Builder addAllActivatedPolicyTypesValue(Iterable<Integer> values)
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];
values - The enum numeric values on the wire for activatedPolicyTypes to add.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];
hasService in interface TaxonomyOrBuilderpublic 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];
getService in interface TaxonomyOrBuilderpublic Taxonomy.Builder setService(Taxonomy.Service value)
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];
public Taxonomy.Builder setService(Taxonomy.Service.Builder builderForValue)
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];
public Taxonomy.Builder mergeService(Taxonomy.Service value)
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];
public Taxonomy.Builder clearService()
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];
public Taxonomy.Service.Builder getServiceBuilder()
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];
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];
getServiceOrBuilder in interface TaxonomyOrBuilderpublic final Taxonomy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>public final Taxonomy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Taxonomy.Builder>Copyright © 2023 Google LLC. All rights reserved.