Package com.google.apps.card.v1
Class Card.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<Card.Builder>
-
- com.google.apps.card.v1.Card.Builder
-
- All Implemented Interfaces:
CardOrBuilder,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:
- Card
public static final class Card.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder> implements CardOrBuilder
A card interface displayed in a Google Chat message or Google Workspace Add-on. Cards support a defined layout, interactive UI elements like buttons, and rich media like images. Use cards to present detailed information, gather information from users, and guide users to take a next step. [Card builder](https://addons.gsuite.google.com/uikit/builder) To learn how to build cards, see the following documentation: * For Google Chat apps, see [Design the components of a card or dialog](https://developers.google.com/workspace/chat/design-components-card-dialog). * For Google Workspace Add-ons, see [Card-based interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards). **Example: Card message for a Google Chat app**  To create the sample card message in Google Chat, use the following JSON: ``` { "cardsV2": [ { "cardId": "unique-card-id", "card": { "header": { "title": "Sasha", "subtitle": "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for Sasha" }, "sections": [ { "header": "Contact Info", "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ { "decoratedText": { "startIcon": { "knownIcon": "EMAIL" }, "text": "sasha@example.com" } }, { "decoratedText": { "startIcon": { "knownIcon": "PERSON" }, "text": "<font color=\"#80e27e\">Online</font>" } }, { "decoratedText": { "startIcon": { "knownIcon": "PHONE" }, "text": "+1 (555) 555-1234" } }, { "buttonList": { "buttons": [ { "text": "Share", "onClick": { "openLink": { "url": "https://example.com/share" } } }, { "text": "Edit", "onClick": { "action": { "function": "goToView", "parameters": [ { "key": "viewType", "value": "EDIT" } ] } } } ] } } ] } ] } } ] } ```Protobuf typegoogle.apps.card.v1.Card
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Card.BuilderaddAllCardActions(java.lang.Iterable<? extends Card.CardAction> values)The card's actions.Card.BuilderaddAllSections(java.lang.Iterable<? extends Card.Section> values)Contains a collection of widgets.Card.BuilderaddCardActions(int index, Card.CardAction value)The card's actions.Card.BuilderaddCardActions(int index, Card.CardAction.Builder builderForValue)The card's actions.Card.BuilderaddCardActions(Card.CardAction value)The card's actions.Card.BuilderaddCardActions(Card.CardAction.Builder builderForValue)The card's actions.Card.CardAction.BuilderaddCardActionsBuilder()The card's actions.Card.CardAction.BuilderaddCardActionsBuilder(int index)The card's actions.Card.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Card.BuilderaddSections(int index, Card.Section value)Contains a collection of widgets.Card.BuilderaddSections(int index, Card.Section.Builder builderForValue)Contains a collection of widgets.Card.BuilderaddSections(Card.Section value)Contains a collection of widgets.Card.BuilderaddSections(Card.Section.Builder builderForValue)Contains a collection of widgets.Card.Section.BuilderaddSectionsBuilder()Contains a collection of widgets.Card.Section.BuilderaddSectionsBuilder(int index)Contains a collection of widgets.Cardbuild()CardbuildPartial()Card.Builderclear()Card.BuilderclearCardActions()The card's actions.Card.BuilderclearDisplayStyle()In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Card.BuilderclearFixedFooter()The fixed footer shown at the bottom of this card.Card.BuilderclearHeader()The header of the card.Card.BuilderclearName()Name of the card.Card.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Card.BuilderclearPeekCardHeader()When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.BuilderclearSectionDividerStyle()The divider style between sections.Card.BuilderclearSections()Contains a collection of widgets.Card.Builderclone()Card.CardActiongetCardActions(int index)The card's actions.Card.CardAction.BuildergetCardActionsBuilder(int index)The card's actions.java.util.List<Card.CardAction.Builder>getCardActionsBuilderList()The card's actions.intgetCardActionsCount()The card's actions.java.util.List<Card.CardAction>getCardActionsList()The card's actions.Card.CardActionOrBuildergetCardActionsOrBuilder(int index)The card's actions.java.util.List<? extends Card.CardActionOrBuilder>getCardActionsOrBuilderList()The card's actions.CardgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Card.DisplayStylegetDisplayStyle()In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.intgetDisplayStyleValue()In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.CardFixedFootergetFixedFooter()The fixed footer shown at the bottom of this card.Card.CardFixedFooter.BuildergetFixedFooterBuilder()The fixed footer shown at the bottom of this card.Card.CardFixedFooterOrBuildergetFixedFooterOrBuilder()The fixed footer shown at the bottom of this card.Card.CardHeadergetHeader()The header of the card.Card.CardHeader.BuildergetHeaderBuilder()The header of the card.Card.CardHeaderOrBuildergetHeaderOrBuilder()The header of the card.java.lang.StringgetName()Name of the card.com.google.protobuf.ByteStringgetNameBytes()Name of the card.Card.CardHeadergetPeekCardHeader()When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.CardHeader.BuildergetPeekCardHeaderBuilder()When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.CardHeaderOrBuildergetPeekCardHeaderOrBuilder()When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.DividerStylegetSectionDividerStyle()The divider style between sections.intgetSectionDividerStyleValue()The divider style between sections.Card.SectiongetSections(int index)Contains a collection of widgets.Card.Section.BuildergetSectionsBuilder(int index)Contains a collection of widgets.java.util.List<Card.Section.Builder>getSectionsBuilderList()Contains a collection of widgets.intgetSectionsCount()Contains a collection of widgets.java.util.List<Card.Section>getSectionsList()Contains a collection of widgets.Card.SectionOrBuildergetSectionsOrBuilder(int index)Contains a collection of widgets.java.util.List<? extends Card.SectionOrBuilder>getSectionsOrBuilderList()Contains a collection of widgets.booleanhasFixedFooter()The fixed footer shown at the bottom of this card.booleanhasHeader()The header of the card.booleanhasPeekCardHeader()When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Card.BuildermergeFixedFooter(Card.CardFixedFooter value)The fixed footer shown at the bottom of this card.Card.BuildermergeFrom(Card other)Card.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Card.BuildermergeFrom(com.google.protobuf.Message other)Card.BuildermergeHeader(Card.CardHeader value)The header of the card.Card.BuildermergePeekCardHeader(Card.CardHeader value)When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Card.BuilderremoveCardActions(int index)The card's actions.Card.BuilderremoveSections(int index)Contains a collection of widgets.Card.BuildersetCardActions(int index, Card.CardAction value)The card's actions.Card.BuildersetCardActions(int index, Card.CardAction.Builder builderForValue)The card's actions.Card.BuildersetDisplayStyle(Card.DisplayStyle value)In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.BuildersetDisplayStyleValue(int value)In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Card.BuildersetFixedFooter(Card.CardFixedFooter value)The fixed footer shown at the bottom of this card.Card.BuildersetFixedFooter(Card.CardFixedFooter.Builder builderForValue)The fixed footer shown at the bottom of this card.Card.BuildersetHeader(Card.CardHeader value)The header of the card.Card.BuildersetHeader(Card.CardHeader.Builder builderForValue)The header of the card.Card.BuildersetName(java.lang.String value)Name of the card.Card.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the card.Card.BuildersetPeekCardHeader(Card.CardHeader value)When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.BuildersetPeekCardHeader(Card.CardHeader.Builder builderForValue)When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.Card.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Card.BuildersetSectionDividerStyle(Card.DividerStyle value)The divider style between sections.Card.BuildersetSectionDividerStyleValue(int value)The divider style between sections.Card.BuildersetSections(int index, Card.Section value)Contains a collection of widgets.Card.BuildersetSections(int index, Card.Section.Builder builderForValue)Contains a collection of widgets.Card.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<Card.Builder>
-
clear
public Card.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<Card.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<Card.Builder>
-
getDefaultInstanceForType
public Card 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 Card build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Card buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Card.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<Card.Builder>
-
setField
public Card.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<Card.Builder>
-
clearField
public Card.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
clearOneof
public Card.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
setRepeatedField
public Card.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<Card.Builder>
-
addRepeatedField
public Card.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<Card.Builder>
-
mergeFrom
public Card.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Card.Builder>
-
mergeFrom
public Card.Builder mergeFrom(Card other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Card.Builder>
-
mergeFrom
public Card.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<Card.Builder>- Throws:
java.io.IOException
-
hasHeader
public boolean hasHeader()
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;- Specified by:
hasHeaderin interfaceCardOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
public Card.CardHeader getHeader()
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;- Specified by:
getHeaderin interfaceCardOrBuilder- Returns:
- The header.
-
setHeader
public Card.Builder setHeader(Card.CardHeader value)
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;
-
setHeader
public Card.Builder setHeader(Card.CardHeader.Builder builderForValue)
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;
-
mergeHeader
public Card.Builder mergeHeader(Card.CardHeader value)
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;
-
clearHeader
public Card.Builder clearHeader()
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;
-
getHeaderBuilder
public Card.CardHeader.Builder getHeaderBuilder()
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;
-
getHeaderOrBuilder
public Card.CardHeaderOrBuilder getHeaderOrBuilder()
The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card.
.google.apps.card.v1.Card.CardHeader header = 1;- Specified by:
getHeaderOrBuilderin interfaceCardOrBuilder
-
getSectionsList
public java.util.List<Card.Section> getSectionsList()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;- Specified by:
getSectionsListin interfaceCardOrBuilder
-
getSectionsCount
public int getSectionsCount()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;- Specified by:
getSectionsCountin interfaceCardOrBuilder
-
getSections
public Card.Section getSections(int index)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;- Specified by:
getSectionsin interfaceCardOrBuilder
-
setSections
public Card.Builder setSections(int index, Card.Section value)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
setSections
public Card.Builder setSections(int index, Card.Section.Builder builderForValue)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addSections
public Card.Builder addSections(Card.Section value)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addSections
public Card.Builder addSections(int index, Card.Section value)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addSections
public Card.Builder addSections(Card.Section.Builder builderForValue)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addSections
public Card.Builder addSections(int index, Card.Section.Builder builderForValue)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addAllSections
public Card.Builder addAllSections(java.lang.Iterable<? extends Card.Section> values)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
clearSections
public Card.Builder clearSections()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
removeSections
public Card.Builder removeSections(int index)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
getSectionsBuilder
public Card.Section.Builder getSectionsBuilder(int index)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
getSectionsOrBuilder
public Card.SectionOrBuilder getSectionsOrBuilder(int index)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;- Specified by:
getSectionsOrBuilderin interfaceCardOrBuilder
-
getSectionsOrBuilderList
public java.util.List<? extends Card.SectionOrBuilder> getSectionsOrBuilderList()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;- Specified by:
getSectionsOrBuilderListin interfaceCardOrBuilder
-
addSectionsBuilder
public Card.Section.Builder addSectionsBuilder()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
addSectionsBuilder
public Card.Section.Builder addSectionsBuilder(int index)
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
getSectionsBuilderList
public java.util.List<Card.Section.Builder> getSectionsBuilderList()
Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
repeated .google.apps.card.v1.Card.Section sections = 2;
-
getSectionDividerStyleValue
public int getSectionDividerStyleValue()
The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;- Specified by:
getSectionDividerStyleValuein interfaceCardOrBuilder- Returns:
- The enum numeric value on the wire for sectionDividerStyle.
-
setSectionDividerStyleValue
public Card.Builder setSectionDividerStyleValue(int value)
The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;- Parameters:
value- The enum numeric value on the wire for sectionDividerStyle to set.- Returns:
- This builder for chaining.
-
getSectionDividerStyle
public Card.DividerStyle getSectionDividerStyle()
The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;- Specified by:
getSectionDividerStylein interfaceCardOrBuilder- Returns:
- The sectionDividerStyle.
-
setSectionDividerStyle
public Card.Builder setSectionDividerStyle(Card.DividerStyle value)
The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;- Parameters:
value- The sectionDividerStyle to set.- Returns:
- This builder for chaining.
-
clearSectionDividerStyle
public Card.Builder clearSectionDividerStyle()
The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;- Returns:
- This builder for chaining.
-
getCardActionsList
public java.util.List<Card.CardAction> getCardActionsList()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;- Specified by:
getCardActionsListin interfaceCardOrBuilder
-
getCardActionsCount
public int getCardActionsCount()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;- Specified by:
getCardActionsCountin interfaceCardOrBuilder
-
getCardActions
public Card.CardAction getCardActions(int index)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;- Specified by:
getCardActionsin interfaceCardOrBuilder
-
setCardActions
public Card.Builder setCardActions(int index, Card.CardAction value)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
setCardActions
public Card.Builder setCardActions(int index, Card.CardAction.Builder builderForValue)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addCardActions
public Card.Builder addCardActions(Card.CardAction value)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addCardActions
public Card.Builder addCardActions(int index, Card.CardAction value)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addCardActions
public Card.Builder addCardActions(Card.CardAction.Builder builderForValue)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addCardActions
public Card.Builder addCardActions(int index, Card.CardAction.Builder builderForValue)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addAllCardActions
public Card.Builder addAllCardActions(java.lang.Iterable<? extends Card.CardAction> values)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
clearCardActions
public Card.Builder clearCardActions()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
removeCardActions
public Card.Builder removeCardActions(int index)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
getCardActionsBuilder
public Card.CardAction.Builder getCardActionsBuilder(int index)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
getCardActionsOrBuilder
public Card.CardActionOrBuilder getCardActionsOrBuilder(int index)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;- Specified by:
getCardActionsOrBuilderin interfaceCardOrBuilder
-
getCardActionsOrBuilderList
public java.util.List<? extends Card.CardActionOrBuilder> getCardActionsOrBuilderList()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;- Specified by:
getCardActionsOrBuilderListin interfaceCardOrBuilder
-
addCardActionsBuilder
public Card.CardAction.Builder addCardActionsBuilder()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
addCardActionsBuilder
public Card.CardAction.Builder addCardActionsBuilder(int index)
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
getCardActionsBuilderList
public java.util.List<Card.CardAction.Builder> getCardActionsBuilderList()
The card's actions. Actions are added to the card's toolbar menu. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): For example, the following JSON constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ] ```repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
-
getName
public java.lang.String getName()
Name of the card. Used as a card identifier in card navigation. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
string name = 4;- Specified by:
getNamein interfaceCardOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the card. Used as a card identifier in card navigation. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
string name = 4;- Specified by:
getNameBytesin interfaceCardOrBuilder- Returns:
- The bytes for name.
-
setName
public Card.Builder setName(java.lang.String value)
Name of the card. Used as a card identifier in card navigation. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
string name = 4;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Card.Builder clearName()
Name of the card. Used as a card identifier in card navigation. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
string name = 4;- Returns:
- This builder for chaining.
-
setNameBytes
public Card.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the card. Used as a card identifier in card navigation. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
string name = 4;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasFixedFooter
public boolean hasFixedFooter()
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;- Specified by:
hasFixedFooterin interfaceCardOrBuilder- Returns:
- Whether the fixedFooter field is set.
-
getFixedFooter
public Card.CardFixedFooter getFixedFooter()
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;- Specified by:
getFixedFooterin interfaceCardOrBuilder- Returns:
- The fixedFooter.
-
setFixedFooter
public Card.Builder setFixedFooter(Card.CardFixedFooter value)
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
-
setFixedFooter
public Card.Builder setFixedFooter(Card.CardFixedFooter.Builder builderForValue)
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
-
mergeFixedFooter
public Card.Builder mergeFixedFooter(Card.CardFixedFooter value)
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
-
clearFixedFooter
public Card.Builder clearFixedFooter()
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
-
getFixedFooterBuilder
public Card.CardFixedFooter.Builder getFixedFooterBuilder()
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
-
getFixedFooterOrBuilder
public Card.CardFixedFooterOrBuilder getFixedFooterOrBuilder()
The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;- Specified by:
getFixedFooterOrBuilderin interfaceCardOrBuilder
-
getDisplayStyleValue
public int getDisplayStyleValue()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.DisplayStyle display_style = 6;- Specified by:
getDisplayStyleValuein interfaceCardOrBuilder- Returns:
- The enum numeric value on the wire for displayStyle.
-
setDisplayStyleValue
public Card.Builder setDisplayStyleValue(int value)
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.DisplayStyle display_style = 6;- Parameters:
value- The enum numeric value on the wire for displayStyle to set.- Returns:
- This builder for chaining.
-
getDisplayStyle
public Card.DisplayStyle getDisplayStyle()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.DisplayStyle display_style = 6;- Specified by:
getDisplayStylein interfaceCardOrBuilder- Returns:
- The displayStyle.
-
setDisplayStyle
public Card.Builder setDisplayStyle(Card.DisplayStyle value)
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.DisplayStyle display_style = 6;- Parameters:
value- The displayStyle to set.- Returns:
- This builder for chaining.
-
clearDisplayStyle
public Card.Builder clearDisplayStyle()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.DisplayStyle display_style = 6;- Returns:
- This builder for chaining.
-
hasPeekCardHeader
public boolean hasPeekCardHeader()
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;- Specified by:
hasPeekCardHeaderin interfaceCardOrBuilder- Returns:
- Whether the peekCardHeader field is set.
-
getPeekCardHeader
public Card.CardHeader getPeekCardHeader()
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;- Specified by:
getPeekCardHeaderin interfaceCardOrBuilder- Returns:
- The peekCardHeader.
-
setPeekCardHeader
public Card.Builder setPeekCardHeader(Card.CardHeader value)
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;
-
setPeekCardHeader
public Card.Builder setPeekCardHeader(Card.CardHeader.Builder builderForValue)
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;
-
mergePeekCardHeader
public Card.Builder mergePeekCardHeader(Card.CardHeader value)
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;
-
clearPeekCardHeader
public Card.Builder clearPeekCardHeader()
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;
-
getPeekCardHeaderBuilder
public Card.CardHeader.Builder getPeekCardHeaderBuilder()
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;
-
getPeekCardHeaderOrBuilder
public Card.CardHeaderOrBuilder getPeekCardHeaderOrBuilder()
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card.CardHeader peek_card_header = 7;- Specified by:
getPeekCardHeaderOrBuilderin interfaceCardOrBuilder
-
setUnknownFields
public final Card.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
mergeUnknownFields
public final Card.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
-