Skip to content

energy_pb2

frequenz.api.common.v1alpha8.market.energy_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1alpha8.market.energy_pb2.Energy ¤

Bases: Message

Represents a single unit of electricity.

Note

The unit of energy is denominated in MWh, which is a unit of energy representing total output over a period.(Megawatt-hours). This differs from MW (Megawatts), a unit of power representing the rate of energy production or consumption.

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

_sym_db = _symbol_database.Default()


from frequenz.api.common.v1alpha8.types import decimal_pb2 as frequenz_dot_api_dot_common_dot_v1alpha8_dot_types_dot_decimal__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0frequenz/api/common/v1alpha8/market/energy.proto\x12#frequenz.api.common.v1alpha8.market\x1a\x30\x66requenz/api/common/v1alpha8/types/decimal.proto\"B\n\x06\x45nergy\x12\x38\n\x03mwh\x18\x01 \x01(\x0b\x32+.frequenz.api.common.v1alpha8.types.Decimalb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1alpha8.market.energy_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_ENERGY']._serialized_start=139
  _globals['_ENERGY']._serialized_end=205
# @@protoc_insertion_point(module_scope)
Attributes¤
mwh property ¤

Energy unit in Megawatthours (MWh).