public final class

RequestProto.ResourcesRequest

extends <any>

implements RequestProto.ResourcesRequestOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Fields
public static final intDEVICE_CONFIGURATION_FIELD_NUMBER

public static final intRESOURCE_IDS_FIELD_NUMBER

public static final intTILE_ID_FIELD_NUMBER

public static final intVERSION_FIELD_NUMBER

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

public static RequestProto.ResourcesRequestgetDefaultInstance()

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 static RequestProto.ResourcesRequest.BuildernewBuilder()

public static RequestProto.ResourcesRequest.BuildernewBuilder(RequestProto.ResourcesRequest prototype)

public static RequestProto.ResourcesRequestparseDelimitedFrom(java.io.InputStream input)

public static RequestProto.ResourcesRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequestparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequestparseFrom(java.nio.ByteBuffer data)

public static RequestProto.ResourcesRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequestparseFrom(com.google.protobuf.ByteString data)

public static RequestProto.ResourcesRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequestparseFrom(com.google.protobuf.CodedInputStream input)

public static RequestProto.ResourcesRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequestparseFrom(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 VERSION_FIELD_NUMBER

public static final int RESOURCE_IDS_FIELD_NUMBER

public static final int DEVICE_CONFIGURATION_FIELD_NUMBER

public static final int TILE_ID_FIELD_NUMBER

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

Returns:

The bytes of 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;

public DeviceParametersProto.DeviceParameters getDeviceConfiguration()

 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 static RequestProto.ResourcesRequest parseFrom(java.nio.ByteBuffer data)

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

public static RequestProto.ResourcesRequest parseFrom(com.google.protobuf.ByteString data)

public static RequestProto.ResourcesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static RequestProto.ResourcesRequest parseDelimitedFrom(java.io.InputStream input)

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

public static RequestProto.ResourcesRequest parseFrom(com.google.protobuf.CodedInputStream input)

public static RequestProto.ResourcesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static RequestProto.ResourcesRequest.Builder newBuilder()

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

public static RequestProto.ResourcesRequest getDefaultInstance()

public static <any> parser()