Skip to content

power_pb2

frequenz.api.common.v1.market.power_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1.market.power_pb2.Power ¤

Bases: Message

Represents a single unit of power.

Note

The power unit is denominated in MW (Megawatts), which is a unit of power representing the rate of energy production or consumption at any given moment. This differs from MWh (Megawatt-hours), which measures the total amount of energy delivered or consumed over a period.

Example

A power plant running at 10 MW for 1 hour generates 10 MWh of energy.

This message standardizes the representation of power in MW across all market applications.

Source code in frequenz/api/common/v1/market/power_pb2.py
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from frequenz.api.common.v1.types import decimal_pb2 as frequenz_dot_api_dot_common_dot_v1_dot_types_dot_decimal__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)frequenz/api/common/v1/market/power.proto\x12\x1d\x66requenz.api.common.v1.market\x1a*frequenz/api/common/v1/types/decimal.proto\":\n\x05Power\x12\x31\n\x02mw\x18\x01 \x01(\x0b\x32%.frequenz.api.common.v1.types.Decimalb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1.market.power_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_POWER']._serialized_start=120
  _globals['_POWER']._serialized_end=178
# @@protoc_insertion_point(module_scope)
Attributes¤
mw property ¤

Power amount in Megawatts (MW).