1// The components of a tile that can be rendered by a tile renderer.
2syntax = "proto3";
3
4package androidx.wear.tiles.testing.proto;
5
6import "timeline.proto";
7import "version.proto";
8
9option java_package = "androidx.wear.tiles.testing.proto";
10option java_outer_classname = "TileProto";
11
12// A holder for a tile. This specifies the resources to use for this delivery
13// of the tile, and the timeline for the tile.
14message Tile {
15  // The resource version required for these tiles.
16  string resources_version = 1;
17
18  // The tiles to show in the carousel, along with their validity periods.
19  Timeline timeline = 2;
20
21  // The schema version that this tile was built with.
22  VersionInfo schema_version = 3;
23
24  // How many milliseconds of elapsed time (**not** wall clock time) this tile
25  // can be considered to be "fresh". The platform will attempt to refresh
26  // your tile at some point in the future after this interval has lapsed. A
27  // value of 0 here signifies that auto-refreshes should not be used (i.e. you
28  // will manually request updates via TileService#getRequester).
29  uint64 freshness_interval_millis = 4;
30}
31