Class CardService

כרטיסשירות

‫CardService מאפשר ליצור כרטיסים גנריים שמשמשים במוצרים שונים של Google עם יכולות הרחבה, כמו תוספים ל-Google Workspace.

בהמשך מופיעה דוגמה לכרטיס של תוספים.

function createCard() {
  return CardService.newCardBuilder()
      .setHeader(CardService.newCardHeader().setTitle('CardTitle'))
      .build();
}

אפשר גם להחזיר כמה כרטיסים, כך:

function createCards() {
  return [
    CardService.newCardBuilder().build(),
    CardService.newCardBuilder().build(),
    CardService.newCardBuilder().build(),
  ];
}

בדוגמה הבאה מוצג איך אפשר להגדיר כרטיס עם כותרת, טקסט, תמונה ופריט בתפריט:

function createWidgetDemoCard() {
  return CardService.newCardBuilder()
      .setHeader(
          CardService.newCardHeader()
              .setTitle('Widget demonstration')
              .setSubtitle('Check out these widgets')
              .setImageStyle(CardService.ImageStyle.SQUARE)
              .setImageUrl('https://www.example.com/images/headerImage.png'),
          )
      .addSection(
          CardService.newCardSection()
              .setHeader('Simple widgets')  // optional
              .addWidget(
                  CardService.newTextParagraph().setText(
                      'These widgets are display-only. ' +
                          'A text paragraph can have multiple lines and ' +
                          'formatting.',
                      ),
                  )
              .addWidget(
                  CardService.newImage().setImageUrl(
                      'https://www.example.com/images/mapsImage.png',
                      ),
                  ),
          )
      .addCardAction(
          CardService.newCardAction().setText('Gmail').setOpenLink(
              CardService.newOpenLink().setUrl('https://mail.google.com/mail'),
              ),
          )
      .build();
}

דוגמה לכרטיס של אפליקציות ל-Chat.

const cardHeader =
    CardService.newCardHeader()
        .setTitle('Sasha')
        .setSubtitle('Software Engineer')
        .setImageUrl(
            'https://developers.google.com/chat/images/quickstart-app-avatar.png',
            )
        .setImageStyle(CardService.ImageStyle.CIRCLE)
        .setImageAltText('Avatar for Sasha');

const cardSection =
    CardService.newCardSection()
        .setHeader('Contact Info')
        .setCollapsible(true)
        .setNumUncollapsibleWidgets(1)
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.EMAIL))
                .setText('sasha@example.com'),
            )
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.PERSON))
                .setText('<font color="#80e27e">Online</font>'),
            )
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.PHONE))
                .setText('+1 (555) 555-1234'),
            )
        .addWidget(
            CardService.newButtonSet()
                .addButton(
                    CardService.newTextButton().setText('Share').setOpenLink(
                        CardService.newOpenLink().setUrl(
                            'https://example.com/share'),
                        ),
                    )
                .addButton(
                    CardService.newTextButton()
                        .setText('Edit')
                        .setOnClickAction(
                            CardService.newAction()
                                .setFunctionName('goToView')
                                .setParameters({viewType: 'EDIT'}),
                            ),
                    ),
        );

const card = CardService.newCardBuilder()
                 .setHeader(cardHeader)
                 .addSection(cardSection)
                 .build();

מאפיינים

נכססוגתיאור
BorderTypeBorderTypeהספירה BorderType.
ChipListLayoutChipListLayoutהספירה ChipListLayout.
ComposedEmailTypeComposedEmailTypeהספירה ComposedEmailType.
ContentTypeContentTypeהספירה ContentType.
ExpressionDataActionTypeExpressionDataActionTypeהספירה ExpressionDataActionType.
ExpressionDataConditionTypeExpressionDataConditionTypeהספירה ExpressionDataConditionType.
GridItemLayoutGridItemLayoutהספירה GridItemLayout.
HorizontalAlignmentHorizontalAlignmentהספירה HorizontalAlignment.
IconIconהספירה Icon.
ImageButtonStyleImageButtonStyleהספירה ImageButtonStyle.
ImageCropTypeImageCropTypeהספירה ImageCropType.
ImageStyleImageStyleהספירה ImageStyle.
InputTypeInputTypeהספירה InputType.
LoadIndicatorLoadIndicatorהספירה LoadIndicator.
OnCloseOnCloseהספירה OnClose.
OpenAsOpenAsהספירה OpenAs.
SelectionInputTypeSelectionInputTypeהספירה SelectionInputType.
TextButtonStyleTextButtonStyleהספירה TextButtonStyle.
UpdateDraftBodyTypeUpdateDraftBodyTypeהספירה UpdateDraftBodyType.
VisibilityVisibilityהספירה Visibility.
WorkflowDataSourceTypeWorkflowDataSourceTypeהספירה WorkflowDataSourceType.

