blob: a6bc31191ddb848d6ef2681a9035cedbf3b7a6da [file] [log] [blame]
// 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.
edition = "2023";
package optimization_guide.proto;
option optimize_for = LITE_RUNTIME;
option java_package = "org.chromium.components.optimization_guide.features.proto";
option java_outer_classname = "AmountExtractionProto";
// DO NOT EDIT THIS FILE DIRECTLY!
//
// This file is generated in g3 and then synced to Chrome. Instead, please refer to
// http://go/chrome-mqls-onboarding (Google-internal link), and then changes will
// be synced with Chrome automatically.
message AmountExtractionLoggingData {
AmountExtractionRequest request = 1 [features = { field_presence: EXPLICIT }];
AmountExtractionResponse response = 2 [features = { field_presence: EXPLICIT }];
}
message AmountExtractionRequest {
// The image to extract amounts from.
repeated bytes screenshots = 1;
// The HTML content of the page, used to extract the amount.
string html = 2 [features = { field_presence: EXPLICIT }];
}
message AmountExtractionResponse {
// The extracted amount.
double amount = 1 [features = { field_presence: EXPLICIT }];
}