public interface

ResourceProto.ResourcesOrBuilder

 androidx.wear.protolayout.proto.ResourceProto.ResourcesOrBuilder

Subclasses:

ResourceProto.Resources, ResourceProto.Resources.Builder

Summary

Methods
public booleancontainsIdToImage(java.lang.String key)

 A map of resource_ids to images, which can be used by layouts.

public java.util.Map<java.lang.String, ResourceProto.ImageResource>getIdToImage()

Use ResourceProto.ResourcesOrBuilder.getIdToImageMap() instead.

public intgetIdToImageCount()

 A map of resource_ids to images, which can be used by layouts.

public java.util.Map<java.lang.String, ResourceProto.ImageResource>getIdToImageMap()

 A map of resource_ids to images, which can be used by layouts.

public ResourceProto.ImageResourcegetIdToImageOrDefault(java.lang.String key, ResourceProto.ImageResource defaultValue)

 A map of resource_ids to images, which can be used by layouts.

public ResourceProto.ImageResourcegetIdToImageOrThrow(java.lang.String key)

 A map of resource_ids to images, which can be used by layouts.

public java.lang.StringgetVersion()

 The version of this Resources instance.

public com.google.protobuf.ByteStringgetVersionBytes()

 The version of this Resources instance.

Methods

public java.lang.String getVersion()

 The version of this Resources instance.

 Each layout specifies the version of resources it requires. After fetching
 a layout, the renderer will use the resources version specified by the
 layout to separately fetch the resources.

 This value must match the version of the resources required by the layout
 for the layout to render successfully, and must match the resource version
 specified in ResourcesRequest which triggered this request.
 
string version = 1;

Returns:

The version.

public com.google.protobuf.ByteString getVersionBytes()

 The version of this Resources instance.

 Each layout specifies the version of resources it requires. After fetching
 a layout, the renderer will use the resources version specified by the
 layout to separately fetch the resources.

 This value must match the version of the resources required by the layout
 for the layout to render successfully, and must match the resource version
 specified in ResourcesRequest which triggered this request.
 
string version = 1;

Returns:

The bytes for version.

public int getIdToImageCount()

 A map of resource_ids to images, which can be used by layouts.
 
map<string, .androidx.wear.protolayout.proto.ImageResource> id_to_image = 2;

public boolean containsIdToImage(java.lang.String key)

 A map of resource_ids to images, which can be used by layouts.
 
map<string, .androidx.wear.protolayout.proto.ImageResource> id_to_image = 2;

public java.util.Map<java.lang.String, ResourceProto.ImageResource> getIdToImage()

Use ResourceProto.ResourcesOrBuilder.getIdToImageMap() instead.

public java.util.Map<java.lang.String, ResourceProto.ImageResource> getIdToImageMap()

 A map of resource_ids to images, which can be used by layouts.
 
map<string, .androidx.wear.protolayout.proto.ImageResource> id_to_image = 2;

public ResourceProto.ImageResource getIdToImageOrDefault(java.lang.String key, ResourceProto.ImageResource defaultValue)

 A map of resource_ids to images, which can be used by layouts.
 
map<string, .androidx.wear.protolayout.proto.ImageResource> id_to_image = 2;

public ResourceProto.ImageResource getIdToImageOrThrow(java.lang.String key)

 A map of resource_ids to images, which can be used by layouts.
 
map<string, .androidx.wear.protolayout.proto.ImageResource> id_to_image = 2;