Generated from protobuf message google.apps.card.v1.MaterialIcon
Namespace
Google \ Apps \ Card \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
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.
↳ fill
bool
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.
↳ weight
int
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.
↳ grade
int
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.
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.
Returns
Type
Description
string
setName
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
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.
Returns
Type
Description
bool
setFill
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.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
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.
Returns
Type
Description
int
setWeight
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.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
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.
Returns
Type
Description
int
setGrade
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class MaterialIcon (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.MaterialIcon)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.MaterialIcon)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.MaterialIcon)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.MaterialIcon)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.MaterialIcon)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.MaterialIcon)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.MaterialIcon)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.MaterialIcon)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.MaterialIcon)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.MaterialIcon)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.MaterialIcon)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.MaterialIcon) \nReference documentation and code samples for the Google Apps Chat V1 Client class MaterialIcon.\n\nA [Google Material Icon](https://fonts.google.com/icons), which includes over\n2500+ options.\n\nFor example, to display a [checkbox\nicon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048)\nwith customized weight and grade, write the following: \n\n {\n \"name\": \"check_box\",\n \"fill\": true,\n \"weight\": 300,\n \"grade\": -25\n }\n\n[Google Chat apps](https://developers.google.com/workspace/chat):\n\nGenerated from protobuf message `google.apps.card.v1.MaterialIcon`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe icon name defined in the [Google Material\nIcon](https://fonts.google.com/icons), for example, `check_box`. Any\ninvalid names are abandoned and replaced with empty string and\nresults in the icon failing to render.\n\n### setName\n\nThe icon name defined in the [Google Material\nIcon](https://fonts.google.com/icons), for example, `check_box`. Any\ninvalid names are abandoned and replaced with empty string and\nresults in the icon failing to render.\n\n### getFill\n\nWhether the icon renders as filled. Default value is false.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**.\n\n### setFill\n\nWhether the icon renders as filled. Default value is false.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**.\n\n### getWeight\n\nThe stroke weight of the icon. Choose from {100, 200, 300, 400,\n500, 600, 700}. If absent, default value is 400. If any other value is\nspecified, the default value is used.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**.\n\n### setWeight\n\nThe stroke weight of the icon. Choose from {100, 200, 300, 400,\n500, 600, 700}. If absent, default value is 400. If any other value is\nspecified, the default value is used.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**.\n\n### getGrade\n\nWeight and grade affect a symbol's thickness. Adjustments to grade are more\ngranular than adjustments to weight and have a small impact on the size of\nthe symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If\nany other value is specified, the default value is used.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**.\n\n### setGrade\n\nWeight and grade affect a symbol's thickness. Adjustments to grade are more\ngranular than adjustments to weight and have a small impact on the size of\nthe symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If\nany other value is specified, the default value is used.\n\nTo preview different icon settings, go to\n[Google Font Icons](https://fonts.google.com/icons) and adjust the\nsettings under **Customize**."]]