public final class

ResourceProto.AndroidImageResourceByName.Builder

extends <any>

implements ResourceProto.AndroidImageResourceByNameOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Methods
public ResourceProto.AndroidImageResourceByName.BuilderclearName()

 The name of the drawable.

public java.lang.StringgetName()

 The name of the drawable.

public com.google.protobuf.ByteStringgetNameBytes()

 The name of the drawable.

public ResourceProto.AndroidImageResourceByName.BuildersetName(java.lang.String value)

 The name of the drawable.

public ResourceProto.AndroidImageResourceByName.BuildersetNameBytes(com.google.protobuf.ByteString value)

 The name of the drawable.

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

Methods

public java.lang.String getName()

 The name of the drawable. An Android drawable by this name (i.e.
 R.drawable.<name>) must exist in the app which provides this layout to the
 system.
 
string name = 1;

Returns:

The name.

public com.google.protobuf.ByteString getNameBytes()

 The name of the drawable. An Android drawable by this name (i.e.
 R.drawable.<name>) must exist in the app which provides this layout to the
 system.
 
string name = 1;

Returns:

The bytes for name.

public ResourceProto.AndroidImageResourceByName.Builder setName(java.lang.String value)

 The name of the drawable. An Android drawable by this name (i.e.
 R.drawable.<name>) must exist in the app which provides this layout to the
 system.
 
string name = 1;

Parameters:

value: The name to set.

Returns:

This builder for chaining.

 The name of the drawable. An Android drawable by this name (i.e.
 R.drawable.<name>) must exist in the app which provides this layout to the
 system.
 
string name = 1;

Returns:

This builder for chaining.

public ResourceProto.AndroidImageResourceByName.Builder setNameBytes(com.google.protobuf.ByteString value)

 The name of the drawable. An Android drawable by this name (i.e.
 R.drawable.<name>) must exist in the app which provides this layout to the
 system.
 
string name = 1;

Parameters:

value: The bytes for name to set.

Returns:

This builder for chaining.