// satnogs-proto: Protobuf schemas for SatNOGS
// Copyright (C) 2025, Libre Space Foundation <https://libre.space>
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <https://www.gnu.org/licenses/>.

edition = "2023";

package satnogsproto;

import "radio_config.proto";
import "radio_parameter.proto";
import "transmitter.proto";
import "observation.proto";
import "sdr_command.proto";
import "flowgraph_config.proto";
import "message_valid.proto";

service FlowgraphDispatcherService {
  // Set all radio config variables
  rpc SetRadioConfigService (RadioConfig) returns (MessageValid) {}
  // Sets all flowgraphs parameters
  rpc SetFlowgraphConfigService (FlowgraphConfig) returns (MessageValid) {}
  // Sets all transimitter parameters
  rpc SetTransmitterService (Transmitter) returns (MessageValid) {}
  // Starts an observation
  rpc StartObservationService (Observation) returns (MessageValid) {}
  // Stops an observation
  rpc StopObservationService (Observation) returns (MessageValid) {}
  // Generic SoapySDR command service
  rpc SoapyCustomSdrCommandService (SdrCommand) returns (MessageValid) {}
  // UHD command service
  rpc UhdSdrCommandService (SdrCommand) returns (MessageValid) {}
  // Set specific radio parameter
  rpc SetRadioConfigParameterService (RadioParameter) returns (MessageValid) {}
  // Get Radio configuration
  rpc GetRadioConfigService (MessageValid) returns (RadioConfig) {}
  // Get Flowgraph Configuration
  rpc GetFlowgraphConfigService (MessageValid) returns (FlowgraphConfig) {}
  // Get Transmitter
  rpc GetTransmitterService (MessageValid) returns (Transmitter) {}
  // Get Observation configuration
  rpc GetObservationConfigService (MessageValid) returns (Observation) {}
}
