Class ContentItem.Builder (3.52.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()

public boolean hasValue()

String data to inspect or redact.

string value = 3;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeByteItem(ByteContentItem value)

public ContentItem.Builder mergeByteItem(ByteContentItem value)

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

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

Parameter
Name Description
value ByteContentItem
Returns
Type Description
ContentItem.Builder

mergeFrom(ContentItem other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTable(Table value)

public ContentItem.Builder mergeTable(Table value)

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;

Parameter
Name Description
value Table
Returns
Type Description
ContentItem.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setByteItem(ByteContentItem value)

public ContentItem.Builder setByteItem(ByteContentItem value)

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

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

Parameter
Name Description
value ByteContentItem
Returns
Type Description
ContentItem.Builder

setByteItem(ByteContentItem.Builder builderForValue)

public ContentItem.Builder setByteItem(ByteContentItem.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue ByteContentItem.Builder
Returns
Type Description
ContentItem.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTable(Table value)

public ContentItem.Builder setTable(Table value)

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;

Parameter
Name Description
value Table
Returns
Type Description
ContentItem.Builder

setTable(Table.Builder builderForValue)

public ContentItem.Builder setTable(Table.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Table.Builder
Returns
Type Description
ContentItem.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public ContentItem.Builder setValue(String value)

String data to inspect or redact.

string value = 3;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ContentItem.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ContentItem.Builder setValueBytes(ByteString value)

String data to inspect or redact.

string value = 3;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ContentItem.Builder

This builder for chaining.