Class ContentItem.Builder (3.47.0)

public static final class ContentItem.Builder extends GeneratedMessageV3.Builder<ContentItem.Builder> implements ContentItemOrBuilder

Type of content to inspect.

Protobuf type google.privacy.dlp.v2.ContentItem

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContentItem build()
Returns
Type Description
ContentItem

buildPartial()

public ContentItem buildPartial()
Returns
Type Description
ContentItem

clear()

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

clearByteItem()

public ContentItem.Builder clearByteItem()

Content data to inspect or redact. Replaces type and data.

.google.privacy.dlp.v2.ByteContentItem byte_item = 5;

Returns
Type Description
ContentItem.Builder

clearDataItem()

public ContentItem.Builder clearDataItem()
Returns
Type Description
ContentItem.Builder

clearField(Descriptors.FieldDescriptor field)

public ContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContentItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTable()

public ContentItem.Builder clearTable()

Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.

.google.privacy.dlp.v2.Table table = 4;

Returns
Type Description
ContentItem.Builder

clearValue()

public ContentItem.Builder clearValue()

String data to inspect or redact.

string value = 3;

Returns
Type Description
ContentItem.Builder

This builder for chaining.

clone()

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

getByteItem()

public ByteContentItem getByteItem()

Content data to inspect or redact. Replaces type and data.

.google.privacy.dlp.v2.ByteContentItem byte_item = 5;

Returns
Type Description
ByteContentItem

The byteItem.

getByteItemBuilder()

public ByteContentItem.Builder getByteItemBuilder()

Content data to inspect or redact. Replaces type and data.

.google.privacy.dlp.v2.ByteContentItem byte_item = 5;

Returns
Type Description
ByteContentItem.Builder

getByteItemOrBuilder()

public ByteContentItemOrBuilder getByteItemOrBuilder()

Content data to inspect or redact. Replaces type and data.

.google.privacy.dlp.v2.ByteContentItem byte_item = 5;

Returns
Type Description
ByteContentItemOrBuilder

getDataItemCase()

public ContentItem.DataItemCase getDataItemCase()
Returns
Type Description
ContentItem.DataItemCase

getDefaultInstanceForType()

public ContentItem getDefaultInstanceForType()
Returns
Type Description
ContentItem

getDescriptorForType()

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

getTable()

public Table getTable()

Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.

.google.privacy.dlp.v2.Table table = 4;

Returns
Type Description
Table

The table.

getTableBuilder()

public Table.Builder getTableBuilder()

Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.

.google.privacy.dlp.v2.Table table = 4;

Returns
Type Description
Table.Builder

getTableOrBuilder()

public TableOrBuilder getTableOrBuilder()

Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.

.google.privacy.dlp.v2.Table table = 4;

Returns
Type Description
TableOrBuilder

getValue()

public String getValue()

String data to inspect or redact.

string value = 3;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

String data to inspect or redact.

string value = 3;

Returns
Type Description
ByteString

The bytes for value.

hasByteItem()

public boolean hasByteItem()

Content data to inspect or redact. Replaces type and data.

.google.privacy.dlp.v2.ByteContentItem byte_item = 5;

Returns
Type Description
boolean

Whether the byteItem field is set.

hasTable()

public boolean hasTable()

Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.

.google.privacy.dlp.v2.Table table = 4;

Returns
Type Description
boolean

Whether the table field is set.

hasValue()