public static final class ContentItem.Builder extends GeneratedMessageV3.Builder<ContentItem.Builder> implements ContentItemOrBuilder
Container structure for the content to inspect.
Protobuf type google.privacy.dlp.v2.ContentItem
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContentItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ContentItem build()
Returns
buildPartial()
public ContentItem buildPartial()
Returns
clear()
public ContentItem.Builder clear()
Returns
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
clearDataItem()
public ContentItem.Builder clearDataItem()
Returns
clearField(Descriptors.FieldDescriptor field)
public ContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ContentItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTable()
public ContentItem.Builder clearTable()
Returns
clearValue()
public ContentItem.Builder clearValue()
String data to inspect or redact.
string value = 3;
Returns
clone()
public ContentItem.Builder clone()
Returns
Overrides
getByteItem()
public ByteContentItem getByteItem()
Content data to inspect or redact. Replaces type
and data
.
.google.privacy.dlp.v2.ByteContentItem byte_item = 5;
Returns
getByteItemBuilder()
public ByteContentItem.Builder getByteItemBuilder()
Content data to inspect or redact. Replaces type
and data
.
.google.privacy.dlp.v2.ByteContentItem byte_item = 5;
Returns
getByteItemOrBuilder()
public ByteContentItemOrBuilder getByteItemOrBuilder()
Content data to inspect or redact. Replaces type
and data
.
.google.privacy.dlp.v2.ByteContentItem byte_item = 5;
Returns
getDataItemCase()
public ContentItem.DataItemCase getDataItemCase()
Returns
getDefaultInstanceForType()
public ContentItem getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTable()
Returns
Type | Description |
Table | The table.
|
getTableBuilder()
public Table.Builder getTableBuilder()
Returns
getTableOrBuilder()
public TableOrBuilder getTableOrBuilder()
Returns
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
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()
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(ContentItem other)
public ContentItem.Builder mergeFrom(ContentItem other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContentItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ContentItem.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeTable(Table value)
public ContentItem.Builder mergeTable(Table value)
Parameter
Name | Description |
value | Table
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContentItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ContentItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContentItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTable(Table value)
public ContentItem.Builder setTable(Table value)
Parameter
Name | Description |
value | Table
|
Returns
setTable(Table.Builder builderForValue)
public ContentItem.Builder setTable(Table.Builder builderForValue)
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ContentItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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