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.
7 package affiliation_pb;
9 option optimize_for = LITE_RUNTIME;
11 // A collection of facets affiliated with each other, i.e. an equivalence class.
13 repeated Facet facet = 1;
17 // The URI of the facet.
18 optional string id = 1;
19 optional BrandingInfo branding_info = 2;
22 message BrandingInfo {
23 optional string name = 1;
24 optional string icon_url = 2;
27 // Specifies what additional information to return with the response.
28 message LookupAffiliationMask {
29 // Whether or not to fill |branding_info| for returned Facets.
30 optional bool branding_info = 1;
31 // The locale to use for |branding_info.name| for returned Facets.
32 optional string locale = 2;
35 // Encapsulates a lookup request to the Affiliation API.
36 message LookupAffiliationRequest {
37 // The facet URIs to query.
38 repeated string facet = 1;
39 optional LookupAffiliationMask mask = 2;
42 // Encapsulates a lookup response from the the Affiliation API.
43 message LookupAffiliationResponse {
44 // For each queried facet, the corresponding equivalence class, if any.
45 repeated Affiliation affiliation = 1;