Class SerializedTaxonomy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SerializedTaxonomy.Builder>
com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder
- All Implemented Interfaces:
SerializedTaxonomyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SerializedTaxonomy
public static final class SerializedTaxonomy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SerializedTaxonomy.Builder>
implements SerializedTaxonomyOrBuilder
Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation.Protobuf type
google.cloud.datacatalog.v1beta1.SerializedTaxonomy-
Method Summary
Modifier and TypeMethodDescriptionA list of policy types that are activated for a taxonomy.addActivatedPolicyTypesValue(int value) A list of policy types that are activated for a taxonomy.addAllActivatedPolicyTypes(Iterable<? extends Taxonomy.PolicyType> values) A list of policy types that are activated for a taxonomy.A list of policy types that are activated for a taxonomy.addAllPolicyTags(Iterable<? extends SerializedPolicyTag> values) Top level policy tags associated with the taxonomy if any.addPolicyTags(int index, SerializedPolicyTag value) Top level policy tags associated with the taxonomy if any.addPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Top level policy tags associated with the taxonomy if any.addPolicyTags(SerializedPolicyTag value) Top level policy tags associated with the taxonomy if any.addPolicyTags(SerializedPolicyTag.Builder builderForValue) Top level policy tags associated with the taxonomy if any.Top level policy tags associated with the taxonomy if any.addPolicyTagsBuilder(int index) Top level policy tags associated with the taxonomy if any.build()clear()A list of policy types that are activated for a taxonomy.Description of the serialized taxonomy.Required.Top level policy tags associated with the taxonomy if any.getActivatedPolicyTypes(int index) A list of policy types that are activated for a taxonomy.intA list of policy types that are activated for a taxonomy.A list of policy types that are activated for a taxonomy.intgetActivatedPolicyTypesValue(int index) A list of policy types that are activated for a taxonomy.A list of policy types that are activated for a taxonomy.Description of the serialized taxonomy.com.google.protobuf.ByteStringDescription of the serialized taxonomy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getPolicyTags(int index) Top level policy tags associated with the taxonomy if any.getPolicyTagsBuilder(int index) Top level policy tags associated with the taxonomy if any.Top level policy tags associated with the taxonomy if any.intTop level policy tags associated with the taxonomy if any.Top level policy tags associated with the taxonomy if any.getPolicyTagsOrBuilder(int index) Top level policy tags associated with the taxonomy if any.List<? extends SerializedPolicyTagOrBuilder>Top level policy tags associated with the taxonomy if any.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SerializedTaxonomy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removePolicyTags(int index) Top level policy tags associated with the taxonomy if any.setActivatedPolicyTypes(int index, Taxonomy.PolicyType value) A list of policy types that are activated for a taxonomy.setActivatedPolicyTypesValue(int index, int value) A list of policy types that are activated for a taxonomy.setDescription(String value) Description of the serialized taxonomy.setDescriptionBytes(com.google.protobuf.ByteString value) Description of the serialized taxonomy.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setPolicyTags(int index, SerializedPolicyTag value) Top level policy tags associated with the taxonomy if any.setPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Top level policy tags associated with the taxonomy if any.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<SerializedTaxonomy.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<SerializedTaxonomy.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<SerializedTaxonomy.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<SerializedTaxonomy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SerializedTaxonomy.Builder>
-
mergeFrom
public SerializedTaxonomy.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<SerializedTaxonomy.Builder>- Throws:
IOException
-
getDisplayName
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceSerializedTaxonomyOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceSerializedTaxonomyOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 2;- Specified by:
getDescriptionin interfaceSerializedTaxonomyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 2;- Specified by:
getDescriptionBytesin interfaceSerializedTaxonomyOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getPolicyTagsList
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;- Specified by:
getPolicyTagsListin interfaceSerializedTaxonomyOrBuilder
-
getPolicyTagsCount
public int getPolicyTagsCount()Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;- Specified by:
getPolicyTagsCountin interfaceSerializedTaxonomyOrBuilder
-
getPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;- Specified by:
getPolicyTagsin interfaceSerializedTaxonomyOrBuilder
-
setPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
setPolicyTags
public SerializedTaxonomy.Builder setPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addPolicyTags
public SerializedTaxonomy.Builder addPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addAllPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
clearPolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
removePolicyTags
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
getPolicyTagsBuilder
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
getPolicyTagsOrBuilder
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;- Specified by:
getPolicyTagsOrBuilderin interfaceSerializedTaxonomyOrBuilder
-
getPolicyTagsOrBuilderList
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;- Specified by:
getPolicyTagsOrBuilderListin interfaceSerializedTaxonomyOrBuilder
-
addPolicyTagsBuilder
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
addPolicyTagsBuilder
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
getPolicyTagsBuilderList
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; -
getActivatedPolicyTypesList
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Specified by:
getActivatedPolicyTypesListin interfaceSerializedTaxonomyOrBuilder- Returns:
- A list containing the activatedPolicyTypes.
-
getActivatedPolicyTypesCount
public int getActivatedPolicyTypesCount()A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Specified by:
getActivatedPolicyTypesCountin interfaceSerializedTaxonomyOrBuilder- Returns:
- The count of activatedPolicyTypes.
-
getActivatedPolicyTypes
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Specified by:
getActivatedPolicyTypesin interfaceSerializedTaxonomyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The activatedPolicyTypes at the given index.
-
setActivatedPolicyTypes
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Parameters:
index- The index to set the value at.value- The activatedPolicyTypes to set.- Returns:
- This builder for chaining.
-
addActivatedPolicyTypes
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Parameters:
value- The activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
addAllActivatedPolicyTypes
public SerializedTaxonomy.Builder addAllActivatedPolicyTypes(Iterable<? extends Taxonomy.PolicyType> values) A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Parameters:
values- The activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
clearActivatedPolicyTypes
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Returns:
- This builder for chaining.
-
getActivatedPolicyTypesValueList
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Specified by:
getActivatedPolicyTypesValueListin interfaceSerializedTaxonomyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for activatedPolicyTypes.
-
getActivatedPolicyTypesValue
public int getActivatedPolicyTypesValue(int index) A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Specified by:
getActivatedPolicyTypesValuein interfaceSerializedTaxonomyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of activatedPolicyTypes at the given index.
-
setActivatedPolicyTypesValue
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- 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
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Parameters:
value- The enum numeric value on the wire for activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-
addAllActivatedPolicyTypesValue
A list of policy types that are activated for a taxonomy.
repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4;- Parameters:
values- The enum numeric values on the wire for activatedPolicyTypes to add.- Returns:
- This builder for chaining.
-