Package com.google.apps.card.v1
Class DecoratedText.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
com.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,DecoratedText.Builder>
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
,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 type
google.apps.card.v1.DecoratedText
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The text that appears below `text`.A button that a user can click to trigger an action.An icon displayed after the text.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Deprecated.This action is triggered when users click `topLabel` or `bottomLabel`.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The icon displayed in front of the text.A switch widget that a user can click to change its state and trigger an action.Required.The text that appears above `text`.The wrap text setting.clone()
The text that appears below `text`.com.google.protobuf.ByteString
The text that appears below `text`.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.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
An 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.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.ByteString
Required.The text that appears above `text`.com.google.protobuf.ByteString
The text that appears above `text`.boolean
The wrap text setting.boolean
A button that a user can click to trigger an action.boolean
An icon displayed after the text.boolean
hasIcon()
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.boolean
This action is triggered when users click `topLabel` or `bottomLabel`.boolean
The icon displayed in front of the text.boolean
A switch widget that a user can click to change its state and trigger an action.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeButton
(Button value) A button that a user can click to trigger an action.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.final DecoratedText.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setBottomLabel
(String value) The text that appears below `text`.setBottomLabelBytes
(com.google.protobuf.ByteString value) The text that appears below `text`.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.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`.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartIcon
(Icon value) The icon displayed in front of the text.setStartIcon
(Icon.Builder builderForValue) The icon displayed in front of the text.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`.final DecoratedText.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setWrapText
(boolean value) The wrap text setting.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildren
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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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()- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<DecoratedText.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
setField
public DecoratedText.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
setRepeatedField
public DecoratedText.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
addRepeatedField
public DecoratedText.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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 IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
- Throws:
IOException
-
getControlCase
- Specified by:
getControlCase
in interfaceDecoratedTextOrBuilder
-
clearControl
-
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:
hasIcon
in 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=796Deprecated in favor of `startIcon`.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
- Specified by:
getIcon
in 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:
getIconOrBuilder
in interfaceDecoratedTextOrBuilder
-
hasStartIcon
public boolean hasStartIcon()The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
- Specified by:
hasStartIcon
in 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:
getStartIcon
in 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:
getStartIconOrBuilder
in interfaceDecoratedTextOrBuilder
-
getTopLabel
The text that appears above `text`. Always truncates.
string top_label = 3;
- Specified by:
getTopLabel
in 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:
getTopLabelBytes
in 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.
-
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:
getText
in 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:
getTextBytes
in 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.
-
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:
getWrapText
in 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:
getBottomLabel
in 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:
getBottomLabelBytes
in 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.
-
hasOnClick
public boolean hasOnClick()This action is triggered when users click `topLabel` or `bottomLabel`.
.google.apps.card.v1.OnClick on_click = 7;
- Specified by:
hasOnClick
in 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:
getOnClick
in 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:
getOnClickOrBuilder
in 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:
hasButton
in 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:
getButton
in 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:
getButtonOrBuilder
in 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:
hasSwitchControl
in 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:
getSwitchControl
in 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:
getSwitchControlOrBuilder
in 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:
hasEndIcon
in 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:
getEndIcon
in 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:
getEndIconOrBuilder
in interfaceDecoratedTextOrBuilder
-
setUnknownFields
public final DecoratedText.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
mergeUnknownFields
public final DecoratedText.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-