File: printer_specifics.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 (81 lines) | stat: -rw-r--r-- 2,787 bytes parent folder | download | duplicates (7)
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
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Sync protocol datatype extension for printer data.

// If you change or add any fields in this file, update proto_visitors.h and
// potentially proto_enum_conversions.{h, cc}.

syntax = "proto2";

option java_multiple_files = true;
option java_package = "org.chromium.components.sync.protocol";

option optimize_for = LITE_RUNTIME;

package sync_pb;

// User PPD configuration
message PrinterPPDReference {
  // Url for user provided file.  Overrides other fields.
  optional string user_supplied_ppd_url = 1;

  // Retired fields
  optional string effective_manufacturer = 2 [deprecated = true];
  optional string effective_model = 3 [deprecated = true];

  // String identifying the type of printer, used to look up a ppd to drive the
  // printer.
  optional string effective_make_and_model = 4;

  // True if the printer should be automatically configured, false otherwise.
  optional bool autoconf = 5 [default = false];
}

message PrinterSpecifics {
  // Printer record GUID
  optional string id = 1;

  // User visible name.  Any string.
  optional string display_name = 2;

  // User visible description.  Any string.
  optional string description = 3;

  // Printer manufacturer.  Should be a known manufacturuer.
  // Deprecated in favor of make_and_model.
  optional string manufacturer = 4 [deprecated = true];

  // Printer model.  Should match a known model for the manufacturer.
  // Deprecated in favor of make_and_model.
  optional string model = 5 [deprecated = true];

  // Universal Resource Identifier for the printer on the network.  usb:// will
  // be the scheme for USB printers.  Example
  // ipp://address.example:port/queue/queue/queue.
  optional string uri = 6;

  // Universally Unique Identifier provided by the printer.  Used for unique
  // identification of printers in a zeroconf environment.
  optional string uuid = 7;

  // PPDData was deprecated in favor of PPDReference format.
  optional bytes ppd = 8 [deprecated = true];

  // Structure representing the user's ppd configuration.
  optional PrinterPPDReference ppd_reference = 9;

  // Timestamp when printer was last updated.
  optional int64 updated_timestamp = 10;

  // The make and model of the printer in one string.  The typical arrangement
  // for this is '<make> <model>'.  This aligns with the typical formatting of
  // the IPP attribute printer-make-and-model.
  optional string make_and_model = 11;

  // Universal Resource Identifier for the print server on the network.  This
  // will only be populated if the printer is from a print server.  Example
  // ipp://address.example:port/
  optional string print_server_uri = 12;
}