public final class

RequestProto.ResourcesRequest.Builder

extends <any>

implements RequestProto.ResourcesRequestOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.tiles.proto.RequestProto.ResourcesRequest.Builder

Overview

 Parameters passed to a Tile Service when the renderer is requesting a
 specific resource version.
 
Protobuf type androidx.wear.tiles.proto.ResourcesRequest

Summary

Methods
public RequestProto.ResourcesRequest.BuilderaddAllResourceIds(java.lang.Iterable<java.lang.String> values)

 Requested resource IDs.

public RequestProto.ResourcesRequest.BuilderaddResourceIds(java.lang.String value)

 Requested resource IDs.

public RequestProto.ResourcesRequest.BuilderaddResourceIdsBytes(com.google.protobuf.ByteString value)

 Requested resource IDs.

public RequestProto.ResourcesRequest.BuilderclearDeviceConfiguration()

 The DeviceParameters object describing the device requesting the resources.

public RequestProto.ResourcesRequest.BuilderclearResourceIds()

 Requested resource IDs.

public RequestProto.ResourcesRequest.BuilderclearTileId()

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

public RequestProto.ResourcesRequest.BuilderclearVersion()

 The version of the resources being fetched.

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.

public RequestProto.ResourcesRequest.BuildermergeDeviceConfiguration(DeviceParametersProto.DeviceParameters value)

 The DeviceParameters object describing the device requesting the resources.

public RequestProto.ResourcesRequest.BuildersetDeviceConfiguration(DeviceParametersProto.DeviceParameters.Builder builderForValue)

 The DeviceParameters object describing the device requesting the resources.

public RequestProto.ResourcesRequest.BuildersetDeviceConfiguration(DeviceParametersProto.DeviceParameters value)

 The DeviceParameters object describing the device requesting the resources.

public RequestProto.ResourcesRequest.BuildersetResourceIds(int index, java.lang.String value)

 Requested resource IDs.

public RequestProto.ResourcesRequest.BuildersetTileId(int value)

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

public RequestProto.ResourcesRequest.BuildersetVersion(java.lang.String value)

 The version of the resources being fetched.

public RequestProto.ResourcesRequest.BuildersetVersionBytes(com.google.protobuf.ByteString value)

 The version of the resources being fetched.

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

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 RequestProto.ResourcesRequest.Builder setVersion(java.lang.String value)

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

Parameters:

value: The version to set.

Returns:

This builder for chaining.

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

Returns:

This builder for chaining.

public RequestProto.ResourcesRequest.Builder setVersionBytes(com.google.protobuf.ByteString value)

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

Parameters:

value: The bytes for version to set.

Returns:

This builder for chaining.

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 value to return.

Returns:

The bytes of the resourceIds at the given index.

public RequestProto.ResourcesRequest.Builder setResourceIds(int index, java.lang.String value)

 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 to set the value at.
value: The resourceIds to set.

Returns:

This builder for chaining.

public RequestProto.ResourcesRequest.Builder addResourceIds(java.lang.String value)

 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:

value: The resourceIds to add.

Returns:

This builder for chaining.

public RequestProto.ResourcesRequest.Builder addAllResourceIds(java.lang.Iterable<java.lang.String> values)

 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:

values: The resourceIds to add.

Returns:

This builder for chaining.

public RequestProto.ResourcesRequest.Builder clearResourceIds()

 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:

This builder for chaining.

public RequestProto.ResourcesRequest.Builder addResourceIdsBytes(com.google.protobuf.ByteString value)

 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:

value: The bytes of the resourceIds to add.

Returns:

This builder for chaining.

public boolean hasDeviceConfiguration()

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

public DeviceParametersProto.DeviceParameters getDeviceConfiguration()

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

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

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

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

public RequestProto.ResourcesRequest.Builder clearDeviceConfiguration()

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

public int getTileId()

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

Returns:

The tileId.

public RequestProto.ResourcesRequest.Builder setTileId(int value)

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

Parameters:

value: The tileId to set.

Returns:

This builder for chaining.

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

Returns:

This builder for chaining.