Class AdjustByMatchingInfoTypes

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.AdjustByMatchingInfoTypes
All Implemented Interfaces:
AdjustByMatchingInfoTypesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AdjustByMatchingInfoTypes extends com.google.protobuf.GeneratedMessage implements AdjustByMatchingInfoTypesOrBuilder
 AdjustmentRule condition for matching infoTypes.
 
Protobuf type google.privacy.dlp.v2.AdjustByMatchingInfoTypes
See Also:
  • Field Details

    • INFO_TYPES_FIELD_NUMBER

      public static final int INFO_TYPES_FIELD_NUMBER
      See Also:
    • MIN_LIKELIHOOD_FIELD_NUMBER

      public static final int MIN_LIKELIHOOD_FIELD_NUMBER
      See Also:
    • MATCHING_TYPE_FIELD_NUMBER

      public static final int MATCHING_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getInfoTypesList

      public List<InfoType> getInfoTypesList()
       Sensitive Data Protection adjusts the likelihood of a finding if that
       finding also matches one of these infoTypes.
      
       For example, you can create a rule to adjust the likelihood of a
       `PHONE_NUMBER` finding if the string is found within a document that is
       classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set
       `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule`
       with an `adjust_by_matching_info_types.info_types` that contains
       `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the
       `PHONE_NUMBER` finding is adjusted, but the likelihood of the
       `DOCUMENT_TYPE/HR/RESUME` finding is not.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesList in interface AdjustByMatchingInfoTypesOrBuilder
    • getInfoTypesOrBuilderList

      public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()
       Sensitive Data Protection adjusts the likelihood of a finding if that
       finding also matches one of these infoTypes.
      
       For example, you can create a rule to adjust the likelihood of a
       `PHONE_NUMBER` finding if the string is found within a document that is
       classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set
       `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule`
       with an `adjust_by_matching_info_types.info_types` that contains
       `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the
       `PHONE_NUMBER` finding is adjusted, but the likelihood of the
       `DOCUMENT_TYPE/HR/RESUME` finding is not.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesOrBuilderList in interface AdjustByMatchingInfoTypesOrBuilder
    • getInfoTypesCount

      public int getInfoTypesCount()
       Sensitive Data Protection adjusts the likelihood of a finding if that
       finding also matches one of these infoTypes.
      
       For example, you can create a rule to adjust the likelihood of a
       `PHONE_NUMBER` finding if the string is found within a document that is
       classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set
       `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule`
       with an `adjust_by_matching_info_types.info_types` that contains
       `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the
       `PHONE_NUMBER` finding is adjusted, but the likelihood of the
       `DOCUMENT_TYPE/HR/RESUME` finding is not.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesCount in interface AdjustByMatchingInfoTypesOrBuilder
    • getInfoTypes

      public InfoType getInfoTypes(int index)
       Sensitive Data Protection adjusts the likelihood of a finding if that
       finding also matches one of these infoTypes.
      
       For example, you can create a rule to adjust the likelihood of a
       `PHONE_NUMBER` finding if the string is found within a document that is
       classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set
       `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule`
       with an `adjust_by_matching_info_types.info_types` that contains
       `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the
       `PHONE_NUMBER` finding is adjusted, but the likelihood of the
       `DOCUMENT_TYPE/HR/RESUME` finding is not.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypes in interface AdjustByMatchingInfoTypesOrBuilder
    • getInfoTypesOrBuilder

      public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)
       Sensitive Data Protection adjusts the likelihood of a finding if that
       finding also matches one of these infoTypes.
      
       For example, you can create a rule to adjust the likelihood of a
       `PHONE_NUMBER` finding if the string is found within a document that is
       classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set
       `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule`
       with an `adjust_by_matching_info_types.info_types` that contains
       `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the
       `PHONE_NUMBER` finding is adjusted, but the likelihood of the
       `DOCUMENT_TYPE/HR/RESUME` finding is not.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesOrBuilder in interface AdjustByMatchingInfoTypesOrBuilder
    • getMinLikelihoodValue

      public int getMinLikelihoodValue()
       Required. Minimum likelihood of the
       `adjust_by_matching_info_types.info_types` finding. If the likelihood is
       lower than this value, Sensitive Data Protection doesn't adjust the
       likelihood of the `InspectionRuleSet.info_types` finding.
       
      .google.privacy.dlp.v2.Likelihood min_likelihood = 2;
      Specified by:
      getMinLikelihoodValue in interface AdjustByMatchingInfoTypesOrBuilder
      Returns:
      The enum numeric value on the wire for minLikelihood.
    • getMinLikelihood

      public Likelihood getMinLikelihood()
       Required. Minimum likelihood of the
       `adjust_by_matching_info_types.info_types` finding. If the likelihood is
       lower than this value, Sensitive Data Protection doesn't adjust the
       likelihood of the `InspectionRuleSet.info_types` finding.
       
      .google.privacy.dlp.v2.Likelihood min_likelihood = 2;
      Specified by:
      getMinLikelihood in interface AdjustByMatchingInfoTypesOrBuilder
      Returns:
      The minLikelihood.
    • getMatchingTypeValue

      public int getMatchingTypeValue()
       How the adjustment rule is applied.
      
       Only `MATCHING_TYPE_PARTIAL_MATCH` is supported:
      
       - Partial match: adjusts the findings of infoTypes specified in the
       inspection rule when they have a nonempty intersection with a finding of an
       infoType specified in this adjustment rule.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 3;
      Specified by:
      getMatchingTypeValue in interface AdjustByMatchingInfoTypesOrBuilder
      Returns:
      The enum numeric value on the wire for matchingType.
    • getMatchingType

      public MatchingType getMatchingType()
       How the adjustment rule is applied.
      
       Only `MATCHING_TYPE_PARTIAL_MATCH` is supported:
      
       - Partial match: adjusts the findings of infoTypes specified in the
       inspection rule when they have a nonempty intersection with a finding of an
       infoType specified in this adjustment rule.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 3;
      Specified by:
      getMatchingType in interface AdjustByMatchingInfoTypesOrBuilder
      Returns:
      The matchingType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdjustByMatchingInfoTypes parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdjustByMatchingInfoTypes parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdjustByMatchingInfoTypes parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AdjustByMatchingInfoTypes.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AdjustByMatchingInfoTypes.Builder newBuilder()
    • newBuilder

      public static AdjustByMatchingInfoTypes.Builder newBuilder(AdjustByMatchingInfoTypes prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AdjustByMatchingInfoTypes.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AdjustByMatchingInfoTypes getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AdjustByMatchingInfoTypes> parser()
    • getParserForType

      public com.google.protobuf.Parser<AdjustByMatchingInfoTypes> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AdjustByMatchingInfoTypes getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder