Reference documentation and code samples for the Recommender V1 API class Google::Cloud::Recommender::V1::SustainabilityProjection.
Contains metadata about how much sustainability a recommendation can save or incur.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#duration
def duration() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — Duration for which this sustainability applies.
#duration=
def duration=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — Duration for which this sustainability applies.
Returns
- (::Google::Protobuf::Duration) — Duration for which this sustainability applies.
#kg_c_o2e
def kg_c_o2e() -> ::Float
Returns
- (::Float) — Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).
#kg_c_o2e=
def kg_c_o2e=(value) -> ::Float
Parameter
- value (::Float) — Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).
Returns
- (::Float) — Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).