OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
5 syntax = "proto2"; | |
6 option optimize_for = LITE_RUNTIME; | |
7 | |
8 package image_collections; | |
9 | |
10 message ClusterRequest { | |
11 // Optional list of docs we want to cluster--a subset of the user's available | |
12 // docs. | |
13 repeated string docs = 1; | |
14 | |
15 // When docs is empty, used to determine which clips are clustered. If set to | |
16 // true, cluster all the user's clips. Otherwise (default) cluster all of the | |
17 // user's uncategorized clips. | |
18 optional bool cluster_all = 3 [default = false]; | |
19 | |
20 optional HypnoOptions options = 2; | |
Mark
2014/09/18 18:08:51
Consider using "extensions 2;" here to denote this
noyau (Ping after 24h)
2014/10/01 16:04:42
Done.
| |
21 } | |
22 | |
23 message ClusterResponse { | |
24 message Cluster { | |
25 repeated string docs = 1; | |
26 // May be empty or unset if no reasonable title could be found. | |
27 optional string title = 2; | |
28 } | |
29 | |
30 // Each of ClusterRequest.docs will exist in exactly one cluster. Some | |
31 // clusters may be singletons, so | |
32 // ClusterResponse.clusters_size() <= ClusterRequest.docs_size(). | |
33 repeated Cluster clusters = 1; | |
34 } | |
35 | |
36 // Options proto used for tuning and RPC requests. | |
37 message HypnoOptions { | |
Mark
2014/09/18 18:08:52
You cannot set the HypnoOptions when querying GWS,
Yaron
2014/09/23 17:08:29
Sounds good to me. Let's keep this minimal and rem
noyau (Ping after 24h)
2014/10/01 16:04:42
Done.
noyau (Ping after 24h)
2014/10/01 16:04:42
Done.
| |
38 optional float min_merge_similarity = 1 [default = 0.14]; | |
39 optional float min_linkage_similarity = 2 [default = 0.12]; | |
40 | |
41 // GAIA ID to use for requests received via RPC. | |
42 optional int64 gaia_id = 3 [default = 0]; | |
43 | |
44 // Options for limiting what is returned from cluster. | |
45 optional int32 min_cluster_size = 4 [default = 3]; | |
46 optional bool include_unnamed_clusters = 5 [default = false]; | |
47 | |
48 // Options for webref usage. Currently only honored in Superroot. | |
49 optional int32 min_webref_topicality = 6 [default = 30]; | |
50 optional float webref_topicality_scaling = 7 [default = 1.0]; | |
51 } | |
OLD | NEW |