// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. syntax = "proto2"; option optimize_for = LITE_RUNTIME; package enterprise_management; // This file keeps the deprecated GenericNamedValue based format for policies // available. It is intended to be removed (along with all code that makes // use of it) as soon as all server-side components (CPanel, D3) have been // migrated to provide the new, explicitly typed format to clients. // A setting is a set of generic name value pairs. message GenericSetting { repeated GenericNamedValue named_value = 1; } // Generic value container. message GenericValue { enum ValueType { VALUE_TYPE_BOOL = 1; VALUE_TYPE_INT64 = 2; VALUE_TYPE_STRING = 3; VALUE_TYPE_DOUBLE = 4; VALUE_TYPE_BYTES = 5; VALUE_TYPE_BOOL_ARRAY = 6; VALUE_TYPE_INT64_ARRAY = 7; VALUE_TYPE_STRING_ARRAY = 8; VALUE_TYPE_DOUBLE_ARRAY = 9; } optional ValueType value_type = 1 [default = VALUE_TYPE_STRING]; // basic value types optional bool bool_value = 2; optional int64 int64_value = 3; optional string string_value = 4; optional double double_value = 5; optional bytes bytes_value = 6; repeated bool bool_array = 7; repeated int64 int64_array = 8; repeated string string_array = 9; repeated double double_array = 10; } // Generic name value pair container. message GenericNamedValue { required string name = 1; optional GenericValue value = 2; } // Wrapper that contains the above. Designed to be a partial view of the // data the server currently delivers. message LegacyChromeSettingsProto { repeated GenericNamedValue named_value = 2; }