1// Copyright 2017 The Chromium Authors 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; 8option java_package = "org.chromium.components.metrics"; 9 10option java_outer_classname = "PrinterEventProtos"; 11 12package metrics; 13 14// Stores information about a printer that a user is setting up/has attempted to 15// set up. 16// Next tag: 9 17message PrinterEventProto { 18 // The detected printer manufacuter name. 19 optional string usb_printer_manufacturer = 1; 20 21 // The detected printer model name. 22 optional string usb_printer_model = 2; 23 24 // The usb vendor id of the printer. 25 optional int32 usb_vendor_id = 3; 26 27 // The usb model id of the printer. 28 optional int32 usb_model_id = 4; 29 30 // The value reported as a printer's printer-make-and-model attribute. 31 optional string ipp_make_and_model = 5; 32 33 // A true value means that the user provided their own PPD. 34 optional bool user_ppd = 6; 35 36 // The identifier for PPDs from our serving system. 37 optional string ppd_identifier = 7; 38 39 // The action for which the printer was logged. 40 // Next tag: 5 41 enum EventType { 42 UNKNOWN = 0; 43 44 // Specified printer successfully installed using the detected 45 // configuration. 46 SETUP_AUTOMATIC = 1; 47 48 // Specified printer was installed when the user selected the appropriate 49 // configuration. 50 SETUP_MANUAL = 2; 51 52 // Setup was started but abandoned when user was prompted to choose a 53 // configuration. 54 SETUP_ABANDONED = 3; 55 56 // A printer, which had been successfully installed, was deleted from the 57 // user's preferences. 58 PRINTER_DELETED = 4; 59 } 60 61 // The event for which this was recorded. 62 optional EventType event_type = 8; 63} 64