syntax = "proto3"; package kilowatt.capacity; import "common.proto"; import "google/protobuf/timestamp.proto"; service Capacity { rpc Upsert(Capacities) returns (kilowatt.common.QueryResponse); rpc GetByGridId(CapacityParams) returns (Capacities); } message CapacityParams { string grid_id = 1; google.protobuf.Timestamp start = 2; google.protobuf.Timestamp finish = 3; int64 limit = 4; } message Capacities { CapacityParams header = 1; repeated kilowatt.common.Composition compositions = 2; }