# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig.

Configuration for connecting to AlloyDB.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #auth_mode

    def auth_mode() -> ::Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig::AuthMode

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig::AuthMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-DataStore-FederatedSearchConfig-AlloyDbConfig-AlloyDbConnectionConfig-AuthMode)) --- Optional. Auth mode.

### #auth_mode=

    def auth_mode=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig::AuthMode

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig::AuthMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-DataStore-FederatedSearchConfig-AlloyDbConfig-AlloyDbConnectionConfig-AuthMode)) --- Optional. Auth mode.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::DataStore::FederatedSearchConfig::AlloyDbConfig::AlloyDbConnectionConfig::AuthMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-DataStore-FederatedSearchConfig-AlloyDbConfig-AlloyDbConnectionConfig-AuthMode)) --- Optional. Auth mode.

### #database

    def database() -> ::String

**Returns**

- (::String) --- Required. The AlloyDB database to connect to.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The AlloyDB database to connect to.
**Returns**

- (::String) --- Required. The AlloyDB database to connect to.

### #enable_psvs

    def enable_psvs() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, enable PSVS for AlloyDB.

### #enable_psvs=

    def enable_psvs=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, enable PSVS for AlloyDB.
**Returns**

- (::Boolean) --- Optional. If true, enable PSVS for AlloyDB.

### #instance

    def instance() -> ::String

**Returns**

- (::String) --- Required. The AlloyDB instance to connect to.

### #instance=

    def instance=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The AlloyDB instance to connect to.
**Returns**

- (::String) --- Required. The AlloyDB instance to connect to.

### #password

    def password() -> ::String

**Returns**

- (::String) --- Required. Database password.

  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the password will be inferred on the AlloyDB side, based on the
  authenticated user.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Database password.


  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the password will be inferred on the AlloyDB side, based on the
  authenticated user.
**Returns**

- (::String) --- Required. Database password.

  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the password will be inferred on the AlloyDB side, based on the
  authenticated user.

### #user

    def user() -> ::String

**Returns**

- (::String) --- Required. Database user.

  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the user will be inferred on the AlloyDB side, based on the
  authenticated user.

### #user=

    def user=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Database user.


  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the user will be inferred on the AlloyDB side, based on the
  authenticated user.
**Returns**

- (::String) --- Required. Database user.

  If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
  the user will be inferred on the AlloyDB side, based on the
  authenticated user.