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