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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DecoratedText
build()
DecoratedText
buildPartial()
DecoratedText.Builder
clear()
DecoratedText.Builder
clearBottomLabel()
The text that appears below `text`.DecoratedText.Builder
clearButton()
A button that a user can click to trigger an action.DecoratedText.Builder
clearControl()
DecoratedText.Builder
clearEndIcon()
An icon displayed after the text.DecoratedText.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DecoratedText.Builder
clearIcon()
Deprecated.DecoratedText.Builder
clearOnClick()
This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DecoratedText.Builder
clearStartIcon()
The icon displayed in front of the text.DecoratedText.Builder
clearSwitchControl()
A switch widget that a user can click to change its state and trigger an action.DecoratedText.Builder
clearText()
Required.DecoratedText.Builder
clearTopLabel()
The text that appears above `text`.DecoratedText.Builder
clearWrapText()
The wrap text setting.DecoratedText.Builder
clone()
java.lang.String
getBottomLabel()
The text that appears below `text`.com.google.protobuf.ByteString
getBottomLabelBytes()
The text that appears below `text`.Button
getButton()
A button that a user can click to trigger an action.Button.Builder
getButtonBuilder()
A button that a user can click to trigger an action.ButtonOrBuilder
getButtonOrBuilder()
A button that a user can click to trigger an action.DecoratedText.ControlCase
getControlCase()
DecoratedText
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Icon
getEndIcon()
An icon displayed after the text.Icon.Builder
getEndIconBuilder()
An icon displayed after the text.IconOrBuilder
getEndIconOrBuilder()
An icon displayed after the text.Icon
getIcon()
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.Icon.Builder
getIconBuilder()
Deprecated.IconOrBuilder
getIconOrBuilder()
Deprecated.OnClick
getOnClick()
This action is triggered when users click `topLabel` or `bottomLabel`.OnClick.Builder
getOnClickBuilder()
This action is triggered when users click `topLabel` or `bottomLabel`.OnClickOrBuilder
getOnClickOrBuilder()
This action is triggered when users click `topLabel` or `bottomLabel`.Icon
getStartIcon()
The icon displayed in front of the text.Icon.Builder
getStartIconBuilder()
The icon displayed in front of the text.IconOrBuilder
getStartIconOrBuilder()
The icon displayed in front of the text.DecoratedText.SwitchControl
getSwitchControl()
A switch widget that a user can click to change its state and trigger an action.DecoratedText.SwitchControl.Builder
getSwitchControlBuilder()
A switch widget that a user can click to change its state and trigger an action.DecoratedText.SwitchControlOrBuilder
getSwitchControlOrBuilder()
A switch widget that a user can click to change its state and trigger an action.java.lang.String
getText()
Required.com.google.protobuf.ByteString
getTextBytes()
Required.java.lang.String
getTopLabel()
The text that appears above `text`.com.google.protobuf.ByteString
getTopLabelBytes()
The text that appears above `text`.boolean
getWrapText()
The wrap text setting.boolean
hasButton()
A button that a user can click to trigger an action.boolean
hasEndIcon()
An icon displayed after the text.boolean
hasIcon()
Deprecated.google.apps.card.v1.DecoratedText.icon is deprecated.boolean
hasOnClick()
This action is triggered when users click `topLabel` or `bottomLabel`.boolean
hasStartIcon()
The icon displayed in front of the text.boolean
hasSwitchControl()
A switch widget that a user can click to change its state and trigger an action.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DecoratedText.Builder
mergeButton(Button value)
A button that a user can click to trigger an action.DecoratedText.Builder
mergeEndIcon(Icon value)
An icon displayed after the text.DecoratedText.Builder
mergeFrom(DecoratedText other)
DecoratedText.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DecoratedText.Builder
mergeFrom(com.google.protobuf.Message other)
DecoratedText.Builder
mergeIcon(Icon value)
Deprecated.DecoratedText.Builder
mergeOnClick(OnClick value)
This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.Builder
mergeStartIcon(Icon value)
The icon displayed in front of the text.DecoratedText.Builder
mergeSwitchControl(DecoratedText.SwitchControl value)
A switch widget that a user can click to change its state and trigger an action.DecoratedText.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DecoratedText.Builder
setBottomLabel(java.lang.String value)
The text that appears below `text`.DecoratedText.Builder
setBottomLabelBytes(com.google.protobuf.ByteString value)
The text that appears below `text`.DecoratedText.Builder
setButton(Button value)
A button that a user can click to trigger an action.DecoratedText.Builder
setButton(Button.Builder builderForValue)
A button that a user can click to trigger an action.DecoratedText.Builder
setEndIcon(Icon value)
An icon displayed after the text.DecoratedText.Builder
setEndIcon(Icon.Builder builderForValue)
An icon displayed after the text.DecoratedText.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DecoratedText.Builder
setIcon(Icon value)
Deprecated.DecoratedText.Builder
setIcon(Icon.Builder builderForValue)
Deprecated.DecoratedText.Builder
setOnClick(OnClick value)
This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.Builder
setOnClick(OnClick.Builder builderForValue)
This action is triggered when users click `topLabel` or `bottomLabel`.DecoratedText.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DecoratedText.Builder
setStartIcon(Icon value)
The icon displayed in front of the text.DecoratedText.Builder
setStartIcon(Icon.Builder builderForValue)
The icon displayed in front of the text.DecoratedText.Builder
setSwitchControl(DecoratedText.SwitchControl value)
A switch widget that a user can click to change its state and trigger an action.DecoratedText.Builder
setSwitchControl(DecoratedText.SwitchControl.Builder builderForValue)
A switch widget that a user can click to change its state and trigger an action.DecoratedText.Builder
setText(java.lang.String value)
Required.DecoratedText.Builder
setTextBytes(com.google.protobuf.ByteString value)
Required.DecoratedText.Builder
setTopLabel(java.lang.String value)
The text that appears above `text`.DecoratedText.Builder
setTopLabelBytes(com.google.protobuf.ByteString value)
The text that appears above `text`.DecoratedText.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DecoratedText.Builder
setWrapText(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clear
public 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
public DecoratedText 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
public DecoratedText build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DecoratedText buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DecoratedText.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, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearField
public DecoratedText.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
clearOneof
public DecoratedText.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.Builder>
-
mergeFrom
public DecoratedText.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.Builder>
-
mergeFrom
public DecoratedText.Builder mergeFrom(DecoratedText other)
-
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 java.io.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:
java.io.IOException
-
getControlCase
public DecoratedText.ControlCase getControlCase()
- Specified by:
getControlCase
in 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:
hasIcon
in 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:
getIcon
in 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:
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
public Icon 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
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:
getStartIconOrBuilder
in interfaceDecoratedTextOrBuilder
-
getTopLabel
public java.lang.String 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
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:
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
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:
getWrapText
in 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:
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
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:
hasOnClick
in 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:
getOnClick
in 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:
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
public Button 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
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:
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
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:
getSwitchControl
in 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:
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
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:
getEndIcon
in 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:
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>
-
-