Class ByteContentItem.Builder (3.47.0)

public static final class ByteContentItem.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ByteContentItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ByteContentItem.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ByteContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ByteContentItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ByteContentItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ByteContentItem.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ByteContentItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ByteContentItem.Builder
Overrides

setData(ByteString value)

pu