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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ByteContentItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ByteContentItem build()
Returns
buildPartial()
public ByteContentItem buildPartial()
Returns
clear()
public ByteContentItem.Builder clear()
Returns
Overrides
clearData()
public ByteContentItem.Builder clearData()
Content data to inspect or redact.
bytes data = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public ByteContentItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ByteContentItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ByteContentItem.Builder clone()
Returns
Overrides
getData()
public ByteString getData()
Content data to inspect or redact.
bytes data = 2;
Returns
getDefaultInstanceForType()
public ByteContentItem getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ByteContentItem other)
public ByteContentItem.Builder mergeFrom(ByteContentItem other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ByteContentItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ByteContentItem.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ByteContentItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setData(ByteString value)
public ByteContentItem.Builder setData(ByteString value)
Content data to inspect or redact.
bytes data = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ByteContentItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ByteContentItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ByteContentItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides