public static final class ContentItem.Builder extends GeneratedMessage.Builder<ContentItem.Builder> implements ContentItemOrBuilderType of content to inspect.
Protobuf type google.privacy.dlp.v2.ContentItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ContentItem.BuilderImplements
ContentItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearBatchContentItem()
public ContentItem.Builder clearBatchContentItem()Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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 |
|
clearContentMetadata()
public ContentItem.Builder clearContentMetadata()User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
clearConversation()
public ContentItem.Builder clearConversation()Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
clearDataItem()
public ContentItem.Builder clearDataItem()| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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. |
getBatchContentItem()
public BatchContentItem getBatchContentItem()Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Returns | |
|---|---|
| Type | Description |
BatchContentItem |
The batchContentItem. |
getBatchContentItemBuilder()
public BatchContentItem.Builder getBatchContentItemBuilder()Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Returns | |
|---|---|
| Type | Description |
BatchContentItem.Builder |
|
getBatchContentItemOrBuilder()
public BatchContentItemOrBuilder getBatchContentItemOrBuilder()Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Returns | |
|---|---|
| Type | Description |
BatchContentItemOrBuilder |
|
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 |
|
getContentMetadata()
public ContentMetadata getContentMetadata()User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Returns | |
|---|---|
| Type | Description |
ContentMetadata |
The contentMetadata. |
getContentMetadataBuilder()
public ContentMetadata.Builder getContentMetadataBuilder()User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Returns | |
|---|---|
| Type | Description |
ContentMetadata.Builder |
|
getContentMetadataOrBuilder()
public ContentMetadataOrBuilder getContentMetadataOrBuilder()User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Returns | |
|---|---|
| Type | Description |
ContentMetadataOrBuilder |
|
getConversation()
public Conversation getConversation()Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Returns | |
|---|---|
| Type | Description |
Conversation |
The conversation. |
getConversationBuilder()
public Conversation.Builder getConversationBuilder()Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
getConversationOrBuilder()
public ConversationOrBuilder getConversationOrBuilder()Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Returns | |
|---|---|
| Type | Description |
ConversationOrBuilder |
|
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 |
|
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. |
hasBatchContentItem()
public boolean hasBatchContentItem()Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the batchContentItem field is set. |
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. |
hasContentMetadata()
public boolean hasContentMetadata()User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentMetadata field is set. |
hasConversation()
public boolean hasConversation()Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the conversation 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBatchContentItem(BatchContentItem value)
public ContentItem.Builder mergeBatchContentItem(BatchContentItem value)Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
BatchContentItem |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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 |
|
mergeContentMetadata(ContentMetadata value)
public ContentItem.Builder mergeContentMetadata(ContentMetadata value)User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ContentMetadata |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
mergeConversation(Conversation value)
public ContentItem.Builder mergeConversation(Conversation value)Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Conversation |
| 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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ContentItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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 |
|
setBatchContentItem(BatchContentItem value)
public ContentItem.Builder setBatchContentItem(BatchContentItem value)Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
BatchContentItem |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
setBatchContentItem(BatchContentItem.Builder builderForValue)
public ContentItem.Builder setBatchContentItem(BatchContentItem.Builder builderForValue)Represents a batch of items to inspect.
.google.privacy.dlp.v2.BatchContentItem batch_content_item = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BatchContentItem.Builder |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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 |
|
setContentMetadata(ContentMetadata value)
public ContentItem.Builder setContentMetadata(ContentMetadata value)User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ContentMetadata |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
setContentMetadata(ContentMetadata.Builder builderForValue)
public ContentItem.Builder setContentMetadata(ContentMetadata.Builder builderForValue)User provided metadata for the content.
.google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ContentMetadata.Builder |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
setConversation(Conversation value)
public ContentItem.Builder setConversation(Conversation value)Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Conversation |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
setConversation(Conversation.Builder builderForValue)
public ContentItem.Builder setConversation(Conversation.Builder builderForValue)Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order.
.google.privacy.dlp.v2.Conversation conversation = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Conversation.Builder |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
|
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 |
|
setValue(String value)
public ContentItem.Builder setValue(String value)String data to inspect or redact.
string value = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
ContentItem.Builder |
This builder for chaining. |