Class ContentItem.Builder (3.13.0)

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

Protobuf type google.privacy.dlp.v2.ContentItem

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContentItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContentItem.Builder
Overrides

build()

public ContentItem build()
Returns
TypeDescription
ContentItem

buildPartial()

public ContentItem buildPartial()
Returns
TypeDescription
ContentItem

clear()

public ContentItem.Builder clear()
Returns
TypeDescription
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
TypeDescription
ContentItem.Builder

clearDataItem()

public ContentItem.Builder clearDataItem()
Returns
TypeDescription
ContentItem.Builder

clearField(Descriptors.FieldDescriptor field)

public ContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ContentItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContentItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContentItem.Builder
Overrides

clearTable()

public ContentItem.Builder clearTable()

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

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

Returns
TypeDescription
ContentItem.Builder

clearValue()

public ContentItem.Builder clearValue()

String data to inspect or redact.

string value = 3;

Returns
TypeDescription
ContentItem.Builder

This builder for chaining.

clone()

public ContentItem.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteContentItemOrBuilder

getDataItemCase()

public ContentItem.DataItemCase getDataItemCase()
Returns
TypeDescription
ContentItem.DataItemCase

getDefaultInstanceForType()

public ContentItem getDefaultInstanceForType()
Returns
TypeDescription
ContentItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTable()

public Table getTable()

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

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

Returns
TypeDescription
Table

The table.

getTableBuilder()

public Table.Builder getTableBuilder()

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

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

Returns
TypeDescription
Table.Builder

getTableOrBuilder()

public TableOrBuilder getTableOrBuilder()

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

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

Returns
TypeDescription
TableOrBuilder

getValue()

public String getValue()

String data to inspect or redact.

string value = 3;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

String data to inspect or redact.

string value = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the byteItem field is set.

hasTable()

public boolean hasTable()

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

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

Returns
TypeDescription
boolean

Whether the table field is set.

hasValue()

public boolean hasValue()

String data to inspect or redact.

string value = 3;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueByteContentItem
Returns
TypeDescription
ContentItem.Builder

mergeFrom(ContentItem other)

public ContentItem.Builder mergeFrom(ContentItem other)
Parameter
NameDescription
otherContentItem
Returns
TypeDescription
ContentItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContentItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContentItem.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ContentItem.Builder
Overrides

mergeTable(Table value)

public ContentItem.Builder mergeTable(Table value)

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

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

Parameter
NameDescription
valueTable
Returns
TypeDescription
ContentItem.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContentItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueByteContentItem
Returns
TypeDescription
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
NameDescription
builderForValueByteContentItem.Builder
Returns
TypeDescription
ContentItem.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContentItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContentItem.Builder
Overrides

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

public ContentItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ContentItem.Builder
Overrides

setTable(Table value)

public ContentItem.Builder setTable(Table value)

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

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

Parameter
NameDescription
valueTable
Returns
TypeDescription
ContentItem.Builder

setTable(Table.Builder builderForValue)

public ContentItem.Builder setTable(Table.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueTable.Builder
Returns
TypeDescription
ContentItem.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ContentItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContentItem.Builder
Overrides

setValue(String value)

public ContentItem.Builder setValue(String value)

String data to inspect or redact.

string value = 3;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
ContentItem.Builder

This builder for chaining.