Class TagFilter.Builder (3.91.0)

public static final class TagFilter.Builder extends GeneratedMessage.Builder<TagFilter.Builder> implements TagFilterOrBuilder

A single tag to filter against.

Protobuf type google.privacy.dlp.v2.TagFilter

Implements

TagFilterOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public TagFilter build()
Returns
Type Description
TagFilter

buildPartial()

public TagFilter buildPartial()
Returns
Type Description
TagFilter

clear()

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

clearFormat()

public TagFilter.Builder clearFormat()
Returns
Type Description
TagFilter.Builder

clearNamespacedTagKey()

public TagFilter.Builder clearNamespacedTagKey()

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Returns
Type Description
TagFilter.Builder

This builder for chaining.

clearNamespacedTagValue()

public TagFilter.Builder clearNamespacedTagValue()

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Returns
Type Description
TagFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public TagFilter getDefaultInstanceForType()
Returns
Type Description
TagFilter

getDescriptorForType()

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

getFormatCase()

public TagFilter.FormatCase getFormatCase()
Returns
Type Description
TagFilter.FormatCase

getNamespacedTagKey()

public String getNamespacedTagKey()

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Returns
Type Description
String

The namespacedTagKey.

getNamespacedTagKeyBytes()

public ByteString getNamespacedTagKeyBytes()

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Returns
Type Description
ByteString

The bytes for namespacedTagKey.

getNamespacedTagValue()

public String getNamespacedTagValue()

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Returns
Type Description
String

The namespacedTagValue.

getNamespacedTagValueBytes()

public ByteString getNamespacedTagValueBytes()

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Returns
Type Description
ByteString

The bytes for namespacedTagValue.

hasNamespacedTagKey()

public boolean hasNamespacedTagKey()

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Returns
Type Description
boolean

Whether the namespacedTagKey field is set.

hasNamespacedTagValue()

public boolean hasNamespacedTagValue()

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Returns
Type Description
boolean

Whether the namespacedTagValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TagFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNamespacedTagKey(String value)

public TagFilter.Builder setNamespacedTagKey(String value)

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Parameter
Name Description
value String

The namespacedTagKey to set.

Returns
Type Description
TagFilter.Builder

This builder for chaining.

setNamespacedTagKeyBytes(ByteString value)

public TagFilter.Builder setNamespacedTagKeyBytes(ByteString value)

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

string namespaced_tag_key = 2;

Parameter
Name Description
value ByteString

The bytes for namespacedTagKey to set.

Returns
Type Description
TagFilter.Builder

This builder for chaining.

setNamespacedTagValue(String value)

public TagFilter.Builder setNamespacedTagValue(String value)

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Parameter
Name Description
value String

The namespacedTagValue to set.

Returns
Type Description
TagFilter.Builder

This builder for chaining.

setNamespacedTagValueBytes(ByteString value)

public TagFilter.Builder setNamespacedTagValueBytes(ByteString value)

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

string namespaced_tag_value = 1;

Parameter
Name Description
value ByteString

The bytes for namespacedTagValue to set.

Returns
Type Description
TagFilter.Builder

This builder for chaining.