OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 // |
| 5 // Sync protocol datatype extension for printer data. |
| 6 |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
| 8 // any fields in this file. |
| 9 |
| 10 syntax = "proto2"; |
| 11 |
| 12 option optimize_for = LITE_RUNTIME; |
| 13 |
| 14 package sync_pb; |
| 15 |
| 16 // Properties of PPDs associated with printers. |
| 17 message PrinterPPDData { |
| 18 // Id issued by PPD Server. 0 for user specified ppds. |
| 19 optional int32 id = 1 [default = 0]; |
| 20 |
| 21 // A relative path uniquely identifying the file. |
| 22 optional string file_name = 2; |
| 23 |
| 24 // File version number. |
| 25 optional int64 version_number = 3; |
| 26 |
| 27 // True if the file came from the PPD Server. False if |
| 28 // user provided. |
| 29 optional bool from_quirks_server = 4 [default = false]; |
| 30 } |
| 31 |
| 32 message PrinterSpecifics { |
| 33 // Printer record GUID |
| 34 optional string id = 1; |
| 35 |
| 36 // User visible name. Any string. |
| 37 optional string display_name = 2; |
| 38 |
| 39 // User visible description. Any string. |
| 40 optional string description = 3; |
| 41 |
| 42 // Printer manufacturer. Should be a known manufacturuer. |
| 43 optional string manufacturer = 4; |
| 44 |
| 45 // Printer model. Should match a known model for the manufacturer. |
| 46 optional string model = 5; |
| 47 |
| 48 // Universal Resource Identifier for the printer on the network. usb:// will |
| 49 // be the scheme for USB printers. Example |
| 50 // ipp://address.example:port/queue/queue/queue. |
| 51 optional string uri = 6; |
| 52 |
| 53 // Universally Unique Identifier provided by the printer. Used for unique |
| 54 // identification of printers in a zeroconf environment. |
| 55 optional string uuid = 7; |
| 56 |
| 57 // Structure representing the PPD with which the printer was configured. |
| 58 optional PrinterPPDData ppd = 8; |
| 59 } |
OLD | NEW |