request_get_preset_status.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* request_get_preset_status.proto/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). */
  2. /* This copyright was auto-generated on Mon Nov 4 18:00:55 UTC 2024 */
  3. /***********************************************************************************************************************
  4. *
  5. * This file is automatically generated!!! Do not modify manually.
  6. *
  7. **********************************************************************************************************************/
  8. /**
  9. * Defines the structure of protobuf messages for obtaining preset status
  10. */
  11. syntax = "proto2";
  12. package open_gopro;
  13. enum EnumRegisterPresetStatus {
  14. REGISTER_PRESET_STATUS_PRESET = 1; // Send notification when properties of a preset change
  15. REGISTER_PRESET_STATUS_PRESET_GROUP_ARRAY = 2; // Send notification when properties of a preset group change
  16. }
  17. /**
  18. * Get the set of currently available presets and optionally register to be notified when it changes.
  19. *
  20. * Response: @ref NotifyPresetStatus sent immediately
  21. *
  22. * Notification: @ref NotifyPresetStatus sent periodically as preset status changes, if registered.
  23. *
  24. * The preset status changes when:
  25. *
  26. * - A client changes one of a preset's captioned settings via the API
  27. * - The user exits from a preset's settings UI on the camera (e.g. long-press the preset pill and then press the back arrow)
  28. * - The user creates/deletes/reorders a preset within a group
  29. */
  30. message RequestGetPresetStatus {
  31. repeated EnumRegisterPresetStatus register_preset_status = 1; // Array of Preset statuses to be notified about
  32. repeated EnumRegisterPresetStatus unregister_preset_status = 2; // Array of Preset statuses to stop being notified about
  33. /**
  34. * Configures the set of Setting IDs that are returned by @ref NotifyPresetStatus.
  35. *
  36. * Defaults to False if not set
  37. *
  38. * When False, Setting IDs are tied to their camera UI string representation and may vary between cameras.
  39. *
  40. * When True, Setting IDs are tied to their functional representation and are consistent across cameras.
  41. */
  42. optional bool use_constant_setting_ids = 3;
  43. }