1// Copyright 2022 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package fcp.client.cache; 18 19import "google/protobuf/any.proto"; 20import "google/protobuf/timestamp.proto"; 21 22option java_package = "com.google.intelligence.fcp.client"; 23option java_multiple_files = true; 24 25// Maps cache IDs to CachedResource protos containing metadata and 26// the file name of the cached resource. 27message CacheManifest { 28 // A map of `cache_id` to `CachedResource`. 29 map<string, CachedResource> cache = 1; 30} 31 32message CachedResource { 33 // Name of the file holding the cached resource. 34 string file_name = 1; 35 // Serialized metadata proto. This proto should be small. 36 google.protobuf.Any metadata = 2; 37 // Timestamp of when the cached resource should be deleted. 38 google.protobuf.Timestamp expiry_time = 3; 39 // Timestamp of when the cached resource was last accessed. 40 google.protobuf.Timestamp last_accessed_time = 4; 41} 42