Class ByteContentItem (3.6.7)

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
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ByteContentItem getDefaultInstance()
Returns
TypeDescription
ByteContentItem

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ByteContentItem.Builder newBuilder()
Returns
TypeDescription
ByteContentItem.Builder

newBuilder(ByteContentItem prototype)

public static ByteContentItem.Builder newBuilder(ByteContentItem prototype)
Parameter
NameDescription
prototypeByteContentItem
Returns
TypeDescription
ByteContentItem.Builder

parseDelimitedFrom(InputStream input)

public static ByteContentItem parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ByteContentItem parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ByteContentItem parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ByteContentItem parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ByteContentItem parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ByteContentItem parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ByteContentItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ByteContentItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ByteContentItem> parser()
Returns
TypeDescription
Parser<ByteContentItem>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<ByteContentItem> getParserForType()
Returns
TypeDescription
Parser<ByteContentItem>
Overrides

getSerializedSize()

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ByteContentItem.Builder newBuilderForType()
Returns
TypeDescription
ByteContentItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ByteContentItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ByteContentItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ByteContentItem.Builder toBuilder()
Returns
TypeDescription
ByteContentItem.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException