Class ContentItem (3.57.0)

public final class ContentItem extends GeneratedMessageV3 implements ContentItemOrBuilder

Type of content to inspect.

Protobuf type google.privacy.dlp.v2.ContentItem

Static Fields

BYTE_ITEM_FIELD_NUMBER

public static final int BYTE_ITEM_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContentItem getDefaultInstance()
Returns
Type Description
ContentItem

getDescriptor()

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

newBuilder()

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

newBuilder(ContentItem prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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.

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 ContentItem.Builder newBuilderForType()
Returns
Type Description
ContentItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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