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// Sync protocol for attachments. 6 7// Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change any 8// fields in this file. 9 10syntax = "proto2"; 11 12option optimize_for = LITE_RUNTIME; 13option retain_unknown_fields = true; 14 15package sync_pb; 16 17// Identifies an attachment. 18message AttachmentIdProto { 19 // Uniquely identifies the attachment. Two attachments with the same unique_id 20 // are considered equivalent. 21 optional string unique_id = 1; 22} 23 24// Metadata for a single attachment. 25message AttachmentMetadataRecord { 26 optional AttachmentIdProto id = 1; 27 // Indicates we know this attachment exists on the server. 28 optional bool is_on_server = 2; 29} 30 31// A collection of attachment metadata. This proto is part of EntryKernel's "on 32// disk" representation. Private to sync. 33message AttachmentMetadata { 34 // One record per attachment. 35 repeated AttachmentMetadataRecord record = 1; 36} 37