public static final class ByteContentItem.Builder extends GeneratedMessage.Builder<ByteContentItem.Builder> implements ByteContentItemOrBuilderContainer for bytes to inspect or redact.
Protobuf type google.privacy.dlp.v2.ByteContentItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ByteContentItem.BuilderImplements
ByteContentItemOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ByteContentItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ByteContentItem.Builder |
|
setData(ByteString value)
public ByteContentItem.Builder setData(ByteString value)Content data to inspect or redact.
bytes data = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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.BytesTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ByteContentItem.Builder |
This builder for chaining. |