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 extensions 2; |
| 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 } |
OLD | NEW |