public static final class PasswordValidationPolicy.Builder extends GeneratedMessage.Builder<PasswordValidationPolicy.Builder> implements PasswordValidationPolicyOrBuilderDatabase instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.
Protobuf type google.cloud.sql.v1.PasswordValidationPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PasswordValidationPolicy.BuilderImplements
PasswordValidationPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PasswordValidationPolicy build()| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy |
|
buildPartial()
public PasswordValidationPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy |
|
clear()
public PasswordValidationPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearComplexity()
public PasswordValidationPolicy.Builder clearComplexity()The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
This builder for chaining. |
clearDisallowCompromisedCredentials() (deprecated)
public PasswordValidationPolicy.Builder clearDisallowCompromisedCredentials()This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearDisallowUsernameSubstring()
public PasswordValidationPolicy.Builder clearDisallowUsernameSubstring()Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearEnablePasswordPolicy()
public PasswordValidationPolicy.Builder clearEnablePasswordPolicy()Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearMinLength()
public PasswordValidationPolicy.Builder clearMinLength()Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearPasswordChangeInterval()
public PasswordValidationPolicy.Builder clearPasswordChangeInterval()Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
clearReuseInterval()
public PasswordValidationPolicy.Builder clearReuseInterval()Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
getComplexity()
public PasswordValidationPolicy.Complexity getComplexity()The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Complexity |
The complexity. |
getComplexityValue()
public int getComplexityValue()The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for complexity. |
getDefaultInstanceForType()
public PasswordValidationPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisallowCompromisedCredentials() (deprecated)
public BoolValue getDisallowCompromisedCredentials()Deprecated. google.cloud.sql.v1.PasswordValidationPolicy.disallow_compromised_credentials is deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=1569
This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The disallowCompromisedCredentials. |
getDisallowCompromisedCredentialsBuilder() (deprecated)
public BoolValue.Builder getDisallowCompromisedCredentialsBuilder()This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDisallowCompromisedCredentialsOrBuilder() (deprecated)
public BoolValueOrBuilder getDisallowCompromisedCredentialsOrBuilder()This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getDisallowUsernameSubstring()
public BoolValue getDisallowUsernameSubstring()Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The disallowUsernameSubstring. |
getDisallowUsernameSubstringBuilder()
public BoolValue.Builder getDisallowUsernameSubstringBuilder()Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDisallowUsernameSubstringOrBuilder()
public BoolValueOrBuilder getDisallowUsernameSubstringOrBuilder()Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getEnablePasswordPolicy()
public BoolValue getEnablePasswordPolicy()Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The enablePasswordPolicy. |
getEnablePasswordPolicyBuilder()
public BoolValue.Builder getEnablePasswordPolicyBuilder()Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEnablePasswordPolicyOrBuilder()
public BoolValueOrBuilder getEnablePasswordPolicyOrBuilder()Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getMinLength()
public Int32Value getMinLength()Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The minLength. |
getMinLengthBuilder()
public Int32Value.Builder getMinLengthBuilder()Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMinLengthOrBuilder()
public Int32ValueOrBuilder getMinLengthOrBuilder()Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getPasswordChangeInterval()
public Duration getPasswordChangeInterval()Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns | |
|---|---|
| Type | Description |
Duration |
The passwordChangeInterval. |
getPasswordChangeIntervalBuilder()
public Duration.Builder getPasswordChangeIntervalBuilder()Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPasswordChangeIntervalOrBuilder()
public DurationOrBuilder getPasswordChangeIntervalOrBuilder()Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getReuseInterval()
public Int32Value getReuseInterval()Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The reuseInterval. |
getReuseIntervalBuilder()
public Int32Value.Builder getReuseIntervalBuilder()Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getReuseIntervalOrBuilder()
public Int32ValueOrBuilder getReuseIntervalOrBuilder()Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
hasDisallowCompromisedCredentials() (deprecated)
public boolean hasDisallowCompromisedCredentials()Deprecated. google.cloud.sql.v1.PasswordValidationPolicy.disallow_compromised_credentials is deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=1569
This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the disallowCompromisedCredentials field is set. |
hasDisallowUsernameSubstring()
public boolean hasDisallowUsernameSubstring()Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the disallowUsernameSubstring field is set. |
hasEnablePasswordPolicy()
public boolean hasEnablePasswordPolicy()Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enablePasswordPolicy field is set. |
hasMinLength()
public boolean hasMinLength()Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minLength field is set. |
hasPasswordChangeInterval()
public boolean hasPasswordChangeInterval()Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the passwordChangeInterval field is set. |
hasReuseInterval()
public boolean hasReuseInterval()Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the reuseInterval field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDisallowCompromisedCredentials(BoolValue value) (deprecated)
public PasswordValidationPolicy.Builder mergeDisallowCompromisedCredentials(BoolValue value)This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeDisallowUsernameSubstring(BoolValue value)
public PasswordValidationPolicy.Builder mergeDisallowUsernameSubstring(BoolValue value)Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeEnablePasswordPolicy(BoolValue value)
public PasswordValidationPolicy.Builder mergeEnablePasswordPolicy(BoolValue value)Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeFrom(PasswordValidationPolicy other)
public PasswordValidationPolicy.Builder mergeFrom(PasswordValidationPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
PasswordValidationPolicy |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PasswordValidationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PasswordValidationPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeMinLength(Int32Value value)
public PasswordValidationPolicy.Builder mergeMinLength(Int32Value value)Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergePasswordChangeInterval(Duration value)
public PasswordValidationPolicy.Builder mergePasswordChangeInterval(Duration value)Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
mergeReuseInterval(Int32Value value)
public PasswordValidationPolicy.Builder mergeReuseInterval(Int32Value value)Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setComplexity(PasswordValidationPolicy.Complexity value)
public PasswordValidationPolicy.Builder setComplexity(PasswordValidationPolicy.Complexity value)The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PasswordValidationPolicy.ComplexityThe complexity to set. |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
This builder for chaining. |
setComplexityValue(int value)
public PasswordValidationPolicy.Builder setComplexityValue(int value)The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for complexity to set. |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
This builder for chaining. |
setDisallowCompromisedCredentials(BoolValue value) (deprecated)
public PasswordValidationPolicy.Builder setDisallowCompromisedCredentials(BoolValue value)This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setDisallowCompromisedCredentials(BoolValue.Builder builderForValue) (deprecated)
public PasswordValidationPolicy.Builder setDisallowCompromisedCredentials(BoolValue.Builder builderForValue)This field is deprecated and will be removed in a future version of the API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setDisallowUsernameSubstring(BoolValue value)
public PasswordValidationPolicy.Builder setDisallowUsernameSubstring(BoolValue value)Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setDisallowUsernameSubstring(BoolValue.Builder builderForValue)
public PasswordValidationPolicy.Builder setDisallowUsernameSubstring(BoolValue.Builder builderForValue)Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setEnablePasswordPolicy(BoolValue value)
public PasswordValidationPolicy.Builder setEnablePasswordPolicy(BoolValue value)Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setEnablePasswordPolicy(BoolValue.Builder builderForValue)
public PasswordValidationPolicy.Builder setEnablePasswordPolicy(BoolValue.Builder builderForValue)Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setMinLength(Int32Value value)
public PasswordValidationPolicy.Builder setMinLength(Int32Value value)Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setMinLength(Int32Value.Builder builderForValue)
public PasswordValidationPolicy.Builder setMinLength(Int32Value.Builder builderForValue)Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setPasswordChangeInterval(Duration value)
public PasswordValidationPolicy.Builder setPasswordChangeInterval(Duration value)Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setPasswordChangeInterval(Duration.Builder builderForValue)
public PasswordValidationPolicy.Builder setPasswordChangeInterval(Duration.Builder builderForValue)Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setReuseInterval(Int32Value value)
public PasswordValidationPolicy.Builder setReuseInterval(Int32Value value)Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|
setReuseInterval(Int32Value.Builder builderForValue)
public PasswordValidationPolicy.Builder setReuseInterval(Int32Value.Builder builderForValue)Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PasswordValidationPolicy.Builder |
|