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.Builder
addAllCardActions(java.lang.Iterable<? extends Card.CardAction> values)
The card's actions.Card.Builder
addAllSections(java.lang.Iterable<? extends Card.Section> values)
Contains a collection of widgets.Card.Builder
addCardActions(int index, Card.CardAction value)
The card's actions.Card.Builder
addCardActions(int index, Card.CardAction.Builder builderForValue)
The card's actions.Card.Builder
addCardActions(Card.CardAction value)
The card's actions.Card.Builder
addCardActions(Card.CardAction.Builder builderForValue)
The card's actions.Card.CardAction.Builder
addCardActionsBuilder()
The card's actions.Card.CardAction.Builder
addCardActionsBuilder(int index)
The card's actions.Card.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Card.Builder
addSections(int index, Card.Section value)
Contains a collection of widgets.Card.Builder
addSections(int index, Card.Section.Builder builderForValue)
Contains a collection of widgets.Card.Builder
addSections(Card.Section value)
Contains a collection of widgets.Card.Builder
addSections(Card.Section.Builder builderForValue)
Contains a collection of widgets.Card.Section.Builder
addSectionsBuilder()
Contains a collection of widgets.Card.Section.Builder
addSectionsBuilder(int index)
Contains a collection of widgets.Card
build()
Card
buildPartial()
Card.Builder
clear()
Card.Builder
clearCardActions()
The card's actions.Card.Builder
clearDisplayStyle()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Card.Builder
clearFixedFooter()
The fixed footer shown at the bottom of this card.Card.Builder
clearHeader()
The header of the card.Card.Builder
clearName()
Name of the card.Card.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.Card.Builder
clearSectionDividerStyle()
The divider style between sections.Card.Builder
clearSections()
Contains a collection of widgets.Card.Builder
clone()
Card.CardAction
getCardActions(int index)
The card's actions.Card.CardAction.Builder
getCardActionsBuilder(int index)
The card's actions.java.util.List<Card.CardAction.Builder>
getCardActionsBuilderList()
The card's actions.int
getCardActionsCount()
The card's actions.java.util.List<Card.CardAction>
getCardActionsList()
The card's actions.Card.CardActionOrBuilder
getCardActionsOrBuilder(int index)
The card's actions.java.util.List<? extends Card.CardActionOrBuilder>
getCardActionsOrBuilderList()
The card's actions.Card
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Card.DisplayStyle
getDisplayStyle()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.int
getDisplayStyleValue()
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.CardFixedFooter
getFixedFooter()
The fixed footer shown at the bottom of this card.Card.CardFixedFooter.Builder
getFixedFooterBuilder()
The fixed footer shown at the bottom of this card.Card.CardFixedFooterOrBuilder
getFixedFooterOrBuilder()
The fixed footer shown at the bottom of this card.Card.CardHeader
getHeader()
The header of the card.Card.CardHeader.Builder
getHeaderBuilder()
The header of the card.Card.CardHeaderOrBuilder
getHeaderOrBuilder()
The header of the card.java.lang.String
getName()
Name of the card.com.google.protobuf.ByteString
getNameBytes()
Name of the card.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.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.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.Card.DividerStyle
getSectionDividerStyle()
The divider style between sections.int
getSectionDividerStyleValue()
The divider style between sections.Card.Section
getSections(int index)
Contains a collection of widgets.Card.Section.Builder
getSectionsBuilder(int index)
Contains a collection of widgets.java.util.List<Card.Section.Builder>
getSectionsBuilderList()
Contains a collection of widgets.int
getSectionsCount()
Contains a collection of widgets.java.util.List<Card.Section>
getSectionsList()
Contains a collection of widgets.Card.SectionOrBuilder
getSectionsOrBuilder(int index)
Contains a collection of widgets.java.util.List<? extends Card.SectionOrBuilder>
getSectionsOrBuilderList()
Contains a collection of widgets.boolean
hasFixedFooter()
The fixed footer shown at the bottom of this card.boolean
hasHeader()
The header of the card.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Card.Builder
mergeFixedFooter(Card.CardFixedFooter value)
The fixed footer shown at the bottom of this card.Card.Builder
mergeFrom(Card other)
Card.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Card.Builder
mergeFrom(com.google.protobuf.Message other)
Card.Builder
mergeHeader(Card.CardHeader value)
The header of the card.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.Card.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Card.Builder
removeCardActions(int index)
The card's actions.Card.Builder
removeSections(int index)
Contains a collection of widgets.Card.Builder
setCardActions(int index, Card.CardAction value)
The card's actions.Card.Builder
setCardActions(int index, Card.CardAction.Builder builderForValue)
The card's actions.Card.Builder
setDisplayStyle(Card.DisplayStyle value)
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.Builder
setDisplayStyleValue(int value)
In Google Workspace Add-ons, sets the display properties of the `peekCardHeader`.Card.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Card.Builder
setFixedFooter(Card.CardFixedFooter value)
The fixed footer shown at the bottom of this card.Card.Builder
setFixedFooter(Card.CardFixedFooter.Builder builderForValue)
The fixed footer shown at the bottom of this card.Card.Builder
setHeader(Card.CardHeader value)
The header of the card.Card.Builder
setHeader(Card.CardHeader.Builder builderForValue)
The header of the card.Card.Builder
setName(java.lang.String value)
Name of the card.Card.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the card.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.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.Card.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Card.Builder
setSectionDividerStyle(Card.DividerStyle value)
The divider style between sections.Card.Builder
setSectionDividerStyleValue(int value)
The divider style between sections.Card.Builder
setSections(int index, Card.Section value)
Contains a collection of widgets.Card.Builder
setSections(int index, Card.Section.Builder builderForValue)
Contains a collection of widgets.Card.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
clear
public Card.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Card.Builder>
-
getDefaultInstanceForType
public Card getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Card build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Card buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Card.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
setField
public Card.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
clearField
public Card.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
clearOneof
public Card.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
setRepeatedField
public Card.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
addRepeatedField
public Card.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
mergeFrom
public Card.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Card.Builder>
-
mergeFrom
public Card.Builder mergeFrom(Card other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Card.Builder>
-
mergeFrom
public Card.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<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:
hasHeader
in 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:
getHeader
in 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:
getHeaderOrBuilder
in 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:
getSectionsList
in 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:
getSectionsCount
in 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:
getSections
in 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:
getSectionsOrBuilder
in 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:
getSectionsOrBuilderList
in 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:
getSectionDividerStyleValue
in 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:
getSectionDividerStyle
in 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:
getCardActionsList
in 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:
getCardActionsCount
in 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:
getCardActions
in 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:
getCardActionsOrBuilder
in 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:
getCardActionsOrBuilderList
in 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:
getName
in 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:
getNameBytes
in 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:
hasFixedFooter
in 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:
getFixedFooter
in 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:
getFixedFooterOrBuilder
in 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:
getDisplayStyleValue
in 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:
getDisplayStyle
in 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:
hasPeekCardHeader
in 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:
getPeekCardHeader
in 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:
getPeekCardHeaderOrBuilder
in interfaceCardOrBuilder
-
setUnknownFields
public final Card.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
mergeUnknownFields
public final Card.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
-
-