public static final class InspectionRuleSet.Builder extends GeneratedMessageV3.Builder<InspectionRuleSet.Builder> 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 Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllInfoTypes(Iterable<? extends InfoType> values)
public InspectionRuleSet.Builder addAllInfoTypes(Iterable<? extends InfoType> values)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.InfoType>
|
Returns
addAllRules(Iterable<? extends InspectionRule> values)
public InspectionRuleSet.Builder addAllRules(Iterable<? extends InspectionRule> values)
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 |
values | Iterable<? extends com.google.privacy.dlp.v2.InspectionRule>
|
Returns
addInfoTypes(InfoType value)
public InspectionRuleSet.Builder addInfoTypes(InfoType value)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Returns
addInfoTypes(InfoType.Builder builderForValue)
public InspectionRuleSet.Builder addInfoTypes(InfoType.Builder builderForValue)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Returns
addInfoTypes(int index, InfoType value)
public InspectionRuleSet.Builder addInfoTypes(int index, InfoType value)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameters
Returns
addInfoTypes(int index, InfoType.Builder builderForValue)
public InspectionRuleSet.Builder addInfoTypes(int index, InfoType.Builder builderForValue)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameters
Returns
addInfoTypesBuilder()
public InfoType.Builder addInfoTypesBuilder()
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Returns
addInfoTypesBuilder(int index)
public InfoType.Builder addInfoTypesBuilder(int index)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InspectionRuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addRules(InspectionRule value)
public InspectionRuleSet.Builder addRules(InspectionRule value)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameter
Returns
addRules(InspectionRule.Builder builderForValue)
public InspectionRuleSet.Builder addRules(InspectionRule.Builder builderForValue)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameter
Returns
addRules(int index, InspectionRule value)
public InspectionRuleSet.Builder addRules(int index, InspectionRule value)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameters
Returns
addRules(int index, InspectionRule.Builder builderForValue)
public InspectionRuleSet.Builder addRules(int index, InspectionRule.Builder builderForValue)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameters
Returns
addRulesBuilder()
public InspectionRule.Builder addRulesBuilder()
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Returns
addRulesBuilder(int index)
public InspectionRule.Builder addRulesBuilder(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
Returns
build()
public InspectionRuleSet build()
Returns
buildPartial()
public InspectionRuleSet buildPartial()
Returns
clear()
public InspectionRuleSet.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InspectionRuleSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInfoTypes()
public InspectionRuleSet.Builder clearInfoTypes()
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public InspectionRuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRules()
public InspectionRuleSet.Builder clearRules()
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Returns
clone()
public InspectionRuleSet.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InspectionRuleSet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Returns
getInfoTypesBuilder(int index)
public InfoType.Builder getInfoTypesBuilder(int index)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Returns
getInfoTypesBuilderList()
public List<InfoType.Builder> getInfoTypesBuilderList()
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Returns
getInfoTypesCount()
public int getInfoTypesCount()
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Returns
getInfoTypesList()
public List<InfoType> getInfoTypesList()
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Returns
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
Returns
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> | |
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
Returns
getRulesBuilder(int index)
public InspectionRule.Builder getRulesBuilder(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
Returns
getRulesBuilderList()
public List<InspectionRule.Builder> getRulesBuilderList()
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Returns
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
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
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
Returns
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> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InspectionRuleSet other)
public InspectionRuleSet.Builder mergeFrom(InspectionRuleSet other)
Parameter
Returns
public InspectionRuleSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InspectionRuleSet.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InspectionRuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeInfoTypes(int index)
public InspectionRuleSet.Builder removeInfoTypes(int index)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameter
Returns
removeRules(int index)
public InspectionRuleSet.Builder removeRules(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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InspectionRuleSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInfoTypes(int index, InfoType value)
public InspectionRuleSet.Builder setInfoTypes(int index, InfoType value)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameters
Returns
setInfoTypes(int index, InfoType.Builder builderForValue)
public InspectionRuleSet.Builder setInfoTypes(int index, InfoType.Builder builderForValue)
List of infoTypes this rule set is applied to.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InspectionRuleSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRules(int index, InspectionRule value)
public InspectionRuleSet.Builder setRules(int index, InspectionRule value)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameters
Returns
setRules(int index, InspectionRule.Builder builderForValue)
public InspectionRuleSet.Builder setRules(int index, InspectionRule.Builder builderForValue)
Set of rules to be applied to infoTypes. The rules are applied in order.
repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final InspectionRuleSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides