Class Chip (2.63.1)
Version latestkeyboard_arrow_down
public final class Chip extends GeneratedMessageV3 implements ChipOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALT_TEXT_FIELD_NUMBER
public static final int ALT_TEXT_FIELD_NUMBER
Field Value
Type
Description
int
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
Field Value
Type
Description
int
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value
Type
Description
int
ICON_FIELD_NUMBER
public static final int ICON_FIELD_NUMBER
Field Value
Type
Description
int
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
Field Value
Type
Description
int
ON_CLICK_FIELD_NUMBER
public static final int ON_CLICK_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Chip getDefaultInstance ()
Returns
Type
Description
Chip
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Chip . Builder newBuilder ()
newBuilder(Chip prototype)
public static Chip . Builder newBuilder ( Chip prototype )
Parameter
Name
Description
prototype
Chip
public static Chip parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Chip
public static Chip parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
parseFrom(byte[] data)
public static Chip parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Chip
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Chip parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
parseFrom(ByteString data)
public static Chip parseFrom ( ByteString data )
Returns
Type
Description
Chip
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Chip parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
public static Chip parseFrom ( CodedInputStream input )
Returns
Type
Description
Chip
public static Chip parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
public static Chip parseFrom ( InputStream input )
Returns
Type
Description
Chip
public static Chip parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
parseFrom(ByteBuffer data)
public static Chip parseFrom ( ByteBuffer data )
Returns
Type
Description
Chip
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Chip parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Chip
parser()
public static Parser<Chip> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAltText()
public String getAltText ()
The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. For
example, if a chip opens a hyperlink, write: "Opens a new
browser tab and navigates to the Google Chat developer documentation at
https://developers.google.com/workspace/chat ".
string alt_text = 5;
Returns
Type
Description
String
The altText.
getAltTextBytes()
public ByteString getAltTextBytes ()
The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. For
example, if a chip opens a hyperlink, write: "Opens a new
browser tab and navigates to the Google Chat developer documentation at
https://developers.google.com/workspace/chat ".
string alt_text = 5;
Returns
Type
Description
ByteString
The bytes for altText.
getDefaultInstanceForType()
public Chip getDefaultInstanceForType ()
Returns
Type
Description
Chip
getDisabled()
public boolean getDisabled ()
Whether the chip is in an inactive state and ignores user actions.
Defaults to false.
bool disabled = 6;
Returns
Type
Description
boolean
The disabled.
getEnabled() (deprecated)
public boolean getEnabled ()
Deprecated. google.apps.card.v1.Chip.enabled is deprecated. See
google/apps/card/v1/card.proto;l=2425
Whether the chip is in an active state and responds to user actions.
Defaults to true.
Deprecated. Use disabled instead.
bool enabled = 4 [deprecated = true];
Returns
Type
Description
boolean
The enabled.
getIcon()
The icon image. If both icon and text are set, then the icon appears
before the text.
.google.apps.card.v1.Icon icon = 1;
Returns
Type
Description
Icon
The icon.
getIconOrBuilder()
public IconOrBuilder getIconOrBuilder ()
The icon image. If both icon and text are set, then the icon appears
before the text.
.google.apps.card.v1.Icon icon = 1;
getLabel()
The text displayed inside the chip.
string label = 2;
Returns
Type
Description
String
The label.
getLabelBytes()
public ByteString getLabelBytes ()
The text displayed inside the chip.
string label = 2;
Returns
Type
Description
ByteString
The bytes for label.
getOnClick()
public OnClick getOnClick ()
Optional. The action to perform when a user clicks the chip, such as
opening a hyperlink or running a custom function.
.google.apps.card.v1.OnClick on_click = 3;
Returns
Type
Description
OnClick
The onClick.
getOnClickOrBuilder()
public OnClickOrBuilder getOnClickOrBuilder ()
Optional. The action to perform when a user clicks the chip, such as
opening a hyperlink or running a custom function.
.google.apps.card.v1.OnClick on_click = 3;
getParserForType()
public Parser<Chip> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasIcon()
The icon image. If both icon and text are set, then the icon appears
before the text.
.google.apps.card.v1.Icon icon = 1;
Returns
Type
Description
boolean
Whether the icon field is set.
hasOnClick()
public boolean hasOnClick ()
Optional. The action to perform when a user clicks the chip, such as
opening a hyperlink or running a custom function.
.google.apps.card.v1.OnClick on_click = 3;
Returns
Type
Description
boolean
Whether the onClick field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Chip . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Chip . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Chip . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]