Class SerializedTaxonomy.Builder (1.17.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPolicyTags(Iterable<? extends SerializedPolicyTag> values)

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
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag>
Returns
TypeDescription
SerializedTaxonomy.Builder

addPolicyTags(SerializedPolicyTag value)

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
NameDescription
valueSerializedPolicyTag
Returns
TypeDescription
SerializedTaxonomy.Builder

addPolicyTags(SerializedPolicyTag.Builder builderForValue)

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
NameDescription
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
SerializedTaxonomy.Builder

addPolicyTags(int index, SerializedPolicyTag value)

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
NameDescription
indexint
valueSerializedPolicyTag
Returns
TypeDescription
SerializedTaxonomy.Builder

addPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

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
NameDescription
indexint
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
SerializedTaxonomy.Builder

addPolicyTagsBuilder()

public SerializedPolicyTag.Builder addPolicyTagsBuilder()

Top level policy tags associated with the taxonomy if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;

Returns
TypeDescription
SerializedPolicyTag.Builder

addPolicyTagsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SerializedTaxonomy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

build()

public SerializedTaxonomy build()
Returns
TypeDescription
SerializedTaxonomy

buildPartial()

public SerializedTaxonomy buildPartial()
Returns
TypeDescription
SerializedTaxonomy

clear()

public SerializedTaxonomy.Builder clear()
Returns
TypeDescription
SerializedTaxonomy.Builder
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
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

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
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SerializedTaxonomy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SerializedTaxonomy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

clearPolicyTags()

public SerializedTaxonomy.Builder clearPolicyTags()

Top level policy tags associated with the taxonomy if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;

Returns
TypeDescription
SerializedTaxonomy.Builder

clone()

public SerializedTaxonomy.Builder clone()
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

getDefaultInstanceForType()

public SerializedTaxonomy getDefaultInstanceForType()
Returns
TypeDescription
SerializedTaxonomy

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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for displayName.

getPolicyTags(int index)

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
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag

getPolicyTagsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag.Builder

getPolicyTagsBuilderList()

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
TypeDescription
List<Builder>

getPolicyTagsCount()

public int getPolicyTagsCount()

Top level policy tags associated with the taxonomy if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;

Returns
TypeDescription
int

getPolicyTagsList()

public List<SerializedPolicyTag> getPolicyTagsList()

Top level policy tags associated with the taxonomy if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3;

Returns
TypeDescription
List<SerializedPolicyTag>

getPolicyTagsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTagOrBuilder

getPolicyTagsOrBuilderList()

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
TypeDescription
List<? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SerializedTaxonomy other)

public SerializedTaxonomy.Builder mergeFrom(SerializedTaxonomy other)
Parameter
NameDescription
otherSerializedTaxonomy
Returns
TypeDescription
SerializedTaxonomy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerializedTaxonomy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SerializedTaxonomy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SerializedTaxonomy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

removePolicyTags(int index)

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
NameDescription
indexint
Returns
TypeDescription
SerializedTaxonomy.Builder

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
NameDescription
valueString

The description to set.

Returns
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
SerializedTaxonomy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SerializedTaxonomy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

setPolicyTags(int index, SerializedPolicyTag value)

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
NameDescription
indexint
valueSerializedPolicyTag
Returns
TypeDescription
SerializedTaxonomy.Builder

setPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

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
NameDescription
indexint
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
SerializedTaxonomy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SerializedTaxonomy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SerializedTaxonomy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SerializedTaxonomy.Builder
Overrides