# Recommender V1 API - Class Google::Cloud::Recommender::V1::Impact (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.6 Reference documentation and code samples for the Recommender V1 API class Google::Cloud::Recommender::V1::Impact.

Contains the impact a recommendation can have for a given category.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #category

    def category() -> ::Google::Cloud::Recommender::V1::Impact::Category

**Returns**

- ([::Google::Cloud::Recommender::V1::Impact::Category](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-Impact-Category)) --- Category that is being targeted.

### #category=

    def category=(value) -> ::Google::Cloud::Recommender::V1::Impact::Category

**Parameter**

- **value** ([::Google::Cloud::Recommender::V1::Impact::Category](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-Impact-Category)) --- Category that is being targeted.
**Returns**

- ([::Google::Cloud::Recommender::V1::Impact::Category](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-Impact-Category)) --- Category that is being targeted.

### #cost_projection

    def cost_projection() -> ::Google::Cloud::Recommender::V1::CostProjection

**Returns**

- ([::Google::Cloud::Recommender::V1::CostProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-CostProjection)) --- Use with CategoryType.COST


  Note: The following fields are mutually exclusive: `cost_projection`, `security_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cost_projection=

    def cost_projection=(value) -> ::Google::Cloud::Recommender::V1::CostProjection

**Parameter**

- **value** ([::Google::Cloud::Recommender::V1::CostProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-CostProjection)) --- Use with CategoryType.COST


  Note: The following fields are mutually exclusive: `cost_projection`, `security_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Recommender::V1::CostProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-CostProjection)) --- Use with CategoryType.COST


  Note: The following fields are mutually exclusive: `cost_projection`, `security_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #reliability_projection

    def reliability_projection() -> ::Google::Cloud::Recommender::V1::ReliabilityProjection

**Returns**

- ([::Google::Cloud::Recommender::V1::ReliabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-ReliabilityProjection)) --- Use with CategoryType.RELIABILITY


  Note: The following fields are mutually exclusive: `reliability_projection`, `cost_projection`, `security_projection`, `sustainability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #reliability_projection=

    def reliability_projection=(value) -> ::Google::Cloud::Recommender::V1::ReliabilityProjection

**Parameter**

- **value** ([::Google::Cloud::Recommender::V1::ReliabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-ReliabilityProjection)) --- Use with CategoryType.RELIABILITY


  Note: The following fields are mutually exclusive: `reliability_projection`, `cost_projection`, `security_projection`, `sustainability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Recommender::V1::ReliabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-ReliabilityProjection)) --- Use with CategoryType.RELIABILITY


  Note: The following fields are mutually exclusive: `reliability_projection`, `cost_projection`, `security_projection`, `sustainability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #security_projection

    def security_projection() -> ::Google::Cloud::Recommender::V1::SecurityProjection

**Returns**

- ([::Google::Cloud::Recommender::V1::SecurityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SecurityProjection)) --- Use with CategoryType.SECURITY


  Note: The following fields are mutually exclusive: `security_projection`, `cost_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #security_projection=

    def security_projection=(value) -> ::Google::Cloud::Recommender::V1::SecurityProjection

**Parameter**

- **value** ([::Google::Cloud::Recommender::V1::SecurityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SecurityProjection)) --- Use with CategoryType.SECURITY


  Note: The following fields are mutually exclusive: `security_projection`, `cost_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Recommender::V1::SecurityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SecurityProjection)) --- Use with CategoryType.SECURITY


  Note: The following fields are mutually exclusive: `security_projection`, `cost_projection`, `sustainability_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #service

    def service() -> ::String

**Returns**

- (::String) --- The service that this impact is associated with.

### #service=

    def service=(value) -> ::String

**Parameter**

- **value** (::String) --- The service that this impact is associated with.
**Returns**

- (::String) --- The service that this impact is associated with.

### #sustainability_projection

    def sustainability_projection() -> ::Google::Cloud::Recommender::V1::SustainabilityProjection

**Returns**

- ([::Google::Cloud::Recommender::V1::SustainabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SustainabilityProjection)) --- Use with CategoryType.SUSTAINABILITY


  Note: The following fields are mutually exclusive: `sustainability_projection`, `cost_projection`, `security_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sustainability_projection=

    def sustainability_projection=(value) -> ::Google::Cloud::Recommender::V1::SustainabilityProjection

**Parameter**

- **value** ([::Google::Cloud::Recommender::V1::SustainabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SustainabilityProjection)) --- Use with CategoryType.SUSTAINABILITY


  Note: The following fields are mutually exclusive: `sustainability_projection`, `cost_projection`, `security_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Recommender::V1::SustainabilityProjection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest/Google-Cloud-Recommender-V1-SustainabilityProjection)) --- Use with CategoryType.SUSTAINABILITY


  Note: The following fields are mutually exclusive: `sustainability_projection`, `cost_projection`, `security_projection`, `reliability_projection`. If a field in that set is populated, all other fields in the set will automatically be cleared.