syntax = "proto3"; package kilowatt.supply; import "common.proto"; import "google/protobuf/timestamp.proto"; service Supply { rpc GetById(SupplyByIdParams) returns (SupplyMessage); rpc GetProfile(ProfileParams) returns (Profile); } message SupplyByIdParams { string supply_id = 1; } message ProfileParams { string supply_id = 1; google.protobuf.Timestamp start = 2; google.protobuf.Timestamp finish = 3; int64 min_watts = 4; int64 max_watts = 5; int32 steps = 6; } message Profile { ProfileParams header = 1; repeated kilowatt.common.Composition compositions = 5; } message SupplyMessage { string id = 1; string name = 2; repeated SupplyTier tiers = 3; } message SupplyTier { repeated GridSpecification grids = 1; } message GridSpecification { string grid_id = 1; // string rate_id = 2; }