File: autofill_valuable_specifics.proto

package info (click to toggle)
chromium 141.0.7390.107-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,246,132 kB
  • sloc: cpp: 35,264,965; ansic: 7,169,920; javascript: 4,250,185; python: 1,460,635; asm: 950,788; xml: 751,751; pascal: 187,972; sh: 89,459; perl: 88,691; objc: 79,953; sql: 53,924; cs: 44,622; fortran: 24,137; makefile: 22,313; tcl: 15,277; php: 14,018; yacc: 8,995; ruby: 7,553; awk: 3,720; lisp: 3,096; lex: 1,330; ada: 727; jsp: 228; sed: 36
file content (118 lines) | stat: -rw-r--r-- 3,480 bytes parent folder | download | duplicates (4)
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
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// 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;

// This is a copy of google.protobuf.Any.
message Any {
  // A URL/resource name that uniquely identifies the type of the serialized
  // protocol buffer message.
  optional string type_url = 1;

  // Must be a valid serialized protocol buffer of the above specified type.
  optional bytes value = 2;
}

// Represents a loyalty card from Google Wallet.
message LoyaltyCard {
  // The merchant name e.g. "Deutsche Bahn".
  optional string merchant_name = 1;

  // The program name e.g. "BahnBonus".
  optional string program_name = 2;

  // The logo URL.
  optional string program_logo = 3;

  // The loyalty card text code.
  optional string loyalty_card_number = 4;

  // Merchant domains associated to the loyalty card.
  repeated string merchant_domains = 5;
}

// Represents a vehicle registration from Google Wallet.
message VehicleRegistration {
  // The vehicle make e.g. "Ford".
  optional string vehicle_make = 1;

  // The vehicle model e.g. "Fiesta".
  optional string vehicle_model = 2;

  // The year when model was first made e.g. "2018".
  optional string vehicle_year = 3;

  // The Vehicle Identification Number (VIN).
  optional string vehicle_identification_number = 4;

  // The license plate number.
  optional string vehicle_license_plate = 5;

  // The region that issued the license plate.
  optional string license_plate_region = 6;

  // The country that issued the license plate, normalized to ISO 3166-1
  // alpha-2.
  optional string license_plate_country = 7;

  // The owner of the vehicle as it appears on their vehicle registration
  // documents.
  optional string owner_name = 8;
}

// Represents a flight reservation from Google Wallet.
message FlightReservation {
  // The flight number.
  optional string flight_number = 1;

  // The flight ticket number.
  optional string flight_ticket_number = 2;

  // The flight confirmation code (normally ~6 digits made of alphanumeric
  // characters).
  optional string flight_confirmation_code = 3;

  // The passenger's full name.
  optional string passenger_name = 4;

  // The departure airport in IATA format e.g AMS for Amsterdam Schiphol.
  optional string departure_airport = 5;

  // The arrival airport in IATA format e.g LHR for London Heathrow.
  optional string arrival_airport = 6;

  // The departure date. This is a server-provided timestamp in microseconds.
  optional int64 departure_date_unix_epoch_micros = 7;

  // The arrival date. This is a server-provided timestamp with units in
  // microseconds.
  optional int64 arrival_date_unix_epoch_micros = 8;
}

// Valuables coming from Google Wallet.
message AutofillValuableSpecifics {
  // The valuable id.
  optional string id = 1;

  oneof valuable_data {
    LoyaltyCard loyalty_card = 2;
    VehicleRegistration vehicle_registration = 3;
    FlightReservation flight_reservation = 5;
    // add other valuable types here.
  }

  // Contains information that is used by Chrome and needs to be persisted
  // across clients.
  optional Any serialized_chrome_valuables_metadata = 4;
}