Package com.google.apps.card.v1
Class DecoratedText.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
com.google.apps.card.v1.DecoratedText.Builder
- All Implemented Interfaces:
DecoratedTextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DecoratedText
public static final class DecoratedText.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
implements DecoratedTextOrBuilder
A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget, or a button after the text. For an example in Google Chat apps, see [Display text with decorative text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#display_text_with_decorative_elements). [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):Protobuf type
google.apps.card.v1.DecoratedText-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The text that appears below `text`.`TextParagraph` equivalent of `bottom_label`.A button that a user can click to trigger an action.`TextParagraph` equivalent of `text`.An icon displayed after the text.Deprecated.This action is triggered when users click `topLabel` or `bottomLabel`.The icon displayed in front of the text.Optional.A switch widget that a user can click to change its state and trigger an action.Required.The text that appears above `text`.`TextParagraph` equivalent of `top_label`.The wrap text setting.The text that appears below `text`.com.google.protobuf.ByteStringThe text that appears below `text`.`TextParagraph` equivalent of `bottom_label`.`TextParagraph` equivalent of `bottom_label`.`TextParagraph` equivalent of `bottom_label`.A button that a user can click to trigger an action.A button that a user can click to trigger an action.A button that a user can click to trigger an action.`TextParagraph` equivalent of `text`.`TextParagraph` equivalent of `text`.`TextParagraph` equivalent of `text`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn icon displayed after the text.An icon displayed after the text.An icon displayed after the text.getIcon()Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.Deprecated.Deprecated.This action is triggered when users click `topLabel` or `bottomLabel`.This action is triggered when users click `topLabel` or `bottomLabel`.This action is triggered when users click `topLabel` or `bottomLabel`.The icon displayed in front of the text.The icon displayed in front of the text.The icon displayed in front of the text.Optional.intOptional.A switch widget that a user can click to change its state and trigger an action.A switch widget that a user can click to change its state and trigger an action.A switch widget that a user can click to change its state and trigger an action.getText()Required.com.google.protobuf.ByteStringRequired.The text that appears above `text`.com.google.protobuf.ByteStringThe text that appears above `text`.`TextParagraph` equivalent of `top_label`.`TextParagraph` equivalent of `top_label`.`TextParagraph` equivalent of `top_label`.booleanThe wrap text setting.boolean`TextParagraph` equivalent of `bottom_label`.booleanA button that a user can click to trigger an action.boolean`TextParagraph` equivalent of `text`.booleanAn icon displayed after the text.booleanhasIcon()Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.booleanThis action is triggered when users click `topLabel` or `bottomLabel`.booleanThe icon displayed in front of the text.booleanA switch widget that a user can click to change its state and trigger an action.boolean`TextParagraph` equivalent of `top_label`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean`TextParagraph` equivalent of `bottom_label`.mergeButton(Button value) A button that a user can click to trigger an action.mergeContentText(TextParagraph value) `TextParagraph` equivalent of `text`.mergeEndIcon(Icon value) An icon displayed after the text.mergeFrom(DecoratedText other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Deprecated.mergeOnClick(OnClick value) This action is triggered when users click `topLabel` or `bottomLabel`.mergeStartIcon(Icon value) The icon displayed in front of the text.A switch widget that a user can click to change its state and trigger an action.mergeTopLabelText(TextParagraph value) `TextParagraph` equivalent of `top_label`.setBottomLabel(String value) The text that appears below `text`.setBottomLabelBytes(com.google.protobuf.ByteString value) The text that appears below `text`.setBottomLabelText(TextParagraph value) `TextParagraph` equivalent of `bottom_label`.setBottomLabelText(TextParagraph.Builder builderForValue) `TextParagraph` equivalent of `bottom_label`.A button that a user can click to trigger an action.setButton(Button.Builder builderForValue) A button that a user can click to trigger an action.setContentText(TextParagraph value) `TextParagraph` equivalent of `text`.setContentText(TextParagraph.Builder builderForValue) `TextParagraph` equivalent of `text`.setEndIcon(Icon value) An icon displayed after the text.setEndIcon(Icon.Builder builderForValue) An icon displayed after the text.Deprecated.setIcon(Icon.Builder builderForValue) Deprecated.setOnClick(OnClick value) This action is triggered when users click `topLabel` or `bottomLabel`.setOnClick(OnClick.Builder builderForValue) This action is triggered when users click `topLabel` or `bottomLabel`.setStartIcon(Icon value) The icon displayed in front of the text.setStartIcon(Icon.Builder builderForValue) The icon displayed in front of the text.Optional.setStartIconVerticalAlignmentValue(int value) Optional.A switch widget that a user can click to change its state and trigger an action.setSwitchControl(DecoratedText.SwitchControl.Builder builderForValue) A switch widget that a user can click to change its state and trigger an action.Required.setTextBytes(com.google.protobuf.ByteString value) Required.setTopLabel(String value) The text that appears above `text`.setTopLabelBytes(com.google.protobuf.ByteString value) The text that appears above `text`.setTopLabelText(TextParagraph value) `TextParagraph` equivalent of `top_label`.setTopLabelText(TextParagraph.Builder builderForValue) `TextParagraph` equivalent of `top_label`.setWrapText(boolean value) The wrap text setting.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DecoratedText.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.GeneratedMessage.Builder<DecoratedText.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
-
mergeFrom
public DecoratedText.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<DecoratedText.Builder>- Throws:
IOException
-
getControlCase
- Specified by:
getControlCasein interfaceDecoratedTextOrBuilder
-
clearControl
-
hasIcon
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=915Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];- Specified by:
hasIconin interfaceDecoratedTextOrBuilder- Returns:
- Whether the icon field is set.
-
getIcon
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=915Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];- Specified by:
getIconin interfaceDecoratedTextOrBuilder- Returns:
- The icon.
-
setIcon
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true]; -
setIcon
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true]; -
mergeIcon
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true]; -
clearIcon
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true]; -
getIconBuilder
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true]; -
getIconOrBuilder
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];- Specified by:
getIconOrBuilderin interfaceDecoratedTextOrBuilder
-
hasStartIcon
public boolean hasStartIcon()The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;- Specified by:
hasStartIconin interfaceDecoratedTextOrBuilder- Returns:
- Whether the startIcon field is set.
-
getStartIcon
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;- Specified by:
getStartIconin interfaceDecoratedTextOrBuilder- Returns:
- The startIcon.
-
setStartIcon
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12; -
setStartIcon
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12; -
mergeStartIcon
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12; -
clearStartIcon
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12; -
getStartIconBuilder
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12; -
getStartIconOrBuilder
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;- Specified by:
getStartIconOrBuilderin interfaceDecoratedTextOrBuilder
-
getStartIconVerticalAlignmentValue
public int getStartIconVerticalAlignmentValue()Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;- Specified by:
getStartIconVerticalAlignmentValuein interfaceDecoratedTextOrBuilder- Returns:
- The enum numeric value on the wire for startIconVerticalAlignment.
-
setStartIconVerticalAlignmentValue
Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;- Parameters:
value- The enum numeric value on the wire for startIconVerticalAlignment to set.- Returns:
- This builder for chaining.
-
getStartIconVerticalAlignment
Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;- Specified by:
getStartIconVerticalAlignmentin interfaceDecoratedTextOrBuilder- Returns:
- The startIconVerticalAlignment.
-
setStartIconVerticalAlignment
Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;- Parameters:
value- The startIconVerticalAlignment to set.- Returns:
- This builder for chaining.
-
clearStartIconVerticalAlignment
Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;- Returns:
- This builder for chaining.
-
getTopLabel
The text that appears above `text`. Always truncates.
string top_label = 3;- Specified by:
getTopLabelin interfaceDecoratedTextOrBuilder- Returns:
- The topLabel.
-
getTopLabelBytes
public com.google.protobuf.ByteString getTopLabelBytes()The text that appears above `text`. Always truncates.
string top_label = 3;- Specified by:
getTopLabelBytesin interfaceDecoratedTextOrBuilder- Returns:
- The bytes for topLabel.
-
setTopLabel
The text that appears above `text`. Always truncates.
string top_label = 3;- Parameters:
value- The topLabel to set.- Returns:
- This builder for chaining.
-
clearTopLabel
The text that appears above `text`. Always truncates.
string top_label = 3;- Returns:
- This builder for chaining.
-
setTopLabelBytes
The text that appears above `text`. Always truncates.
string top_label = 3;- Parameters:
value- The bytes for topLabel to set.- Returns:
- This builder for chaining.
-
hasTopLabelText
public boolean hasTopLabelText()`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17;- Specified by:
hasTopLabelTextin interfaceDecoratedTextOrBuilder- Returns:
- Whether the topLabelText field is set.
-
getTopLabelText
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17;- Specified by:
getTopLabelTextin interfaceDecoratedTextOrBuilder- Returns:
- The topLabelText.
-
setTopLabelText
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17; -
setTopLabelText
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17; -
mergeTopLabelText
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17; -
clearTopLabelText
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17; -
getTopLabelTextBuilder
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17; -
getTopLabelTextOrBuilder
`TextParagraph` equivalent of `top_label`. Always truncates. Allows for more complex formatting than `top_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph top_label_text = 17;- Specified by:
getTopLabelTextOrBuilderin interfaceDecoratedTextOrBuilder
-
getText
Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string text = 4;- Specified by:
getTextin interfaceDecoratedTextOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string text = 4;- Specified by:
getTextBytesin interfaceDecoratedTextOrBuilder- Returns:
- The bytes for text.
-
setText
Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string text = 4;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string text = 4;- Returns:
- This builder for chaining.
-
setTextBytes
Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string text = 4;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
hasContentText
public boolean hasContentText()`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18;- Specified by:
hasContentTextin interfaceDecoratedTextOrBuilder- Returns:
- Whether the contentText field is set.
-
getContentText
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18;- Specified by:
getContentTextin interfaceDecoratedTextOrBuilder- Returns:
- The contentText.
-
setContentText
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18; -
setContentText
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18; -
mergeContentText
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18; -
clearContentText
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18; -
getContentTextBuilder
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18; -
getContentTextOrBuilder
`TextParagraph` equivalent of `text`. Allows for more complex formatting than `text`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph content_text = 18;- Specified by:
getContentTextOrBuilderin interfaceDecoratedTextOrBuilder
-
getWrapText
public boolean getWrapText()The wrap text setting. If `true`, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel` and `bottomLabel`.
bool wrap_text = 5;- Specified by:
getWrapTextin interfaceDecoratedTextOrBuilder- Returns:
- The wrapText.
-
setWrapText
The wrap text setting. If `true`, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel` and `bottomLabel`.
bool wrap_text = 5;- Parameters:
value- The wrapText to set.- Returns:
- This builder for chaining.
-
clearWrapText
The wrap text setting. If `true`, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel` and `bottomLabel`.
bool wrap_text = 5;- Returns:
- This builder for chaining.
-
getBottomLabel
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Specified by:
getBottomLabelin interfaceDecoratedTextOrBuilder- Returns:
- The bottomLabel.
-
getBottomLabelBytes
public com.google.protobuf.ByteString getBottomLabelBytes()The text that appears below `text`. Always wraps.
string bottom_label = 6;- Specified by:
getBottomLabelBytesin interfaceDecoratedTextOrBuilder- Returns:
- The bytes for bottomLabel.
-
setBottomLabel
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Parameters:
value- The bottomLabel to set.- Returns:
- This builder for chaining.
-
clearBottomLabel
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Returns:
- This builder for chaining.
-
setBottomLabelBytes
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Parameters:
value- The bytes for bottomLabel to set.- Returns:
- This builder for chaining.
-
hasBottomLabelText
public boolean hasBottomLabelText()`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19;- Specified by:
hasBottomLabelTextin interfaceDecoratedTextOrBuilder- Returns:
- Whether the bottomLabelText field is set.
-
getBottomLabelText
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19;- Specified by:
getBottomLabelTextin interfaceDecoratedTextOrBuilder- Returns:
- The bottomLabelText.
-
setBottomLabelText
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19; -
setBottomLabelText
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19; -
mergeBottomLabelText
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19; -
clearBottomLabelText
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19; -
getBottomLabelTextBuilder
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19; -
getBottomLabelTextOrBuilder
`TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for more complex formatting than `bottom_label`. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph bottom_label_text = 19;- Specified by:
getBottomLabelTextOrBuilderin interfaceDecoratedTextOrBuilder
-
hasOnClick
public boolean hasOnClick()This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;- Specified by:
hasOnClickin interfaceDecoratedTextOrBuilder- Returns:
- Whether the onClick field is set.
-
getOnClick
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;- Specified by:
getOnClickin interfaceDecoratedTextOrBuilder- Returns:
- The onClick.
-
setOnClick
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7; -
setOnClick
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7; -
mergeOnClick
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7; -
clearOnClick
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7; -
getOnClickBuilder
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7; -
getOnClickOrBuilder
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;- Specified by:
getOnClickOrBuilderin interfaceDecoratedTextOrBuilder
-
hasButton
public boolean hasButton()A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;- Specified by:
hasButtonin interfaceDecoratedTextOrBuilder- Returns:
- Whether the button field is set.
-
getButton
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;- Specified by:
getButtonin interfaceDecoratedTextOrBuilder- Returns:
- The button.
-
setButton
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8; -
setButton
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8; -
mergeButton
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8; -
clearButton
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8; -
getButtonBuilder
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8; -
getButtonOrBuilder
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;- Specified by:
getButtonOrBuilderin interfaceDecoratedTextOrBuilder
-
hasSwitchControl
public boolean hasSwitchControl()A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;- Specified by:
hasSwitchControlin interfaceDecoratedTextOrBuilder- Returns:
- Whether the switchControl field is set.
-
getSwitchControl
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;- Specified by:
getSwitchControlin interfaceDecoratedTextOrBuilder- Returns:
- The switchControl.
-
setSwitchControl
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; -
setSwitchControl
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; -
mergeSwitchControl
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; -
clearSwitchControl
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; -
getSwitchControlBuilder
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; -
getSwitchControlOrBuilder
A switch widget that a user can click to change its state and trigger an action.
.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;- Specified by:
getSwitchControlOrBuilderin interfaceDecoratedTextOrBuilder
-
hasEndIcon
public boolean hasEndIcon()An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11;- Specified by:
hasEndIconin interfaceDecoratedTextOrBuilder- Returns:
- Whether the endIcon field is set.
-
getEndIcon
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11;- Specified by:
getEndIconin interfaceDecoratedTextOrBuilder- Returns:
- The endIcon.
-
setEndIcon
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11; -
setEndIcon
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11; -
mergeEndIcon
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11; -
clearEndIcon
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11; -
getEndIconBuilder
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11; -
getEndIconOrBuilder
An icon displayed after the text. Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
.google.apps.card.v1.Icon end_icon = 11;- Specified by:
getEndIconOrBuilderin interfaceDecoratedTextOrBuilder
-