// Copyright 2026 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";

package wallet;

option optimize_for = LITE_RUNTIME;

// Information about the client making the request.
message ClientInfo {
  // Information about Chrome Autofill client.
  message ChromeClientInfo {
    // The version of the Chrome client.
    optional string version = 1;

    enum Platform {
      PLATFORM_UNSPECIFIED = 0;
      PLATFORM_WINDOWS = 1;
      PLATFORM_MACOS = 2;
      PLATFORM_LINUX = 3;
      PLATFORM_CHROMEOS = 4;
      PLATFORM_ANDROID = 5;
      PLATFORM_IOS = 6;
    }
    optional Platform platform = 2;
  }
  // Information about Chrome Web Page Detection client.
  message ChromeWebPageDetectionClientInfo {
    // The version of the Chrome Web Page Detection client.
    optional string version = 1;
  }

  // Client-specific information.
  oneof info {
    // Information about Chrome Autofill client.
    ChromeClientInfo chrome_client_info = 1;
    // Information about Chrome Web Page Detection client.
    ChromeWebPageDetectionClientInfo chrome_web_page_detection_client_info = 2;
  }
}
