Class TagFilter.Builder (3.82.0)

public static final class TagFilter.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TagFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TagFilter.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public TagFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public TagFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TagFilter.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TagFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TagFilter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TagFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public TagFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TagFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TagFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TagFilter.Builder
Overrides