    public interface UserPasswordValidationPolicyOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAllowedFailedAttempts()

    public abstract int getAllowedFailedAttempts()

Number of failed login attempts allowed before user get locked.

`int32 allowed_failed_attempts = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The allowedFailedAttempts. |

### getEnableFailedAttemptsCheck()

    public abstract boolean getEnableFailedAttemptsCheck()

If true, failed login attempts check will be enabled.

`bool enable_failed_attempts_check = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enableFailedAttemptsCheck. |

### getEnablePasswordVerification()

    public abstract boolean getEnablePasswordVerification()

If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.

`bool enable_password_verification = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enablePasswordVerification. |

### getPasswordExpirationDuration()

    public abstract Duration getPasswordExpirationDuration()

Expiration duration after password is updated.

`.google.protobuf.Duration password_expiration_duration = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The passwordExpirationDuration. |

### getPasswordExpirationDurationOrBuilder()

    public abstract DurationOrBuilder getPasswordExpirationDurationOrBuilder()

Expiration duration after password is updated.

`.google.protobuf.Duration password_expiration_duration = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getStatus()

    public abstract PasswordStatus getStatus()

Output only. Read-only password status.

` .google.cloud.sql.v1.PasswordStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.PasswordStatus` | The status. |

### getStatusOrBuilder()

    public abstract PasswordStatusOrBuilder getStatusOrBuilder()

Output only. Read-only password status.

` .google.cloud.sql.v1.PasswordStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.PasswordStatusOrBuilder` |   |

### hasPasswordExpirationDuration()

    public abstract boolean hasPasswordExpirationDuration()

Expiration duration after password is updated.

`.google.protobuf.Duration password_expiration_duration = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the passwordExpirationDuration field is set. |

### hasStatus()

    public abstract boolean hasStatus()

Output only. Read-only password status.

` .google.cloud.sql.v1.PasswordStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the status field is set. |