<code>.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;
</code>
13235
public com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig() {
    if (transformationCase_ == 7) {
      return (com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig) transformation_;
    }
    return com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig.getDefaultInstance();
  }
14853
public static QueryParameters updateTypes(QueryParameters original, QueryParameters source) {
        QueryParameters updatedParams = new QueryParameters(original);
        Integer position = null;
        String originalKey = null;

        if (source != null) {
            for (String sourceKey : source.keySet()) {
                position = source.getFirstPosition(sourceKey);

                if (position != null) {
                    originalKey = original.getNameByPosition(position);
                    if (updatedParams.containsKey(originalKey) == true) {
                        updatedParams.updateType(originalKey, source.getType(sourceKey));
                    }
                }
            }
        }

        return updatedParams;
    }
114570
public com.google.privacy.dlp.v2.TimePartConfig getTimePartConfig() {
    if (transformationCase_ == 8) {
      return (com.google.privacy.dlp.v2.TimePartConfig) transformation_;
    }
    return com.google.privacy.dlp.v2.TimePartConfig.getDefaultInstance();
  }
822996
public com.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet
      getCommonAlphabet() {
    if (alphabetCase_ == 4) {
      @SuppressWarnings("deprecation")
      com.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet result =
          com.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.valueOf(
              (java.lang.Integer) alphabet_);
      return result == null
          ? com.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.UNRECOGNIZED
          : result;
    }
    return com.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet
        .FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED;
  }
451896
public com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig getNumericalStatsConfig() {
    if (typeCase_ == 1) {
      return (com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig) type_;
    }
    return com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig.getDefaultInstance();
  }
1209907
public void updateSessionType(String type) throws SecurityException {
	checkWriteAccess();
	boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
	if (!hasAccess) throw new SecurityException("no access to update scope setting");

	type = type.toLowerCase().trim();

	Element scope = _getRootElement("scope");
	scope.setAttribute("session-type", type);
    }
767083
private static void setSnmpInfo(SnmpType snmpType) {
        if (snmpType == null || !snmpType.isEnabled()) {
            return;
        }
        //Validate Snmp Configuration.
        if (snmpType.getTarget() == null || snmpType.getTarget().trim().length() == 0) {
            throw new IllegalArgumentException("Target must be specified for SNMP configuration.");
        }
        if (snmpType.getAuthkey() != null && snmpType.getAuthkey().length() < 8) {
            throw new IllegalArgumentException("SNMP Authkey must be > 8 characters.");
        }
        if (snmpType.getPrivacykey() != null && snmpType.getPrivacykey().length() < 8) {
            throw new IllegalArgumentException("SNMP Privacy Key must be > 8 characters.");
        }
    }
986046
def systemInformationType7():
    """"""
    a = L2PseudoLength(l2pLength=0x01)
    b = TpPd(pd=0x6)
    c = MessageType(mesType=0x37)  # 000110111
    d = Si7RestOctets()
    packet = a / b / c / d
    return packet
602995
public com.google.privacy.dlp.v2.BucketingConfig getBucketingConfig() {
    if (transformationCase_ == 6) {
      return (com.google.privacy.dlp.v2.BucketingConfig) transformation_;
    }
    return com.google.privacy.dlp.v2.BucketingConfig.getDefaultInstance();
  }
239869
public com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult
      getNumericalStatsResult() {
    if (resultCase_ == 3) {
      return (com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult) result_;
    }
    return com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult
        .getDefaultInstance();
  }
673744
static Map<String, String> convertConfigToAttribute(String configPath, ChildData childData,
                                                        boolean removeType) {
        String attribute = childData.getPath().substring(configPath.length() + 1);
        //If event type is CHILD_REMOVED, attribute should return to default value
        return Collections.singletonMap(attribute, removeType ? RpcConfigs.getStringValue(attribute)
            : StringSerializer.decode(childData.getData()));
    }
1235449
public com.google.privacy.dlp.v2.CryptoHashConfig getCryptoHashConfig() {
    if (transformationCase_ == 9) {
      return (com.google.privacy.dlp.v2.CryptoHashConfig) transformation_;
    }
    return com.google.privacy.dlp.v2.CryptoHashConfig.getDefaultInstance();
  }
880200
public com.google.privacy.dlp.v2.CryptoDeterministicConfigOrBuilder
      getCryptoDeterministicConfigOrBuilder() {
    if (transformationCase_ == 12) {
      return (com.google.privacy.dlp.v2.CryptoDeterministicConfig) transformation_;
    }
    return com.google.privacy.dlp.v2.CryptoDeterministicConfig.getDefaultInstance();
  }
1252728
private static String replaceParameter(String sql, Object value, JdbcType jdbcType, Class<?> javaType) {
        String strValue = String.valueOf(value);
        if (jdbcType != null) {
            switch (jdbcType) {
                //数字
                case BIT:
                case TINYINT:
                case SMALLINT:
                case INTEGER:
                case BIGINT:
                case FLOAT:
                case REAL:
                case DOUBLE:
                case NUMERIC:
                case DECIMAL:
                    break;
                //日期
                case DATE:
                case TIME:
                case TIMESTAMP:
                    //其他，包含字符串和其他特殊类型
                default:
                    strValue = "'" + strValue + "'";
            }
        } else if (Number.class.isAssignableFrom(javaType)) {
            //不加单引号
        } else {
            strValue = "'" + strValue + "'";
        }
        return sql.replaceFirst("\\?", strValue);
    }
9618
public com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultOrBuilder
      getKMapEstimationResultOrBuilder() {
    if (resultCase_ == 7) {
      return (com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult) result_;
    }
    return com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult
        .getDefaultInstance();
  }
573
public static void setSchemaTypeInfo(Configuration conf, StructTypeInfo schemaTypeInfo) {
    if (schemaTypeInfo != null) {
      conf.set(SCHEMA_TYPE_INFO, schemaTypeInfo.getTypeName());
      LOG.debug("Set schema typeInfo on conf: {}", schemaTypeInfo);
    }
  }
1247623
ResolveSource replaceWithinCurrentParent(AbstractConfigValue old, AbstractConfigValue replacement) {
        if (ConfigImpl.traceSubstitutionsEnabled())
            ConfigImpl.trace("replaceWithinCurrentParent old " + old + "@" + System.identityHashCode(old)
                    + " replacement " + replacement + "@" + System.identityHashCode(old) + " in " + this);
        if (old == replacement) {
            return this;
        } else if (pathFromRoot != null) {
            Container parent = pathFromRoot.head();
            AbstractConfigValue newParent = parent.replaceChild(old, replacement);
            return replaceCurrentParent(parent, (newParent instanceof Container) ? (Container) newParent : null);
        } else {
            if (old == root && replacement instanceof Container) {
                return new ResolveSource(rootMustBeObj((Container) replacement));
            } else {
                throw new ConfigException.BugOrBroken("replace in parent not possible " + old + " with " + replacement
                        + " in " + this);
                // return this;
            }
        }
    }