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<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
- com.google.apps.card.v1.DecoratedText.Builder
-
- All Implemented Interfaces:
DecoratedTextOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- DecoratedText
public static final class DecoratedText.Builder extends com.google.protobuf.GeneratedMessageV3.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 typegoogle.apps.card.v1.DecoratedText
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DecoratedText.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DecoratedTextbuild()DecoratedTextbuildPartial()DecoratedText.Builderclear()DecoratedText.BuilderclearBottomLabel()The text that appears below `text`.DecoratedText.BuilderclearButton()A button that a user can click to trigger an action.DecoratedText.BuilderclearControl()DecoratedText.BuilderclearEndIcon()An icon displayed after the text.DecoratedText.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DecoratedText.BuilderclearIcon()Deprecated.DecoratedText.BuilderclearOnClick()This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DecoratedText.BuilderclearStartIcon()The icon displayed in front of the text.DecoratedText.BuilderclearSwitchControl()A switch widget that a user can click to change its state and trigger an action.DecoratedText.BuilderclearText()Required.DecoratedText.BuilderclearTopLabel()The text that appears above `text`.DecoratedText.BuilderclearWrapText()The wrap text setting.DecoratedText.Builderclone()java.lang.StringgetBottomLabel()The text that appears below `text`.com.google.protobuf.ByteStringgetBottomLabelBytes()The text that appears below `text`.ButtongetButton()A button that a user can click to trigger an action.Button.BuildergetButtonBuilder()A button that a user can click to trigger an action.ButtonOrBuildergetButtonOrBuilder()A button that a user can click to trigger an action.DecoratedText.ControlCasegetControlCase()DecoratedTextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()IcongetEndIcon()An icon displayed after the text.Icon.BuildergetEndIconBuilder()An icon displayed after the text.IconOrBuildergetEndIconOrBuilder()An icon displayed after the text.IcongetIcon()Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.Icon.BuildergetIconBuilder()Deprecated.IconOrBuildergetIconOrBuilder()Deprecated.OnClickgetOnClick()This action is triggered when users click `topLabel` or `bottomLabel`.OnClick.BuildergetOnClickBuilder()This action is triggered when users click `topLabel` or `bottomLabel`.OnClickOrBuildergetOnClickOrBuilder()This action is triggered when users click `topLabel` or `bottomLabel`.IcongetStartIcon()The icon displayed in front of the text.Icon.BuildergetStartIconBuilder()The icon displayed in front of the text.IconOrBuildergetStartIconOrBuilder()The icon displayed in front of the text.DecoratedText.SwitchControlgetSwitchControl()A switch widget that a user can click to change its state and trigger an action.DecoratedText.SwitchControl.BuildergetSwitchControlBuilder()A switch widget that a user can click to change its state and trigger an action.DecoratedText.SwitchControlOrBuildergetSwitchControlOrBuilder()A switch widget that a user can click to change its state and trigger an action.java.lang.StringgetText()Required.com.google.protobuf.ByteStringgetTextBytes()Required.java.lang.StringgetTopLabel()The text that appears above `text`.com.google.protobuf.ByteStringgetTopLabelBytes()The text that appears above `text`.booleangetWrapText()The wrap text setting.booleanhasButton()A button that a user can click to trigger an action.booleanhasEndIcon()An icon displayed after the text.booleanhasIcon()Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.booleanhasOnClick()This action is triggered when users click `topLabel` or `bottomLabel`.booleanhasStartIcon()The icon displayed in front of the text.booleanhasSwitchControl()A switch widget that a user can click to change its state and trigger an action.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DecoratedText.BuildermergeButton(Button value)A button that a user can click to trigger an action.DecoratedText.BuildermergeEndIcon(Icon value)An icon displayed after the text.DecoratedText.BuildermergeFrom(DecoratedText other)DecoratedText.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DecoratedText.BuildermergeFrom(com.google.protobuf.Message other)DecoratedText.BuildermergeIcon(Icon value)Deprecated.DecoratedText.BuildermergeOnClick(OnClick value)This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.BuildermergeStartIcon(Icon value)The icon displayed in front of the text.DecoratedText.BuildermergeSwitchControl(DecoratedText.SwitchControl value)A switch widget that a user can click to change its state and trigger an action.DecoratedText.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DecoratedText.BuildersetBottomLabel(java.lang.String value)The text that appears below `text`.DecoratedText.BuildersetBottomLabelBytes(com.google.protobuf.ByteString value)The text that appears below `text`.DecoratedText.BuildersetButton(Button value)A button that a user can click to trigger an action.DecoratedText.BuildersetButton(Button.Builder builderForValue)A button that a user can click to trigger an action.DecoratedText.BuildersetEndIcon(Icon value)An icon displayed after the text.DecoratedText.BuildersetEndIcon(Icon.Builder builderForValue)An icon displayed after the text.DecoratedText.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DecoratedText.BuildersetIcon(Icon value)Deprecated.DecoratedText.BuildersetIcon(Icon.Builder builderForValue)Deprecated.DecoratedText.BuildersetOnClick(OnClick value)This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.BuildersetOnClick(OnClick.Builder builderForValue)This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)DecoratedText.BuildersetStartIcon(Icon value)The icon displayed in front of the text.DecoratedText.BuildersetStartIcon(Icon.Builder builderForValue)The icon displayed in front of the text.DecoratedText.BuildersetSwitchControl(DecoratedText.SwitchControl value)A switch widget that a user can click to change its state and trigger an action.DecoratedText.BuildersetSwitchControl(DecoratedText.SwitchControl.Builder builderForValue)A switch widget that a user can click to change its state and trigger an action.DecoratedText.BuildersetText(java.lang.String value)Required.DecoratedText.BuildersetTextBytes(com.google.protobuf.ByteString value)Required.DecoratedText.BuildersetTopLabel(java.lang.String value)The text that appears above `text`.DecoratedText.BuildersetTopLabelBytes(com.google.protobuf.ByteString value)The text that appears above `text`.DecoratedText.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DecoratedText.BuildersetWrapText(boolean value)The wrap text setting.-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clear
public DecoratedText.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<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
public DecoratedText getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DecoratedText build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DecoratedText buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DecoratedText.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<DecoratedText.Builder>
-
setField
public DecoratedText.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearField
public DecoratedText.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearOneof
public DecoratedText.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
setRepeatedField
public DecoratedText.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
addRepeatedField
public DecoratedText.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
mergeFrom
public DecoratedText.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
-
mergeFrom
public DecoratedText.Builder mergeFrom(DecoratedText other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,DecoratedText.Builder>
-
mergeFrom
public DecoratedText.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getControlCase
public DecoratedText.ControlCase getControlCase()
- Specified by:
getControlCasein interfaceDecoratedTextOrBuilder
-
clearControl
public DecoratedText.Builder clearControl()
-
hasIcon
@Deprecated public boolean hasIcon()
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=796Deprecated 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 public Icon getIcon()
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=796Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];- Specified by:
getIconin interfaceDecoratedTextOrBuilder- Returns:
- The icon.
-
setIcon
@Deprecated public DecoratedText.Builder setIcon(Icon value)
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
-
setIcon
@Deprecated public DecoratedText.Builder setIcon(Icon.Builder builderForValue)
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
-
mergeIcon
@Deprecated public DecoratedText.Builder mergeIcon(Icon value)
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
-
clearIcon
@Deprecated public DecoratedText.Builder clearIcon()
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
-
getIconBuilder
@Deprecated public Icon.Builder getIconBuilder()
Deprecated.Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
-
getIconOrBuilder
@Deprecated public IconOrBuilder 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
public Icon 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
public DecoratedText.Builder setStartIcon(Icon value)
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
-
setStartIcon
public DecoratedText.Builder setStartIcon(Icon.Builder builderForValue)
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
-
mergeStartIcon
public DecoratedText.Builder mergeStartIcon(Icon value)
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
-
clearStartIcon
public DecoratedText.Builder clearStartIcon()
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
-
getStartIconBuilder
public Icon.Builder getStartIconBuilder()
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
-
getStartIconOrBuilder
public IconOrBuilder getStartIconOrBuilder()
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;- Specified by:
getStartIconOrBuilderin interfaceDecoratedTextOrBuilder
-
getTopLabel
public java.lang.String 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
public DecoratedText.Builder setTopLabel(java.lang.String value)
The text that appears above `text`. Always truncates.
string top_label = 3;- Parameters:
value- The topLabel to set.- Returns:
- This builder for chaining.
-
clearTopLabel
public DecoratedText.Builder clearTopLabel()
The text that appears above `text`. Always truncates.
string top_label = 3;- Returns:
- This builder for chaining.
-
setTopLabelBytes
public DecoratedText.Builder setTopLabelBytes(com.google.protobuf.ByteString value)
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.
-
getText
public java.lang.String 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
public DecoratedText.Builder setText(java.lang.String value)
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
public DecoratedText.Builder 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
public DecoratedText.Builder setTextBytes(com.google.protobuf.ByteString value)
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.
-
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
public DecoratedText.Builder setWrapText(boolean value)
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
public DecoratedText.Builder 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
public java.lang.String 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
public DecoratedText.Builder setBottomLabel(java.lang.String value)
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Parameters:
value- The bottomLabel to set.- Returns:
- This builder for chaining.
-
clearBottomLabel
public DecoratedText.Builder clearBottomLabel()
The text that appears below `text`. Always wraps.
string bottom_label = 6;- Returns:
- This builder for chaining.
-
setBottomLabelBytes
public DecoratedText.Builder setBottomLabelBytes(com.google.protobuf.ByteString value)
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.
-
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
public OnClick 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
public DecoratedText.Builder setOnClick(OnClick value)
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
-
setOnClick
public DecoratedText.Builder setOnClick(OnClick.Builder builderForValue)
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
-
mergeOnClick
public DecoratedText.Builder mergeOnClick(OnClick value)
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
-
clearOnClick
public DecoratedText.Builder clearOnClick()
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
-
getOnClickBuilder
public OnClick.Builder getOnClickBuilder()
This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
-
getOnClickOrBuilder
public OnClickOrBuilder 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
public Button 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
public DecoratedText.Builder setButton(Button value)
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;
-
setButton
public DecoratedText.Builder setButton(Button.Builder builderForValue)
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;
-
mergeButton
public DecoratedText.Builder mergeButton(Button value)
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;
-
clearButton
public DecoratedText.Builder clearButton()
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;
-
getButtonBuilder
public Button.Builder getButtonBuilder()
A button that a user can click to trigger an action.
.google.apps.card.v1.Button button = 8;
-
getButtonOrBuilder
public ButtonOrBuilder 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
public DecoratedText.SwitchControl 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
public DecoratedText.Builder setSwitchControl(DecoratedText.SwitchControl value)
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
public DecoratedText.Builder setSwitchControl(DecoratedText.SwitchControl.Builder builderForValue)
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
public DecoratedText.Builder mergeSwitchControl(DecoratedText.SwitchControl value)
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
public DecoratedText.Builder 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
public DecoratedText.SwitchControl.Builder 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
public DecoratedText.SwitchControlOrBuilder 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
public Icon 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
public DecoratedText.Builder setEndIcon(Icon value)
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
public DecoratedText.Builder setEndIcon(Icon.Builder builderForValue)
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
public DecoratedText.Builder mergeEndIcon(Icon value)
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
public DecoratedText.Builder 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
public Icon.Builder 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
public IconOrBuilder 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
-
setUnknownFields
public final DecoratedText.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
mergeUnknownFields
public final DecoratedText.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
-