Class InspectionRuleSet (3.27.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
TypeDescription
int

RULES_FIELD_NUMBER

public static final int RULES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InspectionRuleSet getDefaultInstance()
Returns
TypeDescription
InspectionRuleSet

getDescriptor()

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

newBuilder()

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

newBuilder(InspectionRuleSet prototype)

public static InspectionRuleSet.Builder newBuilder(InspectionRuleSet prototype)
Parameter
NameDescription
prototypeInspectionRuleSet
Returns
TypeDescription
InspectionRuleSet.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InspectionRuleSet getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InfoType

getInfoTypesCount()

public int getInfoTypesCount()

List of infoTypes this rule set is applied to.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getParserForType()

public Parser<InspectionRuleSet> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.privacy.dlp.v2.InspectionRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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