Class ByteContentItem.Builder (3.87.0)

public static final class ByteContentItem.Builder extends GeneratedMessage.Builder<ByteContentItem.Builder> implements ByteContentItemOrBuilder

Container for bytes to inspect or redact.

Protobuf type google.privacy.dlp.v2.ByteContentItem

Static Methods

getDescriptor()

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

Methods

build()

public ByteContentItem build()
Returns
Type Description
ByteContentItem

buildPartial()

public ByteContentItem buildPartial()
Returns
Type Description
ByteContentItem

clear()

public ByteContentItem.Builder clear()
Returns
Type Description
ByteContentItem.Builder
Overrides

clearData()

public ByteContentItem.Builder clearData()

Content data to inspect or redact.

bytes data = 2;

Returns
Type Description
ByteContentItem.Builder

This builder for chaining.

clearType()

public ByteContentItem.Builder clearType()

The type of data stored in the bytes string. Default will be TEXT_UTF8.

.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;

Returns
Type Description
ByteContentItem.Builder

This builder for chaining.

getData()

public ByteString getData()

Content data to inspect or redact.

bytes data = 2;

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public ByteContentItem getDefaultInstanceForType()
Returns
Type Description
ByteContentItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getType()

public ByteContentItem.BytesType getType()

The type of data stored in the bytes string. Default will be TEXT_UTF8.

.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;

Returns
Type Description
ByteContentItem.BytesType

The type.

getTypeValue()

public int getTypeValue()

The type of data stored in the bytes string. Default will be TEXT_UTF8.

.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ByteContentItem other)

public ByteContentItem.Builder mergeFrom(ByteContentItem other)
Parameter
Name Description
other ByteContentItem
Returns
Type Description
ByteContentItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ByteContentItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ByteContentItem.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ByteContentItem.Builder
Overrides

setData(ByteString value)

public ByteContentItem.Builder setData(ByteString value)

Content data to inspect or redact.

bytes data = 2;

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
ByteContentItem.Builder

This builder for chaining.

setType(ByteContentItem.BytesType value)

public ByteContentItem.Builder setType(ByteContentItem.BytesType value)

The type of data stored in the bytes string. Default will be TEXT_UTF8.

.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;

Parameter
Name Description
value ByteContentItem.BytesType

The type to set.

Returns
Type Description
ByteContentItem.Builder

This builder for chaining.

setTypeValue(int value)

public ByteContentItem.Builder setTypeValue(int value)

The type of data stored in the bytes string. Default will be TEXT_UTF8.

.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ByteContentItem.Builder

This builder for chaining.