- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public interface CardOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCardActions(int index)
public abstract Card.CardAction getCardActions(int index)The card's actions. Actions are added to the card's toolbar menu.
For example, the following JSON constructs a card action menu with
Settings and Send Feedback options:
<code><code>
"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"
}
}
}
]
</code></code>
repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Card.CardAction |
|
getCardActionsCount()
public abstract int getCardActionsCount()The card's actions. Actions are added to the card's toolbar menu.
For example, the following JSON constructs a card action menu with
Settings and Send Feedback options:
<code><code>
"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"
}
}
}
]
</code></code>
repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCardActionsList()
public abstract List<Card.CardAction> getCardActionsList()The card's actions. Actions are added to the card's toolbar menu.
For example, the following JSON constructs a card action menu with
Settings and Send Feedback options:
<code><code>
"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"
}
}
}
]
</code></code>
repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
| Returns | |
|---|---|
| Type | Description |
List<CardAction> |
|
getCardActionsOrBuilder(int index)
public abstract Card.CardActionOrBuilder getCardActionsOrBuilder(int index)The card's actions. Actions are added to the card's toolbar menu.
For example, the following JSON constructs a card action menu with
Settings and Send Feedback options:
<code><code>
"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"
}
}
}
]
</code></code>
repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Card.CardActionOrBuilder |
|
getCardActionsOrBuilderList()
public abstract List<? extends Card.CardActionOrBuilder> getCardActionsOrBuilderList()The card's actions. Actions are added to the card's toolbar menu.
For example, the following JSON constructs a card action menu with
Settings and Send Feedback options:
<code><code>
"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"
}
}
}
]
</code></code>
repeated .google.apps.card.v1.Card.CardAction card_actions = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.apps.card.v1.Card.CardActionOrBuilder> |
|
getDisplayStyle()
public abstract Card.DisplayStyle getDisplayStyle() In Google Workspace Add-ons, sets the display properties of the
peekCardHeader.
.google.apps.card.v1.Card.DisplayStyle display_style = 6;
| Returns | |
|---|---|
| Type | Description |
Card.DisplayStyle |
The displayStyle. |
getDisplayStyleValue()
public abstract int getDisplayStyleValue() In Google Workspace Add-ons, sets the display properties of the
peekCardHeader.
.google.apps.card.v1.Card.DisplayStyle display_style = 6;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for displayStyle. |
getFixedFooter()
public abstract 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, but not
card
messages.
Google Workspace Add-ons and Chat apps:
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
| Returns | |
|---|---|
| Type | Description |
Card.CardFixedFooter |
The fixedFooter. |
getFixedFooterOrBuilder()
public abstract 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, but not
card
messages.
Google Workspace Add-ons and Chat apps:
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
| Returns | |
|---|---|
| Type | Description |
Card.CardFixedFooterOrBuilder |
|
getHeader()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
Card.CardHeader |
The header. |
getHeaderOrBuilder()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
Card.CardHeaderOrBuilder |
|
getName()
public abstract String getName()Name of the card. Used as a card identifier in card navigation.
string name = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()Name of the card. Used as a card identifier in card navigation.
string name = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPeekCardHeader()
public abstract 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.apps.card.v1.Card.CardHeader peek_card_header = 7;
| Returns | |
|---|---|
| Type | Description |
Card.CardHeader |
The peekCardHeader. |
getPeekCardHeaderOrBuilder()
public abstract 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.apps.card.v1.Card.CardHeader peek_card_header = 7;
| Returns | |
|---|---|
| Type | Description |
Card.CardHeaderOrBuilder |
|
getSectionDividerStyle()
public abstract Card.DividerStyle getSectionDividerStyle()The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;
| Returns | |
|---|---|
| Type | Description |
Card.DividerStyle |
The sectionDividerStyle. |
getSectionDividerStyleValue()
public abstract int getSectionDividerStyleValue()The divider style between sections.
.google.apps.card.v1.Card.DividerStyle section_divider_style = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sectionDividerStyle. |
getSections(int index)
public abstract 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.
repeated .google.apps.card.v1.Card.Section sections = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Card.Section |
|
getSectionsCount()
public abstract 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.
repeated .google.apps.card.v1.Card.Section sections = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSectionsList()
public abstract 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.
repeated .google.apps.card.v1.Card.Section sections = 2;
| Returns | |
|---|---|
| Type | Description |
List<Section> |
|
getSectionsOrBuilder(int index)
public abstract 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.
repeated .google.apps.card.v1.Card.Section sections = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Card.SectionOrBuilder |
|
getSectionsOrBuilderList()
public abstract 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.
repeated .google.apps.card.v1.Card.Section sections = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.apps.card.v1.Card.SectionOrBuilder> |
|
hasFixedFooter()
public abstract 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, but not
card
messages.
Google Workspace Add-ons and Chat apps:
.google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fixedFooter field is set. |
hasHeader()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the header field is set. |
hasPeekCardHeader()
public abstract 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.apps.card.v1.Card.CardHeader peek_card_header = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the peekCardHeader field is set. |