public interface

RequestProto.ResourcesRequestOrBuilder

 androidx.wear.tiles.proto.RequestProto.ResourcesRequestOrBuilder

Subclasses:

RequestProto.ResourcesRequest, RequestProto.ResourcesRequest.Builder

Summary

Methods
public DeviceParametersProto.DeviceParametersgetDeviceConfiguration()

 The DeviceParameters object describing the device requesting the resources.

public java.lang.StringgetResourceIds(int index)

 Requested resource IDs.

public com.google.protobuf.ByteStringgetResourceIdsBytes(int index)

 Requested resource IDs.

public intgetResourceIdsCount()

 Requested resource IDs.

public java.util.List<java.lang.String>getResourceIdsList()

 Requested resource IDs.

public intgetTileId()

 The ID of the tile for which resources are being requested.

public java.lang.StringgetVersion()

 The version of the resources being fetched.

public com.google.protobuf.ByteStringgetVersionBytes()

 The version of the resources being fetched.

public booleanhasDeviceConfiguration()

 The DeviceParameters object describing the device requesting the resources.

Methods

public java.lang.String getVersion()

 The version of the resources being fetched. This is the same as the
 requested resource version, passed in Tile.
 
string version = 1;

Returns:

The version.

public com.google.protobuf.ByteString getVersionBytes()

 The version of the resources being fetched. This is the same as the
 requested resource version, passed in Tile.
 
string version = 1;

Returns:

The bytes for version.

public java.util.List<java.lang.String> getResourceIdsList()

 Requested resource IDs. This specifies which tile resources should be
 returned in the Resources response. If not specified, all resources for the
 given version must be provided in the response.

 Note that resource IDs here correspond to tile resources (i.e. keys that
 would be used in Resources.idToImage), not Android resource names or
 similar.
 
repeated string resource_ids = 2;

Returns:

A list containing the resourceIds.

public int getResourceIdsCount()

 Requested resource IDs. This specifies which tile resources should be
 returned in the Resources response. If not specified, all resources for the
 given version must be provided in the response.

 Note that resource IDs here correspond to tile resources (i.e. keys that
 would be used in Resources.idToImage), not Android resource names or
 similar.
 
repeated string resource_ids = 2;

Returns:

The count of resourceIds.

public java.lang.String getResourceIds(int index)

 Requested resource IDs. This specifies which tile resources should be
 returned in the Resources response. If not specified, all resources for the
 given version must be provided in the response.

 Note that resource IDs here correspond to tile resources (i.e. keys that
 would be used in Resources.idToImage), not Android resource names or
 similar.
 
repeated string resource_ids = 2;

Parameters:

index: The index of the element to return.

Returns:

The resourceIds at the given index.

public com.google.protobuf.ByteString getResourceIdsBytes(int index)

 Requested resource IDs. This specifies which tile resources should be
 returned in the Resources response. If not specified, all resources for the
 given version must be provided in the response.

 Note that resource IDs here correspond to tile resources (i.e. keys that
 would be used in Resources.idToImage), not Android resource names or
 similar.
 
repeated string resource_ids = 2;

Parameters:

index: The index of the element to return.

Returns:

The resourceIds at the given index.

public boolean hasDeviceConfiguration()

 The DeviceParameters object describing the device requesting the resources.
 
.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;

Returns:

Whether the deviceConfiguration field is set.

public DeviceParametersProto.DeviceParameters getDeviceConfiguration()

 The DeviceParameters object describing the device requesting the resources.
 
.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;

Returns:

The deviceConfiguration.

public int getTileId()

 The ID of the tile for which resources are being requested.
 
uint32 tile_id = 4;

Returns:

The tileId.