[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Sql Admin V1 Client - Class PasswordValidationPolicy (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.PasswordValidationPolicy)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.PasswordValidationPolicy)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.PasswordValidationPolicy)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.PasswordValidationPolicy)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.PasswordValidationPolicy)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.PasswordValidationPolicy)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.PasswordValidationPolicy)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.PasswordValidationPolicy)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.PasswordValidationPolicy)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.PasswordValidationPolicy)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.PasswordValidationPolicy)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.PasswordValidationPolicy)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.PasswordValidationPolicy)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.PasswordValidationPolicy)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.PasswordValidationPolicy)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.PasswordValidationPolicy)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.PasswordValidationPolicy)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.PasswordValidationPolicy)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.PasswordValidationPolicy) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class PasswordValidationPolicy.\n\nDatabase instance local user password validation policy\n\nGenerated from protobuf message `google.cloud.sql.v1.PasswordValidationPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMinLength\n\nMinimum number of characters allowed.\n\n### hasMinLength\n\n### clearMinLength\n\n### getMinLengthUnwrapped\n\nReturns the unboxed value from `getMinLength()`\n\nMinimum number of characters allowed.\n\n### setMinLength\n\nMinimum number of characters allowed.\n\n### setMinLengthUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nMinimum number of characters allowed.\n\n### getComplexity\n\nThe complexity of the password.\n\n### setComplexity\n\nThe complexity of the password.\n\n### getReuseInterval\n\nNumber of previous passwords that cannot be reused.\n\n### hasReuseInterval\n\n### clearReuseInterval\n\n### getReuseIntervalUnwrapped\n\nReturns the unboxed value from `getReuseInterval()`\n\nNumber of previous passwords that cannot be reused.\n\n### setReuseInterval\n\nNumber of previous passwords that cannot be reused.\n\n### setReuseIntervalUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nNumber of previous passwords that cannot be reused.\n\n### getDisallowUsernameSubstring\n\nDisallow username as a part of the password.\n\n### hasDisallowUsernameSubstring\n\n### clearDisallowUsernameSubstring\n\n### getDisallowUsernameSubstringUnwrapped\n\nReturns the unboxed value from `getDisallowUsernameSubstring()`\n\nDisallow username as a part of the password.\n\n### setDisallowUsernameSubstring\n\nDisallow username as a part of the password.\n\n### setDisallowUsernameSubstringUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\BoolValue object.\n\nDisallow username as a part of the password.\n\n### getPasswordChangeInterval\n\nMinimum interval after which the password can be changed. This flag is only\nsupported for PostgreSQL.\n\n### hasPasswordChangeInterval\n\n### clearPasswordChangeInterval\n\n### setPasswordChangeInterval\n\nMinimum interval after which the password can be changed. This flag is only\nsupported for PostgreSQL.\n\n### getEnablePasswordPolicy\n\nWhether the password policy is enabled or not.\n\n### hasEnablePasswordPolicy\n\n### clearEnablePasswordPolicy\n\n### getEnablePasswordPolicyUnwrapped\n\nReturns the unboxed value from `getEnablePasswordPolicy()`\n\nWhether the password policy is enabled or not.\n\n### setEnablePasswordPolicy\n\nWhether the password policy is enabled or not.\n\n### setEnablePasswordPolicyUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\BoolValue object.\n\nWhether the password policy is enabled or not.\n\n### getDisallowCompromisedCredentials\n\nThis field is deprecated and will be removed in a future version of the\nAPI.\n\n### hasDisallowCompromisedCredentials\n\n### clearDisallowCompromisedCredentials\n\n### getDisallowCompromisedCredentialsUnwrapped\n\nReturns the unboxed value from `getDisallowCompromisedCredentials()`\n\nThis field is deprecated and will be removed in a future version of the\nAPI.\n\n### setDisallowCompromisedCredentials\n\nThis field is deprecated and will be removed in a future version of the\nAPI.\n\n### setDisallowCompromisedCredentialsUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\BoolValue object.\n\nThis field is deprecated and will be removed in a future version of the\nAPI."]]