Class InspectionRuleSet (3.47.0)

public final class InspectionRuleSet extends GeneratedMessageV3 implements InspectionRuleSetOrBuilder

Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set.

Protobuf type google.privacy.dlp.v2.InspectionRuleSet

Static Fields

INFO_TYPES_FIELD_NUMBER

public static final int INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

RULES_FIELD_NUMBER

public static final int RULES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InspectionRuleSet getDefaultInstance()
Returns
Type Description
InspectionRuleSet

getDescriptor()

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

newBuilder()

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

newBuilder(InspectionRuleSet prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InspectionRuleSet getDefaultInstanceForType()
Returns
Type Description
InspectionRuleSet

getInfoTypes(int index)

public InfoType getInfoTypes(int index)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoType

getInfoTypesCount()

public int getInfoTypesCount()

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
int

getInfoTypesList()

public List<InfoType> getInfoTypesList()

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<InfoType>

getInfoTypesOrBuilder(int index)

public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoTypeOrBuilder

getInfoTypesOrBuilderList()

public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getParserForType()

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

getRules(int index)

public InspectionRule getRules(int index)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameter
Name Description
index int
Returns
Type Description
InspectionRule

getRulesCount()

public int getRulesCount()

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Returns
Type Description
int

getRulesList()

public List<InspectionRule> getRulesList()

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Returns
Type Description
List<InspectionRule>

getRulesOrBuilder(int index)

public InspectionRuleOrBuilder getRulesOrBuilder(int index)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameter
Name Description
index int
Returns
Type Description
InspectionRuleOrBuilder

getRulesOrBuilderList()

public List<? extends InspectionRuleOrBuilder> getRulesOrBuilderList()

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InspectionRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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