Package com.google.apps.card.v1
Interface MaterialIconOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MaterialIcon
,MaterialIcon.Builder
public interface MaterialIconOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getFill()
Whether the icon renders as filled.int
getGrade()
Weight and grade affect a symbol’s thickness.java.lang.String
getName()
The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), for example, `check_box`.com.google.protobuf.ByteString
getNameBytes()
The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), for example, `check_box`.int
getWeight()
The stroke weight of the icon.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), 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:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), 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:
- The bytes for name.
-
getFill
boolean getFill()
Whether the icon renders as filled. Default value is false. To preview different icon settings, go to [Google Font Icons](https://fonts.google.com/icons) and adjust the settings under **Customize**.
bool fill = 2;
- Returns:
- The fill.
-
getWeight
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](https://fonts.google.com/icons) and adjust the settings under **Customize**.
int32 weight = 3;
- Returns:
- The weight.
-
getGrade
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](https://fonts.google.com/icons) and adjust the settings under **Customize**.
int32 grade = 4;
- Returns:
- The grade.
-
-