File: wallpaper_search.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 (123 lines) | stat: -rw-r--r-- 4,172 bytes parent folder | download | duplicates (5)
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
119
120
121
122
123
// Copyright 2023 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;

import "components/optimization_guide/proto/features/common_quality_data.proto";

import "components/optimization_guide/proto/model_quality_metadata.proto";

option optimize_for = LITE_RUNTIME;
option java_package = "org.chromium.components.optimization_guide.features.proto";

option java_outer_classname = "WallpaperSearchProto";

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

// Next ID: 6
message WallpaperSearchLoggingData {
  WallpaperSearchRequest request = 1 [features = { field_presence: EXPLICIT }];

  WallpaperSearchResponse response = 2 [features = { field_presence: EXPLICIT }];

  WallpaperSearchQuality quality = 3 [features = { field_presence: EXPLICIT }];

  ModelExecutionInfo model_execution_info = 4 [features = { field_presence: EXPLICIT }];

  reserved 5;
}

// Next ID: 3
message WallpaperSearchRequest {
  // The prompt built by selectors.
  Descriptors descriptors = 2;

  reserved 1;
}

// Next ID: 5
message Descriptors {
  // The subject to be featured.
  string subject = 1 [features = { field_presence: IMPLICIT }];

  // The art style of the image.
  string style = 2 [features = { field_presence: IMPLICIT }];

  // The general mood of the image.
  string mood = 3 [features = { field_presence: IMPLICIT }];

  // A color to be featured in the image.
  string color = 4 [features = { field_presence: IMPLICIT }];
}

// Next ID: 3
message WallpaperSearchResponse {
  // The images returned for the request.
  repeated Image images = 2;

  reserved 1;
}

// Next ID: 3
message Image {
  bytes encoded_image = 1 [features = { field_presence: IMPLICIT }];

  int64 image_id = 2 [features = { field_presence: IMPLICIT }];
}

// Data logged for each Theme Response by a client.
// Next ID: 8
message WallpaperSearchQuality {
  // A session starts when opening Panorama and ends when closing Panorama.
  // Multiple WallpaperSearchQuality can have the same session_id.
  int64 session_id = 1 [features = { field_presence: IMPLICIT }];

  // Per image data.
  repeated WallpaperSearchImageQuality images_quality = 2;

  // Index, in chronological order, of the returned Themes Set within one
  // session.
  int32 index = 3 [features = { field_presence: IMPLICIT }];

  // Whether the user thumbs upped or downed the Theme Set.
  UserFeedback user_feedback = 4 [features = { field_presence: IMPLICIT }];

  // False, if the user clicked regenerate when this Theme Response was shown.
  // True, if the user ended the Session while this Theme Response was shown.
  bool final_request_in_session = 5 [features = { field_presence: IMPLICIT }];

  // Duration, in milliseconds, from requesting the Theme Response until the
  // response arrives at the client.
  int32 request_latency_ms = 6 [features = { field_presence: IMPLICIT }];

  // Duration, in milliseconds, from showing Theme Response until the user
  // regenerates or ends the Session.
  int32 complete_latency_ms = 7 [features = { field_presence: IMPLICIT }];
}

// Data logged for each Theme Image by client.
// Next ID: 5
message WallpaperSearchImageQuality {
  // ID associated with a specific model pipeline run. Each model pipeline run
  // has an ID and produces at most one image.
  int64 image_id = 1 [features = { field_presence: IMPLICIT }];

  // True, if the user selected the Theme Image from the Theme Response so it
  // appears on their NTP.
  bool previewed = 2 [features = { field_presence: IMPLICIT }];

  // True, if the Theme Image was selected as the background when the Session
  // ends.
  bool selected = 3 [features = { field_presence: IMPLICIT }];

  // Duration, in milliseconds, from showing the Theme Image until the user
  // previews the Theme Image. Only set if "selected" is true.
  int32 preview_latency_ms = 4 [features = { field_presence: EXPLICIT }];
}