Class SerializedPolicyTag.Builder (1.18.0)

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

A nested protocol buffer that represents a policy tag and all its descendants.

Protobuf type google.cloud.datacatalog.v1.SerializedPolicyTag

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.SerializedPolicyTag child_policy_tags = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.v1.SerializedPolicyTag>
Returns
TypeDescription
SerializedPolicyTag.Builder

addChildPolicyTags(SerializedPolicyTag value)

public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag value)

Children of the policy tag, if any.

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

Parameter
NameDescription
valueSerializedPolicyTag
Returns
TypeDescription
SerializedPolicyTag.Builder

addChildPolicyTags(SerializedPolicyTag.Builder builderForValue)

public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag.Builder builderForValue)

Children of the policy tag, if any.

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

Parameter
NameDescription
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
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.v1.SerializedPolicyTag child_policy_tags = 4;

Parameters
NameDescription
indexint
valueSerializedPolicyTag
Returns
TypeDescription
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.v1.SerializedPolicyTag child_policy_tags = 4;

Parameters
NameDescription
indexint
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
SerializedPolicyTag.Builder

addChildPolicyTagsBuilder()

public SerializedPolicyTag.Builder addChildPolicyTagsBuilder()

Children of the policy tag, if any.

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

Returns
TypeDescription
SerializedPolicyTag.Builder

addChildPolicyTagsBuilder(int index)

public SerializedPolicyTag.Builder addChildPolicyTagsBuilder(int index)

Children of the policy tag, if any.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SerializedPolicyTag build()
Returns
TypeDescription
SerializedPolicyTag

buildPartial()

public SerializedPolicyTag buildPartial()
Returns
TypeDescription
SerializedPolicyTag

clear()

public SerializedPolicyTag.Builder clear()
Returns
TypeDescription
SerializedPolicyTag.Builder
Overrides

clearChildPolicyTags()

public SerializedPolicyTag.Builder clearChildPolicyTags()

Children of the policy tag, if any.

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

Returns
TypeDescription
SerializedPolicyTag.Builder

clearDescription()

public SerializedPolicyTag.Builder clearDescription()

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

string description = 3;

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

clearDisplayName()

public SerializedPolicyTag.Builder clearDisplayName()

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

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

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyTag()

public SerializedPolicyTag.Builder clearPolicyTag()

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

clone()

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

getChildPolicyTags(int index)

public SerializedPolicyTag getChildPolicyTags(int index)

Children of the policy tag, if any.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag

getChildPolicyTagsBuilder(int index)

public SerializedPolicyTag.Builder getChildPolicyTagsBuilder(int index)

Children of the policy tag, if any.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTag.Builder

getChildPolicyTagsBuilderList()

public List<SerializedPolicyTag.Builder> getChildPolicyTagsBuilderList()

Children of the policy tag, if any.

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

Returns
TypeDescription
List<Builder>

getChildPolicyTagsCount()

public int getChildPolicyTagsCount()

Children of the policy tag, if any.

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

Returns
TypeDescription
int

getChildPolicyTagsList()

public List<SerializedPolicyTag> getChildPolicyTagsList()

Children of the policy tag, if any.

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

Returns
TypeDescription
List<SerializedPolicyTag>

getChildPolicyTagsOrBuilder(int index)

public SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder(int index)

Children of the policy tag, if any.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SerializedPolicyTagOrBuilder

getChildPolicyTagsOrBuilderList()

public List<? extends SerializedPolicyTagOrBuilder> getChildPolicyTagsOrBuilderList()

Children of the policy tag, if any.

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

Returns
TypeDescription
List<? extends com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder>

getDefaultInstanceForType()

public SerializedPolicyTag getDefaultInstanceForType()
Returns
TypeDescription
SerializedPolicyTag

getDescription()

public String getDescription()

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

string description = 3;

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 policy tag. At most 200 bytes when encoded in UTF-8.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getPolicyTag()

public String getPolicyTag()

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
TypeDescription
String

The policyTag.

getPolicyTagBytes()

public ByteString getPolicyTagBytes()

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

string policy_tag = 1;

Returns
TypeDescription
ByteString

The bytes for policyTag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SerializedPolicyTag other)

public SerializedPolicyTag.Builder mergeFrom(SerializedPolicyTag other)
Parameter
NameDescription
otherSerializedPolicyTag
Returns
TypeDescription
SerializedPolicyTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeChildPolicyTags(int index)

public SerializedPolicyTag.Builder removeChildPolicyTags(int index)

Children of the policy tag, if any.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.SerializedPolicyTag child_policy_tags = 4;

Parameters
NameDescription
indexint
valueSerializedPolicyTag
Returns
TypeDescription
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.v1.SerializedPolicyTag child_policy_tags = 4;

Parameters
NameDescription
indexint
builderForValueSerializedPolicyTag.Builder
Returns
TypeDescription
SerializedPolicyTag.Builder

setDescription(String value)

public SerializedPolicyTag.Builder setDescription(String value)

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SerializedPolicyTag.Builder setDescriptionBytes(ByteString value)

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

setDisplayName(String value)

public SerializedPolicyTag.Builder setDisplayName(String value)

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

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SerializedPolicyTag.Builder setDisplayNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicyTag(String value)

public SerializedPolicyTag.Builder setPolicyTag(String value)

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

string policy_tag = 1;

Parameter
NameDescription
valueString

The policyTag to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

setPolicyTagBytes(ByteString value)

public SerializedPolicyTag.Builder setPolicyTagBytes(ByteString value)

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

string policy_tag = 1;

Parameter
NameDescription
valueByteString

The bytes for policyTag to set.

Returns
TypeDescription
SerializedPolicyTag.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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