Class ByteContentItem.Builder (3.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ByteContentItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ByteContentItem.Builder
Overrides

build()

public ByteContentItem build()
Returns
TypeDescription
ByteContentItem

buildPartial()

public ByteContentItem buildPartial()
Returns
TypeDescription
ByteContentItem

clear()

public ByteContentItem.Builder clear()
Returns
TypeDescription
ByteContentItem.Builder
Overrides

clearData()

public ByteContentItem.Builder clearData()

Content data to inspect or redact.

bytes data = 2;

Returns
TypeDescription
ByteContentItem.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ByteContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ByteContentItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ByteContentItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ByteContentItem.Builder

This builder for chaining.

clone()

public ByteContentItem.Builder clone()
Returns
TypeDescription
ByteContentItem.Builder
Overrides

getData()

public ByteString getData()

Content data to inspect or redact.

bytes data = 2;

Returns
TypeDescription
ByteString

The data.

getDefaultInstanceForType()

public ByteContentItem getDefaultInstanceForType()
Returns
TypeDescription
ByteContentItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ByteContentItem other)

public ByteContentItem.Builder mergeFrom(ByteContentItem other)
Parameter
NameDescription
otherByteContentItem
Returns
TypeDescription
ByteContentItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ByteContentItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ByteContentItem.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ByteContentItem.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ByteContentItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ByteContentItem.Builder
Overrides

setData(ByteString value)

public ByteContentItem.Builder setData(ByteString value)

Content data to inspect or redact.

bytes data = 2;

Parameter
NameDescription
valueByteString

The data to set.

Returns
TypeDescription
ByteContentItem.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ByteContentItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ByteContentItem.Builder
Overrides

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

public ByteContentItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueByteContentItem.BytesType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ByteContentItem.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ByteContentItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ByteContentItem.Builder
Overrides