Class TagFilter (3.85.0)

public final class TagFilter extends GeneratedMessageV3 implements TagFilterOrBuilder

A single tag to filter against.

Protobuf type google.privacy.dlp.v2.TagFilter

Implements

TagFilterOrBuilder

Static Fields

NAMESPACED_TAG_KEY_FIELD_NUMBER

public static final int NAMESPACED_TAG_KEY_FIELD_NUMBER
Field Value
Type Description
int

NAMESPACED_TAG_VALUE_FIELD_NUMBER

public static final int NAMESPACED_TAG_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TagFilter getDefaultInstance()
Returns
Type Description
TagFilter

getDescriptor()

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

newBuilder()

public static TagFilter.Builder newBuilder()
Returns
Type Description
TagFilter.Builder

newBuilder(TagFilter prototype)

public static TagFilter.Builder newBuilder(TagFilter prototype)
Parameter
Name Description
prototype TagFilter
Returns
Type Description
TagFilter.Builder

parseDelimitedFrom(InputStream input)

public static TagFilter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TagFilter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TagFilter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TagFilter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TagFilter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TagFilter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TagFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagFilter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TagFilter> parser()
Returns
Type Description
Parser<TagFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TagFilter getDefaultInstanceForType()
Returns
Type Description
TagFilter

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.

getParserForType()

public Parser<TagFilter> getParserForType()
Returns
Type Description
Parser<TagFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TagFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TagFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException