Home | History | Annotate | Download | only in proto
      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 // Contains the result of a full text search.
     11 message CorpusSearchResult {
     12   // Encodes the status of the response.
     13   enum Status {
     14     UNKNOWN = 0;
     15     OK = 1;
     16     FAILED_RPC = 2;
     17     NO_VALID_BACKEND = 3;
     18     INVALID_INPUT = 4;
     19   }
     20   optional Status status = 1;
     21 
     22   // For each results returns the clip id, the title and a snippet highlighting
     23   // the context of the match on the search term.
     24   message ClipResult {
     25     optional string clip_id = 1;
     26     optional string title = 2;
     27     optional string snippet = 3;
     28   }
     29   repeated ClipResult results = 2;
     30 }
     31