- 2.65.0 (latest)
- 2.64.1
- 2.63.2
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class MaterialIcon.Builder extends GeneratedMessage.Builder<MaterialIcon.Builder> implements MaterialIconOrBuilderA Google Material Icon, which includes over 2500+ options.
For example, to display a checkbox icon with customized weight and grade, write the following:
<code><code>
{
"name": "check_box",
"fill": true,
"weight": 300,
"grade": -25
}
</code></code>
Protobuf type google.apps.card.v1.MaterialIcon
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MaterialIcon.BuilderImplements
MaterialIconOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MaterialIcon build()| Returns | |
|---|---|
| Type | Description |
MaterialIcon |
|
buildPartial()
public MaterialIcon buildPartial()| Returns | |
|---|---|
| Type | Description |
MaterialIcon |
|
clear()
public MaterialIcon.Builder clear()| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
|
clearFill()
public MaterialIcon.Builder clearFill()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 |
MaterialIcon.Builder |
This builder for chaining. |
clearGrade()
public MaterialIcon.Builder clearGrade()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 |
MaterialIcon.Builder |
This builder for chaining. |
clearName()
public MaterialIcon.Builder clearName() 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 |
MaterialIcon.Builder |
This builder for chaining. |
clearWeight()
public MaterialIcon.Builder clearWeight()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 |
MaterialIcon.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public MaterialIcon getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MaterialIcon |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFill()
public 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MaterialIcon other)
public MaterialIcon.Builder mergeFrom(MaterialIcon other)| Parameter | |
|---|---|
| Name | Description |
other |
MaterialIcon |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaterialIcon.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MaterialIcon.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
|
setFill(boolean value)
public MaterialIcon.Builder setFill(boolean value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe fill to set. |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
This builder for chaining. |
setGrade(int value)
public MaterialIcon.Builder setGrade(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe grade to set. |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
This builder for chaining. |
setName(String value)
public MaterialIcon.Builder setName(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public MaterialIcon.Builder setNameBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
This builder for chaining. |
setWeight(int value)
public MaterialIcon.Builder setWeight(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe weight to set. |
| Returns | |
|---|---|
| Type | Description |
MaterialIcon.Builder |
This builder for chaining. |