policy_common_definitions.proto 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. syntax = "proto2";
  5. option optimize_for = LITE_RUNTIME;
  6. package enterprise_management;
  7. option go_package="chromium/policy/enterprise_management_proto";
  8. // Everything below this comment will be synchronized between client and server
  9. // repos ( go/cros-proto-sync ).
  10. message StringList {
  11. repeated string entries = 1;
  12. }
  13. message PolicyOptions {
  14. enum PolicyMode {
  15. // The given settings are applied regardless of user choice.
  16. MANDATORY = 0;
  17. // The user may choose to override the given settings.
  18. RECOMMENDED = 1;
  19. // No policy value is present and the policy should be ignored.
  20. UNSET = 2;
  21. }
  22. optional PolicyMode mode = 1 [default = MANDATORY];
  23. }
  24. message BooleanPolicyProto {
  25. optional PolicyOptions policy_options = 1;
  26. optional bool value = 2;
  27. }
  28. message IntegerPolicyProto {
  29. optional PolicyOptions policy_options = 1;
  30. optional int64 value = 2;
  31. }
  32. message StringPolicyProto {
  33. optional PolicyOptions policy_options = 1;
  34. optional string value = 2;
  35. }
  36. message StringListPolicyProto {
  37. optional PolicyOptions policy_options = 1;
  38. optional StringList value = 2;
  39. }