Send feedback
Class SerializedTaxonomy.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.4 keyboard_arrow_down
public static final class SerializedTaxonomy . Builder extends GeneratedMessageV3 . 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
Methods
public SerializedTaxonomy . Builder addAllPolicyTags ( Iterable <? extends SerializedPolicyTag > values )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Name Description values Iterable <? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag >
Returns
public SerializedTaxonomy . Builder addPolicyTags ( SerializedPolicyTag value )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
public SerializedTaxonomy . Builder addPolicyTags ( SerializedPolicyTag . Builder builderForValue )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
public SerializedTaxonomy . Builder addPolicyTags ( int index , SerializedPolicyTag value )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameters
Returns
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;
Parameters
Returns
public SerializedPolicyTag . Builder addPolicyTagsBuilder ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
public SerializedPolicyTag . Builder addPolicyTagsBuilder ( int index )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SerializedTaxonomy . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public SerializedTaxonomy build ()
Returns
buildPartial()
public SerializedTaxonomy buildPartial ()
Returns
clear()
public SerializedTaxonomy . Builder clear ()
Returns
Overrides
clearDescription()
public SerializedTaxonomy . Builder 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
clearDisplayName()
public SerializedTaxonomy . Builder 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
clearField(Descriptors.FieldDescriptor field)
public SerializedTaxonomy . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SerializedTaxonomy . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public SerializedTaxonomy . Builder clearPolicyTags ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
clone()
public SerializedTaxonomy . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public SerializedTaxonomy getDefaultInstanceForType ()
Returns
getDescription()
public String 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;
Returns
Type Description String The description.
getDescriptionBytes()
public 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;
Returns
Type Description ByteString The bytes for description.
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getDisplayName()
public String getDisplayName ()
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The displayName.
getDisplayNameBytes()
public 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];
Returns
Type Description ByteString The bytes for displayName.
public SerializedPolicyTag getPolicyTags ( int index )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
public SerializedPolicyTag . Builder getPolicyTagsBuilder ( int index )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
public List<SerializedPolicyTag . Builder > getPolicyTagsBuilderList ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
public int getPolicyTagsCount ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
public List<SerializedPolicyTag> getPolicyTagsList ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
public SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder ( int index )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
public List <? extends SerializedPolicyTagOrBuilder > getPolicyTagsOrBuilderList ()
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Returns
Type Description List <? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(SerializedTaxonomy other)
public SerializedTaxonomy . Builder mergeFrom ( SerializedTaxonomy other )
Parameter
Returns
public SerializedTaxonomy . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SerializedTaxonomy . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SerializedTaxonomy . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public SerializedTaxonomy . Builder removePolicyTags ( int index )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameter
Returns
setDescription(String value)
public SerializedTaxonomy . Builder setDescription ( String value )
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;
Parameter
Name Description value String
The description to set.
Returns
setDescriptionBytes(ByteString value)
public SerializedTaxonomy . Builder setDescriptionBytes ( ByteString value )
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;
Parameter
Name Description value ByteString
The bytes for description to set.
Returns
setDisplayName(String value)
public SerializedTaxonomy . Builder setDisplayName ( String value )
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The displayName to set.
Returns
setDisplayNameBytes(ByteString value)
public SerializedTaxonomy . Builder setDisplayNameBytes ( ByteString value )
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for displayName to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SerializedTaxonomy . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public SerializedTaxonomy . Builder setPolicyTags ( int index , SerializedPolicyTag value )
Top level policy tags associated with the taxonomy if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SerializedTaxonomy . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SerializedTaxonomy . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]