1// Copyright (c) 2011 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 5syntax = "proto2"; 6 7option optimize_for = LITE_RUNTIME; 8 9package enterprise_management; 10 11// This file keeps the deprecated GenericNamedValue based format for policies 12// available. It is intended to be removed (along with all code that makes 13// use of it) as soon as all server-side components (CPanel, D3) have been 14// migrated to provide the new, explicitly typed format to clients. 15 16// A setting is a set of generic name value pairs. 17message GenericSetting { 18 repeated GenericNamedValue named_value = 1; 19} 20 21// Generic value container. 22message GenericValue { 23 enum ValueType { 24 VALUE_TYPE_BOOL = 1; 25 VALUE_TYPE_INT64 = 2; 26 VALUE_TYPE_STRING = 3; 27 VALUE_TYPE_DOUBLE = 4; 28 VALUE_TYPE_BYTES = 5; 29 VALUE_TYPE_BOOL_ARRAY = 6; 30 VALUE_TYPE_INT64_ARRAY = 7; 31 VALUE_TYPE_STRING_ARRAY = 8; 32 VALUE_TYPE_DOUBLE_ARRAY = 9; 33 } 34 35 optional ValueType value_type = 1 [default = VALUE_TYPE_STRING]; 36 37 // basic value types 38 optional bool bool_value = 2; 39 optional int64 int64_value = 3; 40 optional string string_value = 4; 41 optional double double_value = 5; 42 optional bytes bytes_value = 6; 43 repeated bool bool_array = 7; 44 repeated int64 int64_array = 8; 45 repeated string string_array = 9; 46 repeated double double_array = 10; 47} 48 49// Generic name value pair container. 50message GenericNamedValue { 51 required string name = 1; 52 optional GenericValue value = 2; 53} 54 55// Wrapper that contains the above. Designed to be a partial view of the 56// data the server currently delivers. 57message LegacyChromeSettingsProto { 58 repeated GenericNamedValue named_value = 2; 59} 60