Methods

שיטהסוג הערך שמוחזרתיאור קצר
newAction()Actionיוצר Action חדש.
newActionResponseBuilder()ActionResponseBuilderיוצר ActionResponseBuilder חדש.
newActionStatus()ActionStatusיוצר ActionStatus חדש.
newAttachment()Attachmentיוצר Attachment חדש.
newAuthorizationAction()AuthorizationActionיוצר AuthorizationAction חדש.
newAuthorizationException()AuthorizationExceptionיוצר AuthorizationException חדש.
newBorderStyle()BorderStyleיוצר BorderStyle חדש.
newButtonSet()ButtonSetיוצר ButtonSet חדש.
newCalendarEventActionResponseBuilder()CalendarEventActionResponseBuilderיוצר CalendarEventActionResponseBuilder חדש.
newCardAction()CardActionיוצר CardAction חדש.
newCardBuilder()CardBuilderיצירת כלי חדש ליצירת כרטיסים.
newCardHeader()CardHeaderיוצר CardHeader חדש.
newCardSection()CardSectionיוצר CardSection חדש.
newCardWithId()CardWithIdיוצר CardWithId חדש.
newCarousel()Carouselיוצר Carousel.
newCarouselCard()CarouselCardיוצר CarouselCard חדש.
newChatActionResponse()ChatActionResponseיוצר ChatActionResponse חדש.
newChatResponseBuilder()ChatResponseBuilderיוצר ChatResponseBuilder חדש.
newChip()Chipיוצר Chip חדש.
newChipList()ChipListיוצר ChipList חדש.
newCollapseControl()CollapseControlיוצר CollapseControl חדש.
newColumn()Columnיוצר Column חדש.
newColumns()Columnsיוצר קבוצה חדשה של Columns.
newComposeActionResponseBuilder()ComposeActionResponseBuilderיוצר ComposeActionResponseBuilder חדש.
newDatePicker()DatePickerיוצר DatePicker חדש.
newDateTimePicker()DateTimePickerיוצר DateTimePicker חדש.
newDecoratedText()DecoratedTextיוצר DecoratedText חדש.
newDialog()Dialogיוצר Dialog חדש.
newDialogAction()DialogActionיוצר DialogAction חדש.
newDivider()Dividerיוצר Divider חדש.
newDriveItemsSelectedActionResponseBuilder()DriveItemsSelectedActionResponseBuilderיוצר DriveItemsSelectedActionResponseBuilder חדש.
newEditorFileScopeActionResponseBuilder()EditorFileScopeActionResponseBuilderיוצר EditorFileScopeActionResponseBuilder חדש.
newFixedFooter()FixedFooterיוצר FixedFooter חדש.
newGrid()Gridיוצר Grid חדש.
newGridItem()GridItemיוצר GridItem חדש.
newHostAppDataSource()HostAppDataSourceיוצר HostAppDataSource חדש ומחזיר HostAppDataSource ריק.
newIconImage()IconImageיוצר IconImage חדש.
newImage()Imageיוצר Image חדש.
newImageButton()ImageButtonיוצר ImageButton חדש.
newImageComponent()ImageComponentיוצר ImageComponent חדש.
newImageCropStyle()ImageCropStyleיוצר ImageCropStyle חדש.
newKeyValue()KeyValueיוצר KeyValue חדש.
newLinkPreview()LinkPreviewיוצר LinkPreview חדש.
newMaterialIcon()MaterialIconיוצר MaterialIcon חדש.
newNavigation()Navigationיוצר Navigation חדש.
newNotification()Notificationיוצר Notification חדש.
newOpenLink()OpenLinkיוצר OpenLink חדש.
newOverflowMenu()OverflowMenuיוצר OverflowMenu חדש.
newOverflowMenuItem()OverflowMenuItemיוצר OverflowMenuItem חדש.
newSelectionInput()SelectionInputיוצר SelectionInput חדש.
newSuggestions()Suggestionsיוצר Suggestions חדש.
newSuggestionsResponseBuilder()SuggestionsResponseBuilderיוצר SuggestionsResponseBuilder חדש.
newSwitch()Switchיוצר Switch חדש.
newTextButton()TextButtonיוצר TextButton חדש.
newTextInput()TextInputיוצר TextInput חדש.
newTextParagraph()TextParagraphיוצר TextParagraph חדש.
newTimePicker()TimePickerיוצר TimePicker חדש.
newUniversalActionResponseBuilder()UniversalActionResponseBuilderיוצר UniversalActionResponseBuilder חדש.
newUpdateDraftActionResponseBuilder()UpdateDraftActionResponseBuilderיוצר UpdateDraftActionResponseBuilder חדש.
newUpdateDraftBccRecipientsAction()UpdateDraftBccRecipientsActionיוצר UpdateDraftBccRecipientsAction חדש.
newUpdateDraftBodyAction()UpdateDraftBodyActionיוצר UpdateDraftBodyAction חדש.
newUpdateDraftCcRecipientsAction()UpdateDraftCcRecipientsActionיוצר UpdateDraftCcRecipientsAction חדש.
newUpdateDraftSubjectAction()UpdateDraftSubjectActionיוצר UpdateDraftSubjectAction חדש.
newUpdateDraftToRecipientsAction()UpdateDraftToRecipientsActionיוצר UpdateDraftToRecipientsAction חדש.
newValidation()Validationיוצר Validation חדש.

