| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Sync protocol datatype extension for user events. | 5 // Sync protocol datatype extension for user events. |
| 6 | 6 |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
| 8 // any fields in this file. | 8 // any fields in this file. |
| 9 | 9 |
| 10 syntax = "proto2"; | 10 syntax = "proto2"; |
| 11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 | 13 |
| 14 package sync_pb; | 14 package sync_pb; |
| 15 | 15 |
| 16 message FieldTrialEvent { | 16 message FieldTrial { |
| 17 message FieldTrial { | 17 message FieldTrialPair { |
| 18 optional fixed32 name_id = 1; | 18 optional fixed32 name_id = 1; |
| 19 optional fixed32 group_id = 2; | 19 optional fixed32 group_id = 2; |
| 20 } | 20 } |
| 21 repeated FieldTrial field_trials = 1; | 21 repeated FieldTrialPair field_trial_pairs = 1; |
| 22 } | 22 } |
| 23 | 23 |
| 24 // Language detection output. | 24 // Language detection output. |
| 25 message LanguageDetection { | 25 message LanguageDetection { |
| 26 message Language { | 26 message Language { |
| 27 // ISO 639 language code will be used. | 27 // ISO 639 language code will be used. |
| 28 optional string language_code = 1; | 28 optional string language_code = 1; |
| 29 // Whether the detected language is reliable, note this is determined by | 29 // Whether the detected language is reliable, note this is determined by |
| 30 // the CLD3. | 30 // the CLD3. |
| 31 optional bool is_reliable = 2; | 31 optional bool is_reliable = 2; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // On startup we generate a new random id to identify which FieldTrialEvents | 81 // On startup we generate a new random id to identify which FieldTrialEvents |
| 82 // other events belonged to. | 82 // other events belonged to. |
| 83 optional fixed64 session_id = 3; | 83 optional fixed64 session_id = 3; |
| 84 | 84 |
| 85 // 4-7 reserved for future scalars. | 85 // 4-7 reserved for future scalars. |
| 86 | 86 |
| 87 // Used for testing and debugging EventLog system. | 87 // Used for testing and debugging EventLog system. |
| 88 message Test {} | 88 message Test {} |
| 89 | 89 |
| 90 oneof event { | 90 oneof event { |
| 91 Test test = 8; | 91 Test test_event = 8; |
| 92 FieldTrialEvent field_trial_event = 9; | 92 FieldTrial field_trial_event = 9; |
| 93 LanguageDetection language_detection = 10; | 93 LanguageDetection language_detection_event = 10; |
| 94 Translation translation = 11; | 94 Translation translation_event = 11; |
| 95 } | 95 } |
| 96 } | 96 } |
| OLD | NEW |