Class CustomInfoType.DetectionRule.Proximity (3.49.0)

public static final class CustomInfoType.DetectionRule.Proximity extends GeneratedMessageV3 implements CustomInfoType.DetectionRule.ProximityOrBuilder

Message for specifying a window around a finding to apply a detection rule.

Protobuf type google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CustomInfoType.DetectionRule.Proximity

Static Fields

WINDOW_AFTER_FIELD_NUMBER

public static final int WINDOW_AFTER_FIELD_NUMBER
Field Value
Type Description
int

WINDOW_BEFORE_FIELD_NUMBER

public static final int WINDOW_BEFORE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomInfoType.DetectionRule.Proximity getDefaultInstance()
Returns
Type Description
CustomInfoType.DetectionRule.Proximity

getDescriptor()

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

newBuilder()

public static CustomInfoType.DetectionRule.Proximity.Builder newBuilder()
Returns
Type Description
CustomInfoType.DetectionRule.Proximity.Builder

newBuilder(CustomInfoType.DetectionRule.Proximity prototype)

public static CustomInfoType.DetectionRule.Proximity.Builder newBuilder(CustomInfoType.DetectionRule.Proximity prototype)
Parameter
Name Description
prototype CustomInfoType.DetectionRule.Proximity
Returns
Type Description
CustomInfoType.DetectionRule.Proximity.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType.DetectionRule.Proximity parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomInfoType.DetectionRule.Proximity parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomInfoType.DetectionRule.Proximity parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomInfoType.DetectionRule.Proximity parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomInfoType.DetectionRule.Proximity parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomInfoType.DetectionRule.Proximity parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.Proximity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.Proximity
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomInfoType.DetectionRule.Proximity> parser()
Returns
Type Description
Parser<Proximity>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CustomInfoType.DetectionRule.Proximity getDefaultInstanceForType()
Returns
Type Description
CustomInfoType.DetectionRule.Proximity

getParserForType()

public Parser<CustomInfoType.DetectionRule.Proximity> getParserForType()
Returns
Type Description
Parser<Proximity>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWindowAfter()

public int getWindowAfter()

Number of characters after the finding to consider.

int32 window_after = 2;

Returns
Type Description
int

The windowAfter.

getWindowBefore()

public int getWindowBefore()

Number of characters before the finding to consider. For tabular data, if you want to modify the likelihood of an entire column of findngs, set this to 1. For more information, see Hotword example: Set the match likelihood of a table column.

int32 window_before = 1;

Returns
Type Description
int

The windowBefore.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomInfoType.DetectionRule.Proximity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomInfoType.DetectionRule.Proximity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CustomInfoType.DetectionRule.Proximity.Builder toBuilder()
Returns
Type Description
CustomInfoType.DetectionRule.Proximity.Builder

writeTo(CodedOutputStream output)

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