public final class

TileProto.Tile.Builder

extends <any>

implements TileProto.TileOrBuilder

 java.lang.Object

↳<any>

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

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

Methods
public TileProto.Tile.BuilderclearFreshnessIntervalMillis()

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

public TileProto.Tile.BuilderclearResourcesVersion()

 The resource version required for these tiles.

public TileProto.Tile.BuilderclearSchemaVersion()

 The schema version that this tile was built with.

public TileProto.Tile.BuilderclearState()

 State for this tile.

public TileProto.Tile.BuilderclearStateFreshnessIntervalMillis()

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

public TileProto.Tile.BuilderclearTileTimeline()

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

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 TileProto.Tile.BuildermergeSchemaVersion(VersionProto.VersionInfo value)

 The schema version that this tile was built with.

public TileProto.Tile.BuildermergeState(StateProto.State value)

 State for this tile.

public TileProto.Tile.BuildermergeTileTimeline(TimelineProto.Timeline value)

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

public TileProto.Tile.BuildersetFreshnessIntervalMillis(long value)

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

public TileProto.Tile.BuildersetResourcesVersion(java.lang.String value)

 The resource version required for these tiles.

public TileProto.Tile.BuildersetResourcesVersionBytes(com.google.protobuf.ByteString value)

 The resource version required for these tiles.

public TileProto.Tile.BuildersetSchemaVersion(VersionProto.VersionInfo.Builder builderForValue)

 The schema version that this tile was built with.

public TileProto.Tile.BuildersetSchemaVersion(VersionProto.VersionInfo value)

 The schema version that this tile was built with.

public TileProto.Tile.BuildersetState(StateProto.State.Builder builderForValue)

 State for this tile.

public TileProto.Tile.BuildersetState(StateProto.State value)

 State for this tile.

public TileProto.Tile.BuildersetStateFreshnessIntervalMillis(long value)

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

public TileProto.Tile.BuildersetTileTimeline(TimelineProto.Timeline.Builder builderForValue)

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

public TileProto.Tile.BuildersetTileTimeline(TimelineProto.Timeline value)

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

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

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 TileProto.Tile.Builder setResourcesVersion(java.lang.String value)

 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;

Parameters:

value: The resourcesVersion to set.

Returns:

This builder for chaining.

public TileProto.Tile.Builder clearResourcesVersion()

 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:

This builder for chaining.

public TileProto.Tile.Builder setResourcesVersionBytes(com.google.protobuf.ByteString value)

 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;

Parameters:

value: The bytes for resourcesVersion to set.

Returns:

This builder for chaining.

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 TileProto.Tile.Builder setTileTimeline(TimelineProto.Timeline value)

 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 TileProto.Tile.Builder setTileTimeline(TimelineProto.Timeline.Builder builderForValue)

 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 TileProto.Tile.Builder mergeTileTimeline(TimelineProto.Timeline value)

 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 TileProto.Tile.Builder clearTileTimeline()

 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 TileProto.Tile.Builder setSchemaVersion(VersionProto.VersionInfo value)

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

public TileProto.Tile.Builder setSchemaVersion(VersionProto.VersionInfo.Builder builderForValue)

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

public TileProto.Tile.Builder mergeSchemaVersion(VersionProto.VersionInfo value)

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

public TileProto.Tile.Builder clearSchemaVersion()

 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 TileProto.Tile.Builder setFreshnessIntervalMillis(long value)

 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;

Parameters:

value: The freshnessIntervalMillis to set.

Returns:

This builder for chaining.

public TileProto.Tile.Builder clearFreshnessIntervalMillis()

 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:

This builder for chaining.

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;

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

public TileProto.Tile.Builder setState(StateProto.State.Builder builderForValue)

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

public TileProto.Tile.Builder mergeState(StateProto.State value)

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

public TileProto.Tile.Builder clearState()

 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 TileProto.Tile.Builder setStateFreshnessIntervalMillis(long value)

 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;

Parameters:

value: The stateFreshnessIntervalMillis to set.

Returns:

This builder for chaining.

public TileProto.Tile.Builder clearStateFreshnessIntervalMillis()

 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:

This builder for chaining.