public final class

TileProto.Tile

extends <any>

implements TileProto.TileOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.tiles.proto.TileProto.Tile

Overview

 A holder for a tile. This specifies the resources to use for this delivery
 of the tile, and the timeline for the tile.
 
Protobuf type androidx.wear.tiles.proto.Tile

Summary

Fields
public static final intFRESHNESS_INTERVAL_MILLIS_FIELD_NUMBER

public static final intRESOURCES_VERSION_FIELD_NUMBER

public static final intSCHEMA_VERSION_FIELD_NUMBER

public static final intSTATE_FIELD_NUMBER

public static final intSTATE_FRESHNESS_INTERVAL_MILLIS_FIELD_NUMBER

public static final intTILE_TIMELINE_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static TileProto.TilegetDefaultInstance()

public longgetFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) this tile
 can be considered to be "fresh".

public java.lang.StringgetResourcesVersion()

 The resource version required for these tiles.

public com.google.protobuf.ByteStringgetResourcesVersionBytes()

 The resource version required for these tiles.

public VersionProto.VersionInfogetSchemaVersion()

 The schema version that this tile was built with.

public StateProto.StategetState()

 State for this tile.

public longgetStateFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) the state
 for this tile can be considered to be fresh.

public TimelineProto.TimelinegetTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.

public booleanhasSchemaVersion()

 The schema version that this tile was built with.

public booleanhasState()

 State for this tile.

public booleanhasTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.

public static TileProto.Tile.BuildernewBuilder()

public static TileProto.Tile.BuildernewBuilder(TileProto.Tile prototype)

public static TileProto.TileparseDelimitedFrom(java.io.InputStream input)

public static TileProto.TileparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.TileparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.TileparseFrom(java.nio.ByteBuffer data)

public static TileProto.TileparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.TileparseFrom(com.google.protobuf.ByteString data)

public static TileProto.TileparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.TileparseFrom(com.google.protobuf.CodedInputStream input)

public static TileProto.TileparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.TileparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int RESOURCES_VERSION_FIELD_NUMBER

public static final int TILE_TIMELINE_FIELD_NUMBER

public static final int SCHEMA_VERSION_FIELD_NUMBER

public static final int FRESHNESS_INTERVAL_MILLIS_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER

public static final int STATE_FRESHNESS_INTERVAL_MILLIS_FIELD_NUMBER

Methods

public java.lang.String getResourcesVersion()

 The resource version required for these tiles. This can be any
 developer-defined string; it is only used to cache resources, and is passed
 in ResourcesRequest if the system does not have a copy of the specified
 resource version.
 
string resources_version = 1;

Returns:

The resourcesVersion.

public com.google.protobuf.ByteString getResourcesVersionBytes()

 The resource version required for these tiles. This can be any
 developer-defined string; it is only used to cache resources, and is passed
 in ResourcesRequest if the system does not have a copy of the specified
 resource version.
 
string resources_version = 1;

Returns:

The bytes for resourcesVersion.

public boolean hasTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.
 
.androidx.wear.protolayout.proto.Timeline tile_timeline = 2;

public TimelineProto.Timeline getTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.
 
.androidx.wear.protolayout.proto.Timeline tile_timeline = 2;

public boolean hasSchemaVersion()

 The schema version that this tile was built with.
 
.androidx.wear.protolayout.expression.proto.VersionInfo schema_version = 3;

public VersionProto.VersionInfo getSchemaVersion()

 The schema version that this tile was built with.
 
.androidx.wear.protolayout.expression.proto.VersionInfo schema_version = 3;

public long getFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) this tile
 can be considered to be "fresh". The platform will attempt to refresh
 your tile at some point in the future after this interval has lapsed. A
 value of 0 here signifies that auto-refreshes should not be used (i.e. you
 will manually request updates via TileService#getRequester).

 This mechanism should not be used to update your tile more frequently than
 once a minute, and the system may throttle your updates if you request
 updates faster than this interval. This interval is also inexact; the
 system will generally update your tile if it is on-screen, or about to be
 on-screen, although this is not guaranteed due to system-level
 optimizations.
 
uint64 freshness_interval_millis = 4;

Returns:

The freshnessIntervalMillis.

public boolean hasState()

 State for this tile.
 
.androidx.wear.protolayout.proto.State state = 5;

public StateProto.State getState()

 State for this tile.
 
.androidx.wear.protolayout.proto.State state = 5;

public long getStateFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) the state
 for this tile can be considered to be fresh. The platform will attempt to
 fetch new state at some point in the future after this interval has lapsed.
 A value of 0 here signifies that auto-refreshes should not be used.
 
uint64 state_freshness_interval_millis = 6;

Returns:

The stateFreshnessIntervalMillis.

public static TileProto.Tile parseFrom(java.nio.ByteBuffer data)

public static TileProto.Tile parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile parseFrom(com.google.protobuf.ByteString data)

public static TileProto.Tile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile parseDelimitedFrom(java.io.InputStream input)

public static TileProto.Tile parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile parseFrom(com.google.protobuf.CodedInputStream input)

public static TileProto.Tile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TileProto.Tile.Builder newBuilder()

public static TileProto.Tile.Builder newBuilder(TileProto.Tile prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static TileProto.Tile getDefaultInstance()

public static <any> parser()