# Google Cloud Database Center V1beta Client - Class RecommendationInfo (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class RecommendationInfo.

Info associated with recommendation.

Generated from protobuf message `google.cloud.databasecenter.v1beta.RecommendationInfo`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ recommender` | `string` Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 |
| `↳ recommender_id` | `string` ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender" |
| `↳ recommender_subtype` | `string` Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" |

### getRecommender

Name of recommendation.

Examples:
organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRecommender

Name of recommendation.

Examples:
organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRecommenderId

ID of recommender.

Examples: "google.cloudsql.instance.PerformanceRecommender"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRecommenderId

ID of recommender.

Examples: "google.cloudsql.instance.PerformanceRecommender"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRecommenderSubtype

Contains an identifier for a subtype of recommendations produced for the
same recommender. Subtype is a function of content and impact, meaning a
new subtype might be added when significant changes to `content` or
`primary_impact.category` are introduced. See the Recommenders section
to see a list of subtypes for a given Recommender.

Examples:
For recommender = "google.cloudsql.instance.PerformanceRecommender",
recommender_subtype can be
"MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRecommenderSubtype

Contains an identifier for a subtype of recommendations produced for the
same recommender. Subtype is a function of content and impact, meaning a
new subtype might be added when significant changes to `content` or
`primary_impact.category` are introduced. See the Recommenders section
to see a list of subtypes for a given Recommender.

Examples:
For recommender = "google.cloudsql.instance.PerformanceRecommender",
recommender_subtype can be
"MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |