Class InspectionRule (3.48.0)

public final class InspectionRule extends GeneratedMessageV3 implements InspectionRuleOrBuilder

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

Protobuf type google.privacy.dlp.v2.InspectionRule

Static Fields

EXCLUSION_RULE_FIELD_NUMBER

public static final int EXCLUSION_RULE_FIELD_NUMBER
Field Value
Type Description
int

HOTWORD_RULE_FIELD_NUMBER

public static final int HOTWORD_RULE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InspectionRule getDefaultInstance()
Returns
Type Description
InspectionRule

getDescriptor()

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

newBuilder()

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

newBuilder(InspectionRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InspectionRule getDefaultInstanceForType()
Returns
Type Description
InspectionRule

getExclusionRule()

public ExclusionRule getExclusionRule()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
ExclusionRule

The exclusionRule.

getExclusionRuleOrBuilder()

public ExclusionRuleOrBuilder getExclusionRuleOrBuilder()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
ExclusionRuleOrBuilder

getHotwordRule()

public CustomInfoType.DetectionRule.HotwordRule getHotwordRule()

Hotword-based detection rule.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;

Returns
Type Description
CustomInfoType.DetectionRule.HotwordRule

The hotwordRule.

getHotwordRuleOrBuilder()

public CustomInfoType.DetectionRule.HotwordRuleOrBuilder getHotwordRuleOrBuilder()

Hotword-based detection rule.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;

Returns
Type Description
CustomInfoType.DetectionRule.HotwordRuleOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeCase()

public InspectionRule.TypeCase getTypeCase()
Returns
Type Description
InspectionRule.TypeCase

hasExclusionRule()

public boolean hasExclusionRule()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
boolean

Whether the exclusionRule field is set.

hasHotwordRule()

public boolean hasHotwordRule()

Hotword-based detection rule.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;

Returns
Type Description
boolean

Whether the hotwordRule field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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