תיעוד מפורט

newAction()

יוצר Action חדש.

חזרה

Action — פעולה ריקה.


newActionResponseBuilder()

יוצר ActionResponseBuilder חדש.

חזרה

ActionResponseBuilder — כלי ריק ליצירת ActionResponse.


newActionStatus()

יוצר ActionStatus חדש.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const actionStatus = CardService.newActionStatus()
                         .setStatusCode(CardService.Status.OK)
                         .setUserFacingMessage('Success');

חזרה

ActionStatus – ActionStatus ריק.


newAttachment()

יוצר Attachment חדש.

חזרה

Attachment — קובץ מצורף ריק.


newAuthorizationAction()

יוצר AuthorizationAction חדש.

חזרה

AuthorizationAction – פעולת הרשאה ריקה.


newAuthorizationException()

יוצר AuthorizationException חדש.

חזרה

AuthorizationException – AuthorizationException ריק.


newBorderStyle()

יוצר BorderStyle חדש.

חזרה

BorderStyle — BorderStyle ריק.


newButtonSet()

יוצר ButtonSet חדש.

חזרה

ButtonSet — ButtonSet ריק.


newCalendarEventActionResponseBuilder()


newCardAction()

יוצר CardAction חדש.

חזרה

CardAction — CardAction ריק.


newCardBuilder()

יצירת כלי חדש ליצירת כרטיסים.

חזרה

CardBuilder – כלי ריק ליצירת כרטיסים.


newCardHeader()

יוצר CardHeader חדש.

חזרה

CardHeader — רכיב CardHeader ריק.


newCardSection()

יוצר CardSection חדש.

חזרה

CardSection — CardSection ריק.


newCardWithId()

יוצר CardWithId חדש. הפרמטר הזה משמש לשליחת כרטיס בהודעה ב-Google Chat. מזהה הכרטיס הוא מזהה ייחודי של כרטיס בהודעה כששולחים כמה כרטיסים.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newTextParagraph().setText('This is a text paragraph widget.'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .addSection(cardSection)
                 .build();

const cardWithId =
    CardService.newCardWithId().setCardId('card_id').setCard(card);

חזרה

CardWithIdCardWithId ריק.


newCarousel()

יוצר Carousel.

const carousel =
    CardService.newCarousel()
        .addCarouselCard(CardService.newCarouselCard().addWidget(
            CardService.newTextParagraph().setText('The first text paragraph in carousel')))
        .addCarouselCard(CardService.newCarouselCard().addWidget(
            CardService.newTextParagraph().setText('The second text paragraph in carousel')))
        .addCarouselCard(CardService.newCarouselCard().addWidget(
            CardService.newTextParagraph().setText('The third text paragraph in carousel')))

חזרה

Carousel – קרוסלה ריקה.


newCarouselCard()

יוצר CarouselCard חדש.

const carouselCard = CardService.newCarouselCard().addWidget(
    CardService.newTextParagraph().setText('Text paragraph in carousel'));

חזרה

CarouselCard – צ'יפ ריק.


newChatActionResponse()

יוצר ChatActionResponse חדש.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();
const dialog = CardService.newDialog().setBody(card);

const dialogAction = CardService.newDialogAction().setDialog(dialog);

const chatActionResponse = CardService.newChatActionResponse()
                               .setResponseType(CardService.ResponseType.DIALOG)
                               .setDialogAction(dialogAction);

חזרה

ChatActionResponseChatActionResponse ריק.


newChatResponseBuilder()

יוצר ChatResponseBuilder חדש.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newTextParagraph().setText('This is a text paragraph widget.'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .addSection(cardSection)
                 .build();

const cardWithId =
    CardService.newCardWithId().setCardId('card_id').setCard(card);

const chatResponse =
    CardService.newChatResponseBuilder().addCardsV2(cardWithId).build();

חזרה

ChatResponseBuilder — ChatResponseBuilder ריק.


newChip()

יוצר Chip חדש.

זמין באפליקציות שפועלות עם Google Chat. בתצוגה מקדימה למפתחים של תוספים ל-Google Workspace.

const chip = CardService.newChip()
                 .setLabel('Open Link')
                 .setOpenLink(CardService.newOpenLink().setUrl(
                     'https://www.google.com'));

חזרה

Chip – צ'יפ ריק.


newChipList()

יוצר ChipList חדש.

זמין באפליקציות שפועלות עם Google Chat. בתצוגה מקדימה למפתחים של תוספים ל-Google Workspace.

const chip = CardService.newChip();
// Finish building the text chip...

const chipList = CardService.newChipList()
                     .setLayout(CardService.ChipListLayout.WRAPPED)
                     .addChip(chip);

חזרה

ChipList — ChipList ריק.


newCollapseControl()

יוצר CollapseControl חדש.

זמין באפליקציות שפועלות עם Google Chat. בתצוגה מקדימה למפתחים של תוספים ל-Google Workspace.

const collapseControl =
    CardService.newCollapseControl()
        .setHorizontalAlign(CardService.HorizontalAlignment.START)
        .setExpandButton(CardService.newTextButton().setText('Expand'))
        .setCollapseButton(CardService.newTextButton().setText('Collapse'));

חזרה

CollapseControl — רכיב CollapseControl ריק.


newColumn()

יוצר Column חדש.

זמין לאפליקציות של Google Chat ולתוספים ל-Google Workspace.

const columnWidget = CardService.newTextParagraph();
const column =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER)
        .addWidget(columnWidget);

חזרה

Column – עמודה ריקה.


newColumns()

יוצר קבוצה חדשה של Columns.

זמין לאפליקציות של Google Chat ולתוספים ל-Google Workspace.

const firstColumn =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER);
const secondColumn =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER);
const columns = CardService.newColumns()
                    .addColumn(firstColumn)
                    .addColumn(secondColumn)
                    .setWrapStyle(CardService.WrapStyle.WRAP);

חזרה

Columns – קבוצה ריקה של עמודות.


newComposeActionResponseBuilder()

יוצר ComposeActionResponseBuilder חדש.

