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.
6 option optimize_for = LITE_RUNTIME;
8 package image_collections;
10 message ClusterRequest {
11 // Optional list of docs we want to cluster--a subset of the user's available
13 repeated string docs = 1;
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];
23 message ClusterResponse {
25 repeated string docs = 1;
26 // May be empty or unset if no reasonable title could be found.
27 optional string title = 2;
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;