File: printer_event.proto

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (163 lines) | stat: -rw-r--r-- 4,535 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Copyright 2017 The Chromium Authors
// 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;
option java_package = "org.chromium.components.metrics";

option java_outer_classname = "PrinterEventProtos";

package metrics;

// Stores information about a printer that a user is setting up/has attempted to
// set up.
// Next tag: 21
message PrinterEventProto {
  // The detected printer manufacuter name.
  optional string usb_printer_manufacturer = 1;

  // The detected printer model name.
  optional string usb_printer_model = 2;

  // The usb vendor id of the printer.
  optional int32 usb_vendor_id = 3;

  // The usb model id of the printer.
  optional int32 usb_model_id = 4;

  // The value reported as a printer's printer-make-and-model attribute.
  optional string ipp_make_and_model = 5;

  // A true value means that the user provided their own PPD.
  optional bool user_ppd = 6;

  // The identifier for PPDs from our serving system.
  optional string ppd_identifier = 7;

  // The action for which the printer was logged.
  // Next tag: 5
  enum EventType {
    UNKNOWN = 0;

    // Specified printer successfully installed using the detected
    // configuration.
    SETUP_AUTOMATIC = 1;

    // Specified printer was installed when the user selected the appropriate
    // configuration.
    SETUP_MANUAL = 2;

    // Setup was started but abandoned when user was prompted to choose a
    // configuration.
    SETUP_ABANDONED = 3;

    // A printer, which had been successfully installed, was deleted from the
    // user's preferences.
    PRINTER_DELETED = 4;
  }

  // The event for which this was recorded.
  optional EventType event_type = 8;

  // List of document formats the printer supports. MIME-types.
  repeated string document_format_supported = 9;

  // The printer's document-format-preferred attribute. MIME-type.
  optional string document_format_preferred = 10;

  // Document format used when the user does not supply a document-format
  // attribute. MIME-type.
  optional string document_format_default = 11;

  // Supported printing modes for URF printing.
  repeated string urf_supported = 12;

  // PDF versions which printers can support. See
  // https://ftp.pwg.org/pub/pwg/candidates/cs-ippnodriver20-20230301-5100.13.pdf
  // for details.
  // Next tag: 20
  enum PdfVersion {
    PDF_VERSION_UNKNOWN = 0;
    ADOBE_1_3 = 1;
    ADOBE_1_4 = 2;
    ADOBE_1_5 = 3;
    ADOBE_1_6 = 4;
    ADOBE_1_7 = 5;
    ISO_15930_1_2001 = 6;
    ISO_15930_3_2002 = 7;
    ISO_15930_4_2003 = 8;
    ISO_15930_6_2003 = 9;
    ISO_15930_7_2010 = 10;
    ISO_15930_8_2010 = 11;
    ISO_16612_2_2010 = 12;
    ISO_19005_1_2005 = 13;
    ISO_19005_2_2011 = 14;
    ISO_19005_3_2012 = 15;
    ISO_23504_1_2020 = 16;
    ISO_32000_1_2008 = 17;
    ISO_32000_2_2017 = 18;
    PWG_5102_3 = 19;
  }

  // PDF versions supported by the printer.
  repeated PdfVersion pdf_versions_supported = 13;

  // IPP extension features printers can support. See
  // https://ftp.pwg.org/pub/pwg/candidates/cs-ippnodriver20-20230301-5100.13.pdf
  // for details.
  // Next tag: 29
  enum IppFeature {
    IPP_FEATURE_UNKNOWN = 0;
    ADF = 1;
    FILM_READER = 2;
    PLATEN = 3;
    DOCUMENT_OBJECT = 4;
    FAXOUT = 5;
    ICC_COLOR_MATCHING = 6;
    INFRASTRUCTURE_PRINTER = 7;
    IPP_3D = 8;
    IPP_EVERYWHERE = 9;
    IPP_EVERYWHERE_SERVER = 10;
    JOB_RELEASE = 11;
    JOB_SAVE = 12;
    JOB_STORAGE = 13;
    NONE = 14;
    PAGE_OVERRIDES = 15;
    PRINT_POLICY = 16;
    PRODUCTION = 17;
    PROOF_AND_SUSPEND = 18;
    PROOF_PRINT = 19;
    RESOURCE_OBJECT = 20;
    SCAN = 21;
    SUBSCRIPTION_OBJECT = 22;
    SYSTEM_OBJECT = 23;
    WFDS_PRINT_1_0 = 24;
    AIRPRINT_1_6 = 25;
    AIRPRINT_1_7 = 26;
    AIRPRINT_1_8 = 27;
    AIRPRINT_2_1 = 28;
  }

  // List of IPP extension features supported by the printer.
  repeated IppFeature ipp_features_supported = 14;

  // Mopria certification level of the printer.
  optional string mopria_certified = 15;

  // Categories of printing supported by the printer.
  repeated string printer_kind = 16;

  // Whether or not the printer supports roll sizes.
  optional bool roll_sizes_available = 17;

  // The name of the PPD file that was used to set up the printer.
  optional string ppd_file_name = 18;

  // All of the CUPS filters used by the printer.
  repeated string cups_filters = 19;

  // IEEE 1284 Device ID string.
  optional string device_id = 20;
}