Class ByteContentItem (3.55.0)

public final class ByteContentItem extends GeneratedMessageV3 implements ByteContentItemOrBuilder

Container for bytes to inspect or redact.

Protobuf type google.privacy.dlp.v2.ByteContentItem

Static Fields

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ByteContentItem getDefaultInstance()
Returns
Type Description
ByteContentItem

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ByteContentItem.Builder newBuilder()
Returns
Type Description
ByteContentItem.Builder

newBuilder(ByteContentItem prototype)

public static ByteContentItem.Builder newBuilder(ByteContentItem prototype)
Parameter
Name Description
prototype ByteContentItem
Returns
Type Description
ByteContentItem.Builder

parseDelimitedFrom(InputStream input)

public static ByteContentItem parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ByteContentItem parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ByteContentItem parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ByteContentItem parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ByteContentItem parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ByteContentItem parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteContentItem
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ByteContentItem> parser()
Returns
Type Description
Parser<ByteContentItem>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<ByteContentItem> getParserForType()
Returns
Type Description
Parser<ByteContentItem>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ByteContentItem.Builder newBuilderForType()
Returns
Type Description
ByteContentItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ByteContentItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ByteContentItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ByteContentItem.Builder toBuilder()
Returns
Type Description
ByteContentItem.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException