Class Domain (3.78.0)

public final class Domain extends GeneratedMessageV3 implements DomainOrBuilder

A domain represents a thematic category that a data profile can fall under.

Protobuf type google.privacy.dlp.v2.Domain

Implements

DomainOrBuilder

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

SIGNALS_FIELD_NUMBER

public static final int SIGNALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Domain getDefaultInstance()
Returns
Type Description
Domain

getDescriptor()

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

newBuilder()

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

newBuilder(Domain prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCategory()

public Domain.Category getCategory()

A domain category that this profile is related to.

.google.privacy.dlp.v2.Domain.Category category = 1;

Returns
Type Description
Domain.Category

The category.

getCategoryValue()

public int getCategoryValue()

A domain category that this profile is related to.

.google.privacy.dlp.v2.Domain.Category category = 1;

Returns
Type Description
int

The enum numeric value on the wire for category.

getDefaultInstanceForType()

public Domain getDefaultInstanceForType()
Returns
Type Description
Domain

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSignals(int index)

public Domain.Signal getSignals(int index)

The collection of signals that influenced selection of the category.

repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Domain.Signal

The signals at the given index.

getSignalsCount()

public int getSignalsCount()

The collection of signals that influenced selection of the category.

repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;

Returns
Type Description
int

The count of signals.

getSignalsList()

public List<Domain.Signal> getSignalsList()

The collection of signals that influenced selection of the category.

repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;

Returns
Type Description
List<Signal>

A list containing the signals.

getSignalsValue(int index)

public int getSignalsValue(int index)

The collection of signals that influenced selection of the category.

repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of signals at the given index.

getSignalsValueList()

public List<Integer> getSignalsValueList()

The collection of signals that influenced selection of the category.

repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for signals.

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 Domain.Builder newBuilderForType()
Returns
Type Description
Domain.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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