Class ActionResponse

ActionResponse

부가기능이 카드 또는 호스트 애플리케이션에서 사용할 수 있는 작업입니다.

Google Chat을 확장하는 Google Workspace 부가기능에서 사용할 수 있습니다.

const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");

const navigation = AddOnsResponseService.newNavigation()
    .setEndNavigation(AddOnsResponseService.EndNavigation.CLOSE_DIALOG);

// An action that closes the dialog and shows a notification.
const action = AddOnsResponseService.newActionResponseBuilder()
    .setNavigation(navigation)
    .setNotification(notification)
    .build();

메서드

메서드반환 유형간략한 설명
printJson()String이 객체의 JSON 표현을 출력합니다.

자세한 문서

printJson()

이 객체의 JSON 표현을 출력합니다. 디버깅 전용입니다.

리턴

String