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

    Modifier and Type
    Method
    Description
    boolean
    Whether the icon renders as filled.
    int
    Weight and grade affect a symbol’s thickness.
    The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), for example, `check_box`.
    com.google.protobuf.ByteString
    The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), for example, `check_box`.
    int
    The stroke weight of the icon.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      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.