public final class Chip extends GeneratedMessage implements ChipOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Chip.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Chip.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Chip.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides