Class Card.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Card.Builder>
com.google.protobuf.GeneratedMessage.Builder<Card.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Card.Builder>
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, 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**

 ![Example contact
 card](https://developers.google.com/workspace/chat/images/card_api_reference.png)

 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 type google.apps.card.v1.Card
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • clear

      public Card.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Card.Builder>
    • getDefaultInstanceForType

      public Card getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Card build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Card buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Card.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • setField

      public Card.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • clearField

      public Card.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • clearOneof

      public Card.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • setRepeatedField

      public Card.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • addRepeatedField

      public Card.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • mergeFrom

      public Card.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Card.Builder>
    • mergeFrom

      public Card.Builder mergeFrom(Card other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Card.Builder>
      Throws:
      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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 interface CardOrBuilder
    • getSectionsList

      public 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 interface CardOrBuilder
    • 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 interface CardOrBuilder
    • 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 interface CardOrBuilder
    • 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(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 interface CardOrBuilder
    • getSectionsOrBuilderList

      public 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 interface CardOrBuilder
    • 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 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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 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 interface CardOrBuilder
    • 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 interface CardOrBuilder
    • 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 interface CardOrBuilder
    • 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(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 interface CardOrBuilder
    • getCardActionsOrBuilderList

      public 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 interface CardOrBuilder
    • 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 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 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 interface CardOrBuilder
      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 interface CardOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Card.Builder setName(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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 interface CardOrBuilder
    • 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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 interface CardOrBuilder
      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 interface CardOrBuilder
    • setUnknownFields

      public final Card.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>
    • mergeUnknownFields

      public final Card.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Card.Builder>