Interface MaterialIconOrBuilder (2.43.0)

public interface MaterialIconOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFill()

public abstract boolean getFill()

Whether the icon renders as filled. Default value is false.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

bool fill = 2;

Returns
Type Description
boolean

The fill.

getGrade()

public abstract int getGrade()

Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

int32 grade = 4;

Returns
Type Description
int

The grade.

getName()

public abstract String getName()

The icon name defined in the Google Material Icon, for example, check_box. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The icon name defined in the Google Material Icon, for example, check_box. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getWeight()

public abstract int getWeight()

The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, the default value is used.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

int32 weight = 3;

Returns
Type Description
int

The weight.