Package com.google.apps.card.v1
Class Widget.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<Widget.Builder>
-
- com.google.apps.card.v1.Widget.Builder
-
- All Implemented Interfaces:
WidgetOrBuilder,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:
- Widget
public static final class Widget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Widget.Builder> implements WidgetOrBuilder
Each card is made up of widgets. A widget is a composite object that can represent one of text, images, buttons, and other object types.
Protobuf typegoogle.apps.card.v1.Widget
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Widget.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Widgetbuild()WidgetbuildPartial()Widget.Builderclear()Widget.BuilderclearButtonList()A list of buttons.Widget.BuilderclearColumns()Displays up to 2 columns.Widget.BuilderclearData()Widget.BuilderclearDateTimePicker()Displays a widget that lets users input a date, time, or date and time.Widget.BuilderclearDecoratedText()Displays a decorated text item.Widget.BuilderclearDivider()Displays a horizontal line divider between widgets.Widget.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Widget.BuilderclearGrid()Displays a grid with a collection of items.Widget.BuilderclearHorizontalAlignment()Specifies whether widgets align to the left, right, or center of a column.Widget.BuilderclearImage()Displays an image.Widget.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Widget.BuilderclearSelectionInput()Displays a selection control that lets users select items.Widget.BuilderclearTextInput()Displays a text box that users can type into.Widget.BuilderclearTextParagraph()Displays a text paragraph.Widget.Builderclone()ButtonListgetButtonList()A list of buttons.ButtonList.BuildergetButtonListBuilder()A list of buttons.ButtonListOrBuildergetButtonListOrBuilder()A list of buttons.ColumnsgetColumns()Displays up to 2 columns.Columns.BuildergetColumnsBuilder()Displays up to 2 columns.ColumnsOrBuildergetColumnsOrBuilder()Displays up to 2 columns.Widget.DataCasegetDataCase()DateTimePickergetDateTimePicker()Displays a widget that lets users input a date, time, or date and time.DateTimePicker.BuildergetDateTimePickerBuilder()Displays a widget that lets users input a date, time, or date and time.DateTimePickerOrBuildergetDateTimePickerOrBuilder()Displays a widget that lets users input a date, time, or date and time.DecoratedTextgetDecoratedText()Displays a decorated text item.DecoratedText.BuildergetDecoratedTextBuilder()Displays a decorated text item.DecoratedTextOrBuildergetDecoratedTextOrBuilder()Displays a decorated text item.WidgetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DividergetDivider()Displays a horizontal line divider between widgets.Divider.BuildergetDividerBuilder()Displays a horizontal line divider between widgets.DividerOrBuildergetDividerOrBuilder()Displays a horizontal line divider between widgets.GridgetGrid()Displays a grid with a collection of items.Grid.BuildergetGridBuilder()Displays a grid with a collection of items.GridOrBuildergetGridOrBuilder()Displays a grid with a collection of items.Widget.HorizontalAlignmentgetHorizontalAlignment()Specifies whether widgets align to the left, right, or center of a column.intgetHorizontalAlignmentValue()Specifies whether widgets align to the left, right, or center of a column.ImagegetImage()Displays an image.Image.BuildergetImageBuilder()Displays an image.ImageOrBuildergetImageOrBuilder()Displays an image.SelectionInputgetSelectionInput()Displays a selection control that lets users select items.SelectionInput.BuildergetSelectionInputBuilder()Displays a selection control that lets users select items.SelectionInputOrBuildergetSelectionInputOrBuilder()Displays a selection control that lets users select items.TextInputgetTextInput()Displays a text box that users can type into.TextInput.BuildergetTextInputBuilder()Displays a text box that users can type into.TextInputOrBuildergetTextInputOrBuilder()Displays a text box that users can type into.TextParagraphgetTextParagraph()Displays a text paragraph.TextParagraph.BuildergetTextParagraphBuilder()Displays a text paragraph.TextParagraphOrBuildergetTextParagraphOrBuilder()Displays a text paragraph.booleanhasButtonList()A list of buttons.booleanhasColumns()Displays up to 2 columns.booleanhasDateTimePicker()Displays a widget that lets users input a date, time, or date and time.booleanhasDecoratedText()Displays a decorated text item.booleanhasDivider()Displays a horizontal line divider between widgets.booleanhasGrid()Displays a grid with a collection of items.booleanhasImage()Displays an image.booleanhasSelectionInput()Displays a selection control that lets users select items.booleanhasTextInput()Displays a text box that users can type into.booleanhasTextParagraph()Displays a text paragraph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Widget.BuildermergeButtonList(ButtonList value)A list of buttons.Widget.BuildermergeColumns(Columns value)Displays up to 2 columns.Widget.BuildermergeDateTimePicker(DateTimePicker value)Displays a widget that lets users input a date, time, or date and time.Widget.BuildermergeDecoratedText(DecoratedText value)Displays a decorated text item.Widget.BuildermergeDivider(Divider value)Displays a horizontal line divider between widgets.Widget.BuildermergeFrom(Widget other)Widget.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Widget.BuildermergeFrom(com.google.protobuf.Message other)Widget.BuildermergeGrid(Grid value)Displays a grid with a collection of items.Widget.BuildermergeImage(Image value)Displays an image.Widget.BuildermergeSelectionInput(SelectionInput value)Displays a selection control that lets users select items.Widget.BuildermergeTextInput(TextInput value)Displays a text box that users can type into.Widget.BuildermergeTextParagraph(TextParagraph value)Displays a text paragraph.Widget.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Widget.BuildersetButtonList(ButtonList value)A list of buttons.Widget.BuildersetButtonList(ButtonList.Builder builderForValue)A list of buttons.Widget.BuildersetColumns(Columns value)Displays up to 2 columns.Widget.BuildersetColumns(Columns.Builder builderForValue)Displays up to 2 columns.Widget.BuildersetDateTimePicker(DateTimePicker value)Displays a widget that lets users input a date, time, or date and time.Widget.BuildersetDateTimePicker(DateTimePicker.Builder builderForValue)Displays a widget that lets users input a date, time, or date and time.Widget.BuildersetDecoratedText(DecoratedText value)Displays a decorated text item.Widget.BuildersetDecoratedText(DecoratedText.Builder builderForValue)Displays a decorated text item.Widget.BuildersetDivider(Divider value)Displays a horizontal line divider between widgets.Widget.BuildersetDivider(Divider.Builder builderForValue)Displays a horizontal line divider between widgets.Widget.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Widget.BuildersetGrid(Grid value)Displays a grid with a collection of items.Widget.BuildersetGrid(Grid.Builder builderForValue)Displays a grid with a collection of items.Widget.BuildersetHorizontalAlignment(Widget.HorizontalAlignment value)Specifies whether widgets align to the left, right, or center of a column.Widget.BuildersetHorizontalAlignmentValue(int value)Specifies whether widgets align to the left, right, or center of a column.Widget.BuildersetImage(Image value)Displays an image.Widget.BuildersetImage(Image.Builder builderForValue)Displays an image.Widget.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Widget.BuildersetSelectionInput(SelectionInput value)Displays a selection control that lets users select items.Widget.BuildersetSelectionInput(SelectionInput.Builder builderForValue)Displays a selection control that lets users select items.Widget.BuildersetTextInput(TextInput value)Displays a text box that users can type into.Widget.BuildersetTextInput(TextInput.Builder builderForValue)Displays a text box that users can type into.Widget.BuildersetTextParagraph(TextParagraph value)Displays a text paragraph.Widget.BuildersetTextParagraph(TextParagraph.Builder builderForValue)Displays a text paragraph.Widget.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<Widget.Builder>
-
clear
public Widget.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<Widget.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<Widget.Builder>
-
getDefaultInstanceForType
public Widget 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 Widget build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Widget buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Widget.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<Widget.Builder>
-
setField
public Widget.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<Widget.Builder>
-
clearField
public Widget.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Widget.Builder>
-
clearOneof
public Widget.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Widget.Builder>
-
setRepeatedField
public Widget.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<Widget.Builder>
-
addRepeatedField
public Widget.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<Widget.Builder>
-
mergeFrom
public Widget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Widget.Builder>
-
mergeFrom
public Widget.Builder mergeFrom(Widget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Widget.Builder>
-
mergeFrom
public Widget.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<Widget.Builder>- Throws:
java.io.IOException
-
getDataCase
public Widget.DataCase getDataCase()
- Specified by:
getDataCasein interfaceWidgetOrBuilder
-
clearData
public Widget.Builder clearData()
-
hasTextParagraph
public boolean hasTextParagraph()
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;- Specified by:
hasTextParagraphin interfaceWidgetOrBuilder- Returns:
- Whether the textParagraph field is set.
-
getTextParagraph
public TextParagraph getTextParagraph()
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;- Specified by:
getTextParagraphin interfaceWidgetOrBuilder- Returns:
- The textParagraph.
-
setTextParagraph
public Widget.Builder setTextParagraph(TextParagraph value)
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;
-
setTextParagraph
public Widget.Builder setTextParagraph(TextParagraph.Builder builderForValue)
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;
-
mergeTextParagraph
public Widget.Builder mergeTextParagraph(TextParagraph value)
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;
-
clearTextParagraph
public Widget.Builder clearTextParagraph()
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;
-
getTextParagraphBuilder
public TextParagraph.Builder getTextParagraphBuilder()
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;
-
getTextParagraphOrBuilder
public TextParagraphOrBuilder getTextParagraphOrBuilder()
Displays a text paragraph. Supports simple HTML formatted text. 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). For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " <b>bold text</b>" } ```.google.apps.card.v1.TextParagraph text_paragraph = 1;- Specified by:
getTextParagraphOrBuilderin interfaceWidgetOrBuilder
-
hasImage
public boolean hasImage()
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;- Specified by:
hasImagein interfaceWidgetOrBuilder- Returns:
- Whether the image field is set.
-
getImage
public Image getImage()
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;- Specified by:
getImagein interfaceWidgetOrBuilder- Returns:
- The image.
-
setImage
public Widget.Builder setImage(Image value)
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;
-
setImage
public Widget.Builder setImage(Image.Builder builderForValue)
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;
-
mergeImage
public Widget.Builder mergeImage(Image value)
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;
-
clearImage
public Widget.Builder clearImage()
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;
-
getImageBuilder
public Image.Builder getImageBuilder()
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;
-
getImageOrBuilder
public ImageOrBuilder getImageOrBuilder()
Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```.google.apps.card.v1.Image image = 2;- Specified by:
getImageOrBuilderin interfaceWidgetOrBuilder
-
hasDecoratedText
public boolean hasDecoratedText()
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;- Specified by:
hasDecoratedTextin interfaceWidgetOrBuilder- Returns:
- Whether the decoratedText field is set.
-
getDecoratedText
public DecoratedText getDecoratedText()
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;- Specified by:
getDecoratedTextin interfaceWidgetOrBuilder- Returns:
- The decoratedText.
-
setDecoratedText
public Widget.Builder setDecoratedText(DecoratedText value)
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;
-
setDecoratedText
public Widget.Builder setDecoratedText(DecoratedText.Builder builderForValue)
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;
-
mergeDecoratedText
public Widget.Builder mergeDecoratedText(DecoratedText value)
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;
-
clearDecoratedText
public Widget.Builder clearDecoratedText()
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;
-
getDecoratedTextBuilder
public DecoratedText.Builder getDecoratedTextBuilder()
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;
-
getDecoratedTextOrBuilder
public DecoratedTextOrBuilder getDecoratedTextOrBuilder()
Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ```.google.apps.card.v1.DecoratedText decorated_text = 3;- Specified by:
getDecoratedTextOrBuilderin interfaceWidgetOrBuilder
-
hasButtonList
public boolean hasButtonList()
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;- Specified by:
hasButtonListin interfaceWidgetOrBuilder- Returns:
- Whether the buttonList field is set.
-
getButtonList
public ButtonList getButtonList()
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;- Specified by:
getButtonListin interfaceWidgetOrBuilder- Returns:
- The buttonList.
-
setButtonList
public Widget.Builder setButtonList(ButtonList value)
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;
-
setButtonList
public Widget.Builder setButtonList(ButtonList.Builder builderForValue)
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;
-
mergeButtonList
public Widget.Builder mergeButtonList(ButtonList value)
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;
-
clearButtonList
public Widget.Builder clearButtonList()
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;
-
getButtonListBuilder
public ButtonList.Builder getButtonListBuilder()
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;
-
getButtonListOrBuilder
public ButtonListOrBuilder getButtonListOrBuilder()
A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```.google.apps.card.v1.ButtonList button_list = 4;- Specified by:
getButtonListOrBuilderin interfaceWidgetOrBuilder
-
hasTextInput
public boolean hasTextInput()
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;- Specified by:
hasTextInputin interfaceWidgetOrBuilder- Returns:
- Whether the textInput field is set.
-
getTextInput
public TextInput getTextInput()
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;- Specified by:
getTextInputin interfaceWidgetOrBuilder- Returns:
- The textInput.
-
setTextInput
public Widget.Builder setTextInput(TextInput value)
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;
-
setTextInput
public Widget.Builder setTextInput(TextInput.Builder builderForValue)
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;
-
mergeTextInput
public Widget.Builder mergeTextInput(TextInput value)
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;
-
clearTextInput
public Widget.Builder clearTextInput()
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;
-
getTextInputBuilder
public TextInput.Builder getTextInputBuilder()
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;
-
getTextInputOrBuilder
public TextInputOrBuilder getTextInputOrBuilder()
Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```.google.apps.card.v1.TextInput text_input = 5;- Specified by:
getTextInputOrBuilderin interfaceWidgetOrBuilder
-
hasSelectionInput
public boolean hasSelectionInput()
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;- Specified by:
hasSelectionInputin interfaceWidgetOrBuilder- Returns:
- Whether the selectionInput field is set.
-
getSelectionInput
public SelectionInput getSelectionInput()
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;- Specified by:
getSelectionInputin interfaceWidgetOrBuilder- Returns:
- The selectionInput.
-
setSelectionInput
public Widget.Builder setSelectionInput(SelectionInput value)
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;
-
setSelectionInput
public Widget.Builder setSelectionInput(SelectionInput.Builder builderForValue)
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;
-
mergeSelectionInput
public Widget.Builder mergeSelectionInput(SelectionInput value)
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;
-
clearSelectionInput
public Widget.Builder clearSelectionInput()
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;
-
getSelectionInputBuilder
public SelectionInput.Builder getSelectionInputBuilder()
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;
-
getSelectionInputOrBuilder
public SelectionInputOrBuilder getSelectionInputOrBuilder()
Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```.google.apps.card.v1.SelectionInput selection_input = 6;- Specified by:
getSelectionInputOrBuilderin interfaceWidgetOrBuilder
-
hasDateTimePicker
public boolean hasDateTimePicker()
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;- Specified by:
hasDateTimePickerin interfaceWidgetOrBuilder- Returns:
- Whether the dateTimePicker field is set.
-
getDateTimePicker
public DateTimePicker getDateTimePicker()
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;- Specified by:
getDateTimePickerin interfaceWidgetOrBuilder- Returns:
- The dateTimePicker.
-
setDateTimePicker
public Widget.Builder setDateTimePicker(DateTimePicker value)
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;
-
setDateTimePicker
public Widget.Builder setDateTimePicker(DateTimePicker.Builder builderForValue)
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;
-
mergeDateTimePicker
public Widget.Builder mergeDateTimePicker(DateTimePicker value)
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;
-
clearDateTimePicker
public Widget.Builder clearDateTimePicker()
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;
-
getDateTimePickerBuilder
public DateTimePicker.Builder getDateTimePickerBuilder()
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;
-
getDateTimePickerOrBuilder
public DateTimePickerOrBuilder getDateTimePickerOrBuilder()
Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```.google.apps.card.v1.DateTimePicker date_time_picker = 7;- Specified by:
getDateTimePickerOrBuilderin interfaceWidgetOrBuilder
-
hasDivider
public boolean hasDivider()
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;- Specified by:
hasDividerin interfaceWidgetOrBuilder- Returns:
- Whether the divider field is set.
-
getDivider
public Divider getDivider()
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;- Specified by:
getDividerin interfaceWidgetOrBuilder- Returns:
- The divider.
-
setDivider
public Widget.Builder setDivider(Divider value)
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;
-
setDivider
public Widget.Builder setDivider(Divider.Builder builderForValue)
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;
-
mergeDivider
public Widget.Builder mergeDivider(Divider value)
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;
-
clearDivider
public Widget.Builder clearDivider()
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;
-
getDividerBuilder
public Divider.Builder getDividerBuilder()
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;
-
getDividerOrBuilder
public DividerOrBuilder getDividerOrBuilder()
Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ```.google.apps.card.v1.Divider divider = 9;- Specified by:
getDividerOrBuilderin interfaceWidgetOrBuilder
-
hasGrid
public boolean hasGrid()
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;- Specified by:
hasGridin interfaceWidgetOrBuilder- Returns:
- Whether the grid field is set.
-
getGrid
public Grid getGrid()
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;- Specified by:
getGridin interfaceWidgetOrBuilder- Returns:
- The grid.
-
setGrid
public Widget.Builder setGrid(Grid value)
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;
-
setGrid
public Widget.Builder setGrid(Grid.Builder builderForValue)
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;
-
mergeGrid
public Widget.Builder mergeGrid(Grid value)
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;
-
clearGrid
public Widget.Builder clearGrid()
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;
-
getGridBuilder
public Grid.Builder getGridBuilder()
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;
-
getGridOrBuilder
public GridOrBuilder getGridOrBuilder()
Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } } ```.google.apps.card.v1.Grid grid = 10;- Specified by:
getGridOrBuilderin interfaceWidgetOrBuilder
-
hasColumns
public boolean hasColumns()
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;- Specified by:
hasColumnsin interfaceWidgetOrBuilder- Returns:
- Whether the columns field is set.
-
getColumns
public Columns getColumns()
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;- Specified by:
getColumnsin interfaceWidgetOrBuilder- Returns:
- The columns.
-
setColumns
public Widget.Builder setColumns(Columns value)
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;
-
setColumns
public Widget.Builder setColumns(Columns.Builder builderForValue)
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;
-
mergeColumns
public Widget.Builder mergeColumns(Columns value)
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;
-
clearColumns
public Widget.Builder clearColumns()
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;
-
getColumnsBuilder
public Columns.Builder getColumnsBuilder()
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;
-
getColumnsOrBuilder
public ColumnsOrBuilder getColumnsOrBuilder()
Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ```.google.apps.card.v1.Columns columns = 11;- Specified by:
getColumnsOrBuilderin interfaceWidgetOrBuilder
-
getHorizontalAlignmentValue
public int getHorizontalAlignmentValue()
Specifies whether widgets align to the left, right, or center of a column.
.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;- Specified by:
getHorizontalAlignmentValuein interfaceWidgetOrBuilder- Returns:
- The enum numeric value on the wire for horizontalAlignment.
-
setHorizontalAlignmentValue
public Widget.Builder setHorizontalAlignmentValue(int value)
Specifies whether widgets align to the left, right, or center of a column.
.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;- Parameters:
value- The enum numeric value on the wire for horizontalAlignment to set.- Returns:
- This builder for chaining.
-
getHorizontalAlignment
public Widget.HorizontalAlignment getHorizontalAlignment()
Specifies whether widgets align to the left, right, or center of a column.
.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;- Specified by:
getHorizontalAlignmentin interfaceWidgetOrBuilder- Returns:
- The horizontalAlignment.
-
setHorizontalAlignment
public Widget.Builder setHorizontalAlignment(Widget.HorizontalAlignment value)
Specifies whether widgets align to the left, right, or center of a column.
.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;- Parameters:
value- The horizontalAlignment to set.- Returns:
- This builder for chaining.
-
clearHorizontalAlignment
public Widget.Builder clearHorizontalAlignment()
Specifies whether widgets align to the left, right, or center of a column.
.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Widget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Widget.Builder>
-
mergeUnknownFields
public final Widget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Widget.Builder>
-
-