public final class

ResourceProto.AndroidImageResourceByResId.Builder

extends <any>

implements ResourceProto.AndroidImageResourceByResIdOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.Builder

Overview

 An image resource which maps to an Android drawable by resource ID.
 
Protobuf type androidx.wear.protolayout.proto.AndroidImageResourceByResId

Summary

Methods
public ResourceProto.AndroidImageResourceByResId.BuilderclearResourceId()

 The Android resource ID of this image.

public intgetResourceId()

 The Android resource ID of this image.

public ResourceProto.AndroidImageResourceByResId.BuildersetResourceId(int value)

 The Android resource ID of this image.

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

Methods

public int getResourceId()

 The Android resource ID of this image. This must refer to a drawable under
 R.drawable.
 
int32 resource_id = 1;

Returns:

The resourceId.

 The Android resource ID of this image. This must refer to a drawable under
 R.drawable.
 
int32 resource_id = 1;

Parameters:

value: The resourceId to set.

Returns:

This builder for chaining.

 The Android resource ID of this image. This must refer to a drawable under
 R.drawable.
 
int32 resource_id = 1;

Returns:

This builder for chaining.