Package com.google.apps.card.v1
Class Chip.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
com.google.apps.card.v1.Chip.Builder
- All Implemented Interfaces:
ChipOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Chip
public static final class Chip.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
implements ChipOrBuilder
A text, icon, or text and icon chip that users can click. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):Protobuf type
google.apps.card.v1.Chip-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The alternative text that's used for accessibility.Whether the chip is in an inactive state and ignores user actions.Deprecated.google.apps.card.v1.Chip.enabled is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The icon image.The text displayed inside the chip.Optional.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()The alternative text that's used for accessibility.com.google.protobuf.ByteStringThe alternative text that's used for accessibility.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether the chip is in an inactive state and ignores user actions.booleanDeprecated.google.apps.card.v1.Chip.enabled is deprecated.getIcon()The icon image.The icon image.The icon image.getLabel()The text displayed inside the chip.com.google.protobuf.ByteStringThe text displayed inside the chip.Optional.Optional.Optional.booleanhasIcon()The icon image.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The icon image.mergeOnClick(OnClick value) Optional.final Chip.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAltText(String value) The alternative text that's used for accessibility.setAltTextBytes(com.google.protobuf.ByteString value) The alternative text that's used for accessibility.setDisabled(boolean value) Whether the chip is in an inactive state and ignores user actions.setEnabled(boolean value) Deprecated.google.apps.card.v1.Chip.enabled is deprecated.The icon image.setIcon(Icon.Builder builderForValue) The icon image.The text displayed inside the chip.setLabelBytes(com.google.protobuf.ByteString value) The text displayed inside the chip.setOnClick(OnClick value) Optional.setOnClick(OnClick.Builder builderForValue) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Chip.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
setRepeatedField
public Chip.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
addRepeatedField
public Chip.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Chip.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
mergeFrom
public Chip.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Chip.Builder>- Throws:
IOException
-
hasIcon
public boolean 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;- Specified by:
hasIconin interfaceChipOrBuilder- Returns:
- Whether the icon field is set.
-
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;- Specified by:
getIconin interfaceChipOrBuilder- Returns:
- The icon.
-
setIcon
The icon image. If both `icon` and `text` are set, then the icon appears before the text.
.google.apps.card.v1.Icon icon = 1; -
setIcon
The icon image. If both `icon` and `text` are set, then the icon appears before the text.
.google.apps.card.v1.Icon icon = 1; -
mergeIcon
The icon image. If both `icon` and `text` are set, then the icon appears before the text.
.google.apps.card.v1.Icon icon = 1; -
clearIcon
The icon image. If both `icon` and `text` are set, then the icon appears before the text.
.google.apps.card.v1.Icon icon = 1; -
getIconBuilder
The icon image. If both `icon` and `text` are set, then the icon appears before the text.
.google.apps.card.v1.Icon icon = 1; -
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;- Specified by:
getIconOrBuilderin interfaceChipOrBuilder
-
getLabel
The text displayed inside the chip.
string label = 2;- Specified by:
getLabelin interfaceChipOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()The text displayed inside the chip.
string label = 2;- Specified by:
getLabelBytesin interfaceChipOrBuilder- Returns:
- The bytes for label.
-
setLabel
The text displayed inside the chip.
string label = 2;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
The text displayed inside the chip.
string label = 2;- Returns:
- This builder for chaining.
-
setLabelBytes
The text displayed inside the chip.
string label = 2;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasOnClickin interfaceChipOrBuilder- Returns:
- Whether the onClick field is set.
-
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;- Specified by:
getOnClickin interfaceChipOrBuilder- Returns:
- The onClick.
-
setOnClick
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; -
setOnClick
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; -
mergeOnClick
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; -
clearOnClick
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; -
getOnClickBuilder
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; -
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;- Specified by:
getOnClickOrBuilderin interfaceChipOrBuilder
-
getEnabled
Deprecated.google.apps.card.v1.Chip.enabled is deprecated. See google/apps/card/v1/card.proto;l=2425Whether the chip is in an active state and responds to user actions. Defaults to `true`. Deprecated. Use `disabled` instead.
bool enabled = 4 [deprecated = true];- Specified by:
getEnabledin interfaceChipOrBuilder- Returns:
- The enabled.
-
setEnabled
Deprecated.google.apps.card.v1.Chip.enabled is deprecated. See google/apps/card/v1/card.proto;l=2425Whether the chip is in an active state and responds to user actions. Defaults to `true`. Deprecated. Use `disabled` instead.
bool enabled = 4 [deprecated = true];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Deprecated.google.apps.card.v1.Chip.enabled is deprecated. See google/apps/card/v1/card.proto;l=2425Whether 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:
- This builder for chaining.
-
getDisabled
public boolean getDisabled()Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
bool disabled = 6;- Specified by:
getDisabledin interfaceChipOrBuilder- Returns:
- The disabled.
-
setDisabled
Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
bool disabled = 6;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
bool disabled = 6;- Returns:
- This builder for chaining.
-
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;- Specified by:
getAltTextin interfaceChipOrBuilder- Returns:
- The altText.
-
getAltTextBytes
public com.google.protobuf.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;- Specified by:
getAltTextBytesin interfaceChipOrBuilder- Returns:
- The bytes for altText.
-
setAltText
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;- Parameters:
value- The altText to set.- Returns:
- This builder for chaining.
-
clearAltText
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:
- This builder for chaining.
-
setAltTextBytes
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;- Parameters:
value- The bytes for altText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Chip.Builder>
-