Class Taxonomy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder
- All Implemented Interfaces:
TaxonomyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Taxonomy
public static final class Taxonomy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
implements TaxonomyOrBuilder
A taxonomy is a collection of policy tags that classify data along a common axis. For instance a data *sensitivity* taxonomy could contain policy tags denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could contain policy tags to distinguish user data, employee data, partner data, public data.Protobuf type
google.cloud.datacatalog.v1beta1.Taxonomy-
Method Summary
Modifier and TypeMethodDescriptionOptional.addActivatedPolicyTypesValue(int value) Optional.addAllActivatedPolicyTypes(Iterable<? extends Taxonomy.PolicyType> values) Optional.Optional.build()clear()Optional.Optional.Required.Identifier.Output only.Output only.Output only.getActivatedPolicyTypes(int index) Optional.intOptional.Optional.intgetActivatedPolicyTypesValue(int index) Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getName()Identifier.com.google.protobuf.ByteStringIdentifier.intOutput only.Output only.Output only.Output only.Output only.Output only.Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeService(Taxonomy.Service value) Output only.Output only.setActivatedPolicyTypes(int index, Taxonomy.PolicyType value) Optional.setActivatedPolicyTypesValue(int index, int value) Optional.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPolicyTagCount(int value) Output only.setService(Taxonomy.Service value) Output only.setService(Taxonomy.Service.Builder builderForValue) Output only.Output only.setTaxonomyTimestamps(SystemTimestamps.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Taxonomy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Taxonomy.Builder>
-
mergeFrom
public Taxonomy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Taxonomy.Builder>- Throws:
IOException
-
getName
Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}".string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceTaxonomyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}".string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceTaxonomyOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}".string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}".string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}".string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. User defined name of this taxonomy. It must: 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. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceTaxonomyOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. User defined name of this taxonomy. It must: 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. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceTaxonomyOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. User defined name of this taxonomy. It must: 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. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. User defined name of this taxonomy. It must: 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. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. User defined name of this taxonomy. It must: 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. The taxonomy display name must be unique within an organization.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description of this taxonomy. 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.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceTaxonomyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description of this taxonomy. 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.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceTaxonomyOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. Description of this taxonomy. 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.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description of this taxonomy. 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.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Description of this taxonomy. 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.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getPolicyTagCount
public int getPolicyTagCount()Output only. Number of policy tags contained in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPolicyTagCountin interfaceTaxonomyOrBuilder- Returns:
- The policyTagCount.
-
setPolicyTagCount
Output only. Number of policy tags contained in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The policyTagCount to set.- Returns:
- This builder for chaining.
-
clearPolicyTagCount
Output only. Number of policy tags contained in this taxonomy.
int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasTaxonomyTimestamps
public boolean hasTaxonomyTimestamps()Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTaxonomyTimestampsin interfaceTaxonomyOrBuilder- Returns:
- Whether the taxonomyTimestamps field is set.
-
getTaxonomyTimestamps
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTaxonomyTimestampsin interfaceTaxonomyOrBuilder- Returns:
- The taxonomyTimestamps.
-
setTaxonomyTimestamps
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setTaxonomyTimestamps
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeTaxonomyTimestamps
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearTaxonomyTimestamps
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTaxonomyTimestampsBuilder
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTaxonomyTimestampsOrBuilder
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTaxonomyTimestampsOrBuilderin interfaceTaxonomyOrBuilder
-
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.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActivatedPolicyTypesListin 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.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActivatedPolicyTypesCountin interfaceTaxonomyOrBuilder- Returns:
- The count of activatedPolicyTypes.
-
getActivatedPolicyTypes
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActivatedPolicyTypesin interfaceTaxonomyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The activatedPolicyTypes at the given index.
-
setActivatedPolicyTypes
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The activatedPolicyTypes to set.- Returns:
- This builder for chaining.
-
addActivatedPolicyTypes
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
addAllActivatedPolicyTypes
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
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.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActivatedPolicyTypesValueListin 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.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActivatedPolicyTypesValuein interfaceTaxonomyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of activatedPolicyTypes at the given index.
-
setActivatedPolicyTypesValue
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for activatedPolicyTypes to set.- Returns:
- This builder for chaining.
-
addActivatedPolicyTypesValue
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
addAllActivatedPolicyTypesValue
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasServicein interfaceTaxonomyOrBuilder- Returns:
- Whether the service field is set.
-
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServicein interfaceTaxonomyOrBuilder- Returns:
- The service.
-
setService
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setService
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeService
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceOrBuilderin interfaceTaxonomyOrBuilder
-