3.9.0 (latest) 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.8.0 2.7.0 2.6.0 2.5.0

    public sealed class Recommendation : IMessage<Recommendation>, IEquatable<Recommendation>, IDeepCloneable<Recommendation>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Recommender v1 API class Recommendation.

A recommendation along with a suggested action. E.g., a rightsizing
recommendation for an underutilized VM, IAM role recommendations, etc

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Recommendation

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Recommendation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Recommendation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Recommendation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Recommendation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Recommendation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Recommendation.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Recommender.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.md.txt)

## Assembly

Google.Cloud.Recommender.V1.dll

## Constructors

### Recommendation()

    public Recommendation()

### Recommendation(Recommendation)

    public Recommendation(Recommendation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Recommendation` |

## Properties

### AdditionalImpact

    public RepeatedField<Impact> AdditionalImpact { get; }

Optional set of additional impact that this recommendation may have when
trying to optimize for the primary category. These may be positive
or negative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldImpact` |   |

### AssociatedInsights

    public RepeatedField<Recommendation.Types.InsightReference> AssociatedInsights { get; }

Insights that led to this recommendation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldRecommendationTypesInsightReference` |   |

### Content

    public RecommendationContent Content { get; set; }

Content of the recommendation describing recommended changes to resources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RecommendationContent` |   |

### Description

    public string Description { get; set; }

Free-form human readable summary in English. The maximum length is 500
characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Etag

    public string Etag { get; set; }

Fingerprint of the Recommendation. Provides optimistic locking when
updating states.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LastRefreshTime

    public Timestamp LastRefreshTime { get; set; }

Last time this recommendation was refreshed by the system that created it
in the first place.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Name

    public string Name { get; set; }

Identifier. Name of recommendation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PrimaryImpact

    public Impact PrimaryImpact { get; set; }

The primary impact that this recommendation can have while trying to
optimize for one category.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Impact` |   |

### Priority

    public Recommendation.Types.Priority Priority { get; set; }

Recommendation's priority.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RecommendationTypesPriority` |   |

### RecommendationName

    public RecommendationName RecommendationName { get; set; }

[RecommendationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.RecommendationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Recommendation.md.txt#Google_Cloud_Recommender_V1_Recommendation_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RecommendationName` |   |

### RecommenderSubtype

    public string RecommenderSubtype { get; set; }

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.iam.policy.Recommender",
recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### StateInfo

    public RecommendationStateInfo StateInfo { get; set; }

Information for state. Contains state and metadata.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RecommendationStateInfo` |   |

### TargetResources

    public RepeatedField<string> TargetResources { get; }

Fully qualified resource names that this recommendation is targeting.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### XorGroupId

    public string XorGroupId { get; set; }

Corresponds to a mutually exclusive group ID within a recommender.
A non-empty ID indicates that the recommendation belongs to a mutually
exclusive group. This means that only one recommendation within the group
is suggested to be applied.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |