Class ContentItem (3.41.0)

public final class ContentItem extends GeneratedMessageV3 implements ContentItemOrBuilder

Protobuf type google.privacy.dlp.v2.ContentItem

Static Fields

BYTE_ITEM_FIELD_NUMBER

public static final int BYTE_ITEM_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ContentItem getDefaultInstance()
Returns
TypeDescription
ContentItem

getDescriptor()

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

newBuilder()

public static ContentItem.Builder newBuilder()
Returns
TypeDescription
ContentItem.Builder

newBuilder(ContentItem prototype)

public static ContentItem.Builder newBuilder(ContentItem prototype)
Parameter
NameDescription
prototypeContentItem
Returns
TypeDescription
ContentItem.Builder

parseDelimitedFrom(InputStream input)

public static ContentItem parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ContentItem parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContentItem parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContentItem parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ContentItem parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ContentItem parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContentItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ContentItem> parser()
Returns
TypeDescription
Parser<ContentItem>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteContentItemOrBuilder

getDataItemCase()

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

getDefaultInstanceForType()

public ContentItem getDefaultInstanceForType()
Returns
TypeDescription
ContentItem

getParserForType()

public Parser<ContentItem> getParserForType()
Returns
TypeDescription
Parser<ContentItem>
Overrides

getSerializedSize()

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

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContentItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ContentItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException