Class ByteContentItem.Builder (3.49.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)

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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