Class InspectionRule (3.9.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
TypeDescription
int

HOTWORD_RULE_FIELD_NUMBER

public static final int HOTWORD_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InspectionRule getDefaultInstance()
Returns
TypeDescription
InspectionRule

getDescriptor()

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

newBuilder()

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

newBuilder(InspectionRule prototype)

public static InspectionRule.Builder newBuilder(InspectionRule prototype)
Parameter
NameDescription
prototypeInspectionRule
Returns
TypeDescription
InspectionRule.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InspectionRule getDefaultInstanceForType()
Returns
TypeDescription
InspectionRule

getExclusionRule()

public ExclusionRule getExclusionRule()

Exclusion rule.

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

Returns
TypeDescription
ExclusionRule

The exclusionRule.

getExclusionRuleOrBuilder()

public ExclusionRuleOrBuilder getExclusionRuleOrBuilder()

Exclusion rule.

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

Returns
TypeDescription
ExclusionRuleOrBuilder

getHotwordRule()

public CustomInfoType.DetectionRule.HotwordRule getHotwordRule()

Hotword-based detection rule.

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

Returns
TypeDescription
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
TypeDescription
CustomInfoType.DetectionRule.HotwordRuleOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTypeCase()

public InspectionRule.TypeCase getTypeCase()
Returns
TypeDescription
InspectionRule.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasExclusionRule()

public boolean hasExclusionRule()

Exclusion rule.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the hotwordRule field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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