public static final class TagFilter.Builder extends GeneratedMessage.Builder<TagFilter.Builder> implements TagFilterOrBuilderA single tag to filter against.
Protobuf type google.privacy.dlp.v2.TagFilter
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TagFilter.BuilderImplements
TagFilterOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TagFilter.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TagFilter.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for namespacedTagValue to set. |
| Returns | |
|---|---|
| Type | Description |
TagFilter.Builder |
This builder for chaining. |