Class SerializedPolicyTag.Builder (1.89.0)

public static final class SerializedPolicyTag.Builder extends GeneratedMessage.Builder<SerializedPolicyTag.Builder> implements SerializedPolicyTagOrBuilder

Message representing one policy tag when exported as a nested proto.

Protobuf type google.cloud.datacatalog.v1beta1.SerializedPolicyTag

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllChildPolicyTags(Iterable<? extends SerializedPolicyTag> values)

public SerializedPolicyTag.Builder addAllChildPolicyTags(Iterable<? extends SerializedPolicyTag> values)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag>
Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTags(SerializedPolicyTag value)

public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag value)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
value SerializedPolicyTag
Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTags(SerializedPolicyTag.Builder builderForValue)

public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag.Builder builderForValue)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
builderForValue SerializedPolicyTag.Builder
Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTags(int index, SerializedPolicyTag value)

public SerializedPolicyTag.Builder addChildPolicyTags(int index, SerializedPolicyTag value)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameters
Name Description
index int
value SerializedPolicyTag
Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

public SerializedPolicyTag.Builder addChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameters
Name Description
index int
builderForValue SerializedPolicyTag.Builder
Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTagsBuilder()

public SerializedPolicyTag.Builder addChildPolicyTagsBuilder()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
SerializedPolicyTag.Builder

addChildPolicyTagsBuilder(int index)

public SerializedPolicyTag.Builder addChildPolicyTagsBuilder(int index)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
index int
Returns
Type Description
SerializedPolicyTag.Builder

build()

public SerializedPolicyTag build()
Returns
Type Description
SerializedPolicyTag

buildPartial()

public SerializedPolicyTag buildPartial()
Returns
Type Description
SerializedPolicyTag

clear()

public SerializedPolicyTag.Builder clear()
Returns
Type Description
SerializedPolicyTag.Builder
Overrides

clearChildPolicyTags()

public SerializedPolicyTag.Builder clearChildPolicyTags()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
SerializedPolicyTag.Builder

clearDescription()

public SerializedPolicyTag.Builder clearDescription()

Description of the serialized policy tag. 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 = 3;

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

clearDisplayName()

public SerializedPolicyTag.Builder clearDisplayName()

Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

clearPolicyTag()

public SerializedPolicyTag.Builder clearPolicyTag()

Resource name of the policy tag.

This field will be ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

getChildPolicyTags(int index)

public SerializedPolicyTag getChildPolicyTags(int index)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
index int
Returns
Type Description
SerializedPolicyTag

getChildPolicyTagsBuilder(int index)

public SerializedPolicyTag.Builder getChildPolicyTagsBuilder(int index)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
index int
Returns
Type Description
SerializedPolicyTag.Builder

getChildPolicyTagsBuilderList()

public List<SerializedPolicyTag.Builder> getChildPolicyTagsBuilderList()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
List<Builder>

getChildPolicyTagsCount()

public int getChildPolicyTagsCount()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
int

getChildPolicyTagsList()

public List<SerializedPolicyTag> getChildPolicyTagsList()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
List<SerializedPolicyTag>

getChildPolicyTagsOrBuilder(int index)

public SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder(int index)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
index int
Returns
Type Description
SerializedPolicyTagOrBuilder

getChildPolicyTagsOrBuilderList()

public List<? extends SerializedPolicyTagOrBuilder> getChildPolicyTagsOrBuilderList()

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Returns
Type Description
List<? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder>

getDefaultInstanceForType()

public SerializedPolicyTag getDefaultInstanceForType()
Returns
Type Description
SerializedPolicyTag

getDescription()

public String getDescription()

Description of the serialized policy tag. 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 = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the serialized policy tag. 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 = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getPolicyTag()

public String getPolicyTag()

Resource name of the policy tag.

This field will be ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
Type Description
String

The policyTag.

getPolicyTagBytes()

public ByteString getPolicyTagBytes()

Resource name of the policy tag.

This field will be ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
Type Description
ByteString

The bytes for policyTag.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SerializedPolicyTag other)

public SerializedPolicyTag.Builder mergeFrom(SerializedPolicyTag other)
Parameter
Name Description
other SerializedPolicyTag
Returns
Type Description
SerializedPolicyTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerializedPolicyTag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SerializedPolicyTag.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SerializedPolicyTag.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SerializedPolicyTag.Builder
Overrides

removeChildPolicyTags(int index)

public SerializedPolicyTag.Builder removeChildPolicyTags(int index)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameter
Name Description
index int
Returns
Type Description
SerializedPolicyTag.Builder

setChildPolicyTags(int index, SerializedPolicyTag value)

public SerializedPolicyTag.Builder setChildPolicyTags(int index, SerializedPolicyTag value)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameters
Name Description
index int
value SerializedPolicyTag
Returns
Type Description
SerializedPolicyTag.Builder

setChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

public SerializedPolicyTag.Builder setChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue)

Children of the policy tag if any.

repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;

Parameters
Name Description
index int
builderForValue SerializedPolicyTag.Builder
Returns
Type Description
SerializedPolicyTag.Builder

setDescription(String value)

public SerializedPolicyTag.Builder setDescription(String value)

Description of the serialized policy tag. 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 = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SerializedPolicyTag.Builder setDescriptionBytes(ByteString value)

Description of the serialized policy tag. 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 = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

setDisplayName(String value)

public SerializedPolicyTag.Builder setDisplayName(String value)

Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SerializedPolicyTag.Builder setDisplayNameBytes(ByteString value)

Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

setPolicyTag(String value)

public SerializedPolicyTag.Builder setPolicyTag(String value)

Resource name of the policy tag.

This field will be ignored when calling ImportTaxonomies.

string policy_tag = 1;

Parameter
Name Description
value String

The policyTag to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.

setPolicyTagBytes(ByteString value)

public SerializedPolicyTag.Builder setPolicyTagBytes(ByteString value)

Resource name of the policy tag.

This field will be ignored when calling ImportTaxonomies.

string policy_tag = 1;

Parameter
Name Description
value ByteString

The bytes for policyTag to set.

Returns
Type Description
SerializedPolicyTag.Builder

This builder for chaining.