חזרה

ComposeActionResponseBuilder — בונה של ComposeActionResponse ריק.


newDatePicker()

יוצר DatePicker חדש.

חזרה

DatePicker — רכיב DatePicker ריק.


newDateTimePicker()

יוצר DateTimePicker חדש.

חזרה

DateTimePicker — An empty DateTimePicker.


newDecoratedText()

יוצר DecoratedText חדש.

חזרה

DecoratedText — רכיב DecoratedText ריק.


newDialog()

יוצר Dialog חדש.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();

// Sets the card of the dialog.
const dialog = CardService.newDialog().setBody(card);

חזרה

DialogDialog ריק.


newDialogAction()

יוצר DialogAction חדש.

האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();
const dialog = CardService.newDialog().setBody(card);

const dialogAction = CardService.newDialogAction().setDialog(dialog);

חזרה

DialogActionDialogAction ריק.


newDivider()

יוצר Divider חדש. בדוגמה הבאה מוצג כרטיס פשוט עם 2 פסקאות שמופרדות על ידי קו.

function buildCard() {
  const cardSection1TextParagraph1 =
      CardService.newTextParagraph().setText('Hello world!');

  const cardSection1Divider1 = CardService.newDivider();

  const cardSection1TextParagraph2 =
      CardService.newTextParagraph().setText('Hello world!');

  const cardSection1 = CardService.newCardSection()
                           .addWidget(cardSection1TextParagraph1)
                           .addWidget(cardSection1Divider1)
                           .addWidget(cardSection1TextParagraph2);

  const card = CardService.newCardBuilder().addSection(cardSection1).build();

  return card;
}

חזרה

Divider — קו מפריד.


newDriveItemsSelectedActionResponseBuilder()


newEditorFileScopeActionResponseBuilder()


newFixedFooter()

יוצר FixedFooter חדש.

חזרה

FixedFooter – רכיב FixedFooter ריק.


newGrid()

יוצר Grid חדש.

חזרה

Grid – רשת ריקה.


newGridItem()

יוצר GridItem חדש.

חזרה

GridItem — רכיב GridItem ריק.


newHostAppDataSource()

יוצר HostAppDataSource חדש ומחזיר HostAppDataSource ריק.

חזרה

HostAppDataSource


newIconImage()

יוצר IconImage חדש.

חזרה

IconImage — תמונה של סמל ריק.


newImage()

יוצר Image חדש.

חזרה

Image — תמונה ריקה.


newImageButton()

יוצר ImageButton חדש.

חזרה

ImageButton — ImageButton ריק.


newImageComponent()

יוצר ImageComponent חדש.

חזרה

ImageComponent – רכיב ImageComponent ריק.


newImageCropStyle()

יוצר ImageCropStyle חדש.

חזרה

ImageCropStyle – ImageCropStyle ריק.


newKeyValue()

יוצר KeyValue חדש.

חזרה

KeyValue – KeyValue ריק.


newLinkPreview()

יוצר LinkPreview חדש.

const decoratedText =
    CardService.newDecoratedText().setTopLabel('Hello').setText('Hi!');

const cardSection = CardService.newCardSection().addWidget(decoratedText);

const card = CardService.newCardBuilder().addSection(cardSection).build();

const linkPreview = CardService.newLinkPreview().setPreviewCard(card).setTitle(
    'Smart chip title');

חזרה

LinkPreview – תצוגה מקדימה ריקה של קישור.


newMaterialIcon()

יוצר MaterialIcon חדש.

זמין לאפליקציות של Google Chat ולתוספים ל-Google Workspace.

const materialIcon =
    CardService.newMaterialIcon().setName('check_box').setFill(true);

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newDecoratedText()
        .setStartIcon(CardService.newIconImage().setMaterialIcon(materialIcon))
        .setText('sasha@example.com'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card Title'))
                 .addSection(cardSection)
                 .build();

חזרה

MaterialIcon — MaterialIcon ריק.


newNavigation()

יוצר Navigation חדש.

חזרה

Navigation — רכיב Navigation ריק.


newNotification()

יוצר Notification חדש.

חזרה

Notification – התראה ריקה.


יוצר OpenLink חדש.

חזרה

OpenLink — קישור OpenLink ריק.


newOverflowMenu()

יוצר OverflowMenu חדש.

זמין באפליקציות שפועלות עם Google Chat. בתצוגה מקדימה למפתחים של תוספים ל-Google Workspace.

const overflowMenuItem = CardService.newOverflowMenuItem();
// Finish building the overflow menu item...

const overflowMenu =
    CardService.newOverflowMenu().addMenuItem(overflowMenuItem);

חזרה

OverflowMenu – רכיב OverflowMenu ריק.


newOverflowMenuItem()

יוצר OverflowMenuItem חדש.

זמין באפליקציות שפועלות עם Google Chat. בתצוגה מקדימה למפתחים של תוספים ל-Google Workspace.

const overflowMenuItem =
    CardService.newOverflowMenuItem()
        .setStartIcon(
            CardService.newIconImage().setIconUrl(
                'https://www.google.com/images/branding/googleg/1x/googleg_standard_color_64dp.png',
                ),
            )
        .setText('Open Link')
        .setOpenLink(
            CardService.newOpenLink().setUrl('https://www.google.com'));

חזרה

OverflowMenuItem – פריט ריק בתפריט האפשרויות הנוספות.


newSelectionInput()

יוצר SelectionInput חדש.

חזרה

SelectionInput – רכיב SelectionInput ריק.


newSuggestions()

יוצר Suggestions חדש.

חזרה

Suggestions — הצעות ריקות.


newSuggestionsResponseBuilder()

יוצר SuggestionsResponseBuilder חדש.

חזרה

SuggestionsResponseBuilder — An empty SuggestionsResponse builder.


newSwitch()

יוצר Switch חדש.

חזרה

Switch — קונסולת Switch ריקה.


newTextButton()

יוצר TextButton חדש.

חזרה

TextButton – רכיב TextButton ריק.


newTextInput()

יוצר TextInput חדש.

חזרה

TextInput — רכיב TextInput ריק.


newTextParagraph()

יוצר TextParagraph חדש.

חזרה

TextParagraph — פסקה ריקה.


newTimePicker()

יוצר TimePicker חדש.

חזרה

TimePicker — רכיב TimePicker ריק.


newUniversalActionResponseBuilder()

יוצר UniversalActionResponseBuilder חדש.

חזרה

UniversalActionResponseBuilder — builder ריק של UniversalActionResponse.


newUpdateDraftActionResponseBuilder()

יוצר UpdateDraftActionResponseBuilder חדש.

חזרה

UpdateDraftActionResponseBuilder — UpdateDraftActionResponseBuilder ריק.


newUpdateDraftBccRecipientsAction()

יוצר UpdateDraftBccRecipientsAction חדש.

חזרה

UpdateDraftBccRecipientsAction — פעולה ריקה של UpdateDraftBccRecipientsAction.


newUpdateDraftBodyAction()

יוצר UpdateDraftBodyAction חדש.

חזרה

UpdateDraftBodyAction – פעולה ריקה של UpdateDraftBodyAction.


newUpdateDraftCcRecipientsAction()

יוצר UpdateDraftCcRecipientsAction חדש.

חזרה

UpdateDraftCcRecipientsAction — An Empty UpdateDraftCcRecipientsAction.


newUpdateDraftSubjectAction()

יוצר UpdateDraftSubjectAction חדש.

חזרה

UpdateDraftSubjectAction — פעולה ריקה של UpdateDraftSubjectAction.


newUpdateDraftToRecipientsAction()

יוצר UpdateDraftToRecipientsAction חדש.

חזרה

UpdateDraftToRecipientsAction – פעולה ריקה של UpdateDraftToRecipientsAction.


newValidation()

יוצר Validation חדש.

זמין לאפליקציות של Google Chat ולתוספים ל-Google Workspace.

const validation =
    CardService.newValidation().setCharacterLimit(5).setInputType(
        CardService.InputType.EMAIL);

חזרה

Validation — אימות ריק.