شاخص
-
ChatService
(رابط) -
AccessoryWidget
(پیام) -
ActionResponse
(پیام) -
ActionResponse.ResponseType
(enum) -
ActionResponse.SelectionItems
(پیام) -
ActionResponse.UpdatedWidget
(پیام) -
ActionStatus
(پیام) -
Annotation
(پیام) -
AnnotationType
(enum) -
AppCommandMetadata
(پیام) -
AppCommandMetadata.AppCommandType
(enum) -
AttachedGif
(پیام) -
Attachment
(پیام) -
Attachment.Source
(تعدادی) -
AttachmentDataRef
(پیام) -
CalendarEventLinkData
(پیام) -
CardWithId
(پیام) -
ChatSpaceLinkData
(پیام) -
CompleteImportSpaceRequest
(پیام) -
CompleteImportSpaceResponse
(پیام) -
ContextualAddOnMarkup
(پیام) -
ContextualAddOnMarkup.Card
(پیام) -
ContextualAddOnMarkup.Card.CardAction
(پیام) -
ContextualAddOnMarkup.Card.CardHeader
(پیام) -
ContextualAddOnMarkup.Card.CardHeader.ImageStyle
(enum) -
ContextualAddOnMarkup.Card.Section
(پیام) -
CreateCustomEmojiRequest
(پیام) -
CreateMembershipRequest
(پیام) -
CreateMessageRequest
(پیام) -
CreateMessageRequest.MessageReplyOption
(enum) -
CreateReactionRequest
(پیام) -
CreateSpaceRequest
(پیام) -
CustomEmoji
(پیام) -
CustomEmoji.CustomEmojiPayload
(پیام) -
CustomEmojiMetadata
(پیام) -
DeleteCustomEmojiRequest
(پیام) -
DeleteMembershipRequest
(پیام) -
DeleteMessageRequest
(پیام) -
DeleteReactionRequest
(پیام) -
DeleteSpaceRequest
(پیام) -
DeletionMetadata
(پیام) -
DeletionMetadata.DeletionType
(enum) -
Dialog
(پیام) -
DialogAction
(پیام) -
DriveDataRef
(پیام) -
DriveLinkData
(پیام) -
Emoji
(پیام) -
EmojiReactionSummary
(پیام) -
FindDirectMessageRequest
(پیام) -
GetAttachmentRequest
(پیام) -
GetCustomEmojiRequest
(پیام) -
GetMembershipRequest
(پیام) -
GetMessageRequest
(پیام) -
GetSpaceEventRequest
(پیام) -
GetSpaceNotificationSettingRequest
(پیام) -
GetSpaceReadStateRequest
(پیام) -
GetSpaceRequest
(پیام) -
GetThreadReadStateRequest
(پیام) -
Group
(پیام) -
HistoryState
(تعدادی) -
ListCustomEmojisRequest
(پیام) -
ListCustomEmojisResponse
(پیام) -
ListMembershipsRequest
(پیام) -
ListMembershipsResponse
(پیام) -
ListMessagesRequest
(پیام) -
ListMessagesResponse
(پیام) -
ListReactionsRequest
(پیام) -
ListReactionsResponse
(پیام) -
ListSpaceEventsRequest
(پیام) -
ListSpaceEventsResponse
(پیام) -
ListSpacesRequest
(پیام) -
ListSpacesResponse
(پیام) -
MatchedUrl
(پیام) -
MeetSpaceLinkData
(پیام) -
MeetSpaceLinkData.HuddleStatus
(enum) -
MeetSpaceLinkData.Type
(enum) -
Membership
(پیام) -
Membership.MembershipRole
(تعدادی) -
Membership.MembershipState
(تعدادی) -
MembershipBatchCreatedEventData
(پیام) -
MembershipBatchDeletedEventData
(پیام) -
MembershipBatchUpdatedEventData
(پیام) -
MembershipCreatedEventData
(پیام) -
MembershipDeletedEventData
(پیام) -
MembershipUpdatedEventData
(پیام) -
Message
(پیام) -
MessageBatchCreatedEventData
(پیام) -
MessageBatchDeletedEventData
(پیام) -
MessageBatchUpdatedEventData
(پیام) -
MessageCreatedEventData
(پیام) -
MessageDeletedEventData
(پیام) -
MessageUpdatedEventData
(پیام) -
QuotedMessageMetadata
(پیام) -
Reaction
(پیام) -
ReactionBatchCreatedEventData
(پیام) -
ReactionBatchDeletedEventData
(پیام) -
ReactionCreatedEventData
(پیام) -
ReactionDeletedEventData
(پیام) -
RichLinkMetadata
(پیام) -
RichLinkMetadata.RichLinkType
(enum) -
SearchSpacesRequest
(پیام) -
SearchSpacesResponse
(پیام) -
SetUpSpaceRequest
(پیام) -
SlashCommand
(پیام) -
SlashCommandMetadata
(پیام) -
SlashCommandMetadata.Type
(enum) -
Space
(پیام) -
Space.AccessSettings
(پیام) -
Space.AccessSettings.AccessState
(enum) -
Space.MembershipCount
(پیام) -
Space.PermissionSetting
(پیام) -
Space.PermissionSettings
(پیام) -
Space.PredefinedPermissionSettings
(enum) -
Space.SpaceDetails
(پیام) -
Space.SpaceThreadingState
(enum) -
Space.SpaceType
(enum) -
Space.Type
(enum) -
SpaceBatchUpdatedEventData
(پیام) -
SpaceEvent
(پیام) -
SpaceNotificationSetting
(پیام) -
SpaceNotificationSetting.MuteSetting
(enum) -
SpaceNotificationSetting.NotificationSetting
(enum) -
SpaceReadState
(پیام) -
SpaceUpdatedEventData
(پیام) -
Thread
(پیام) -
ThreadReadState
(پیام) -
UpdateMembershipRequest
(پیام) -
UpdateMessageRequest
(پیام) -
UpdateSpaceNotificationSettingRequest
(پیام) -
UpdateSpaceReadStateRequest
(پیام) -
UpdateSpaceRequest
(پیام) -
User
(پیام) -
User.Type
(enum) -
UserMentionMetadata
(پیام) -
UserMentionMetadata.Type
(enum) -
WidgetMarkup
(پیام) -
WidgetMarkup.Button
(پیام) -
WidgetMarkup.FormAction
(پیام) -
WidgetMarkup.FormAction.ActionParameter
(پیام) -
WidgetMarkup.Icon
(enum) -
WidgetMarkup.Image
(پیام) -
WidgetMarkup.ImageButton
(پیام) -
WidgetMarkup.KeyValue
(پیام) -
WidgetMarkup.OnClick
(پیام) -
WidgetMarkup.OpenLink
(پیام) -
WidgetMarkup.TextButton
(پیام) -
WidgetMarkup.TextParagraph
(پیام)
سرویس چت
به برنامهنویسان امکان میدهد تا برنامهها و ادغامهای Chat را در Google Chat Platform بسازند.
CompleteImportSpace |
---|
فرآیند واردات فضای مشخص شده را تکمیل می کند و آن را برای کاربران قابل مشاهده می کند. به احراز هویت کاربر و تفویض اختیار در سطح دامنه با محدوده مجوز نیاز دارد:
برای اطلاعات بیشتر، به مجوز برنامههای گپ Google برای وارد کردن دادهها مراجعه کنید.
|
CreateCustomEmoji |
---|
یک ایموجی سفارشی ایجاد می کند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
ایجاد عضویت |
---|
یک عضویت برای برنامه چت تماس گیرنده، یک کاربر یا یک گروه Google ایجاد می کند. ایجاد عضویت برای سایر برنامههای گپ پشتیبانی نمیشود. هنگام ایجاد عضویت، اگر خطمشی پذیرش خودکار عضو مشخصشده خاموش باشد، دعوت میشود و باید قبل از پیوستن، دعوت فضایی را بپذیرد. در غیر این صورت، ایجاد عضویت، عضو را مستقیماً به فضای مشخص شده اضافه می کند. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمیشود:
برای مثال استفاده، نگاه کنید به:
|
ایجاد پیام |
---|
پیامی را در فضای چت Google ایجاد می کند. برای مثال، به ارسال پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
Chat بسته به نوع احراز هویتی که در درخواست خود استفاده می کنید، فرستنده پیام را متفاوت نسبت می دهد. تصویر زیر نشان می دهد که چگونه Chat هنگام استفاده از احراز هویت برنامه، پیامی را نسبت می دهد. Chat برنامه چت را به عنوان فرستنده پیام نمایش می دهد. محتوای پیام میتواند شامل متن ( تصویر زیر نشان میدهد که چگونه Chat هنگام استفاده از احراز هویت کاربر، یک پیام را مشخص میکند. Chat کاربر را به عنوان فرستنده پیام نمایش می دهد و برنامه Chat را با نمایش نام پیام به آن نسبت می دهد. محتوای پیام فقط می تواند حاوی متن ( حداکثر اندازه پیام، با احتساب محتوای پیام، 32000 بایت است. برای درخواست های وب هوک ، پاسخ حاوی پیام کامل نیست. پاسخ فقط فیلدهای
|
CreateReaction |
---|
یک واکنش ایجاد می کند و آن را به یک پیام اضافه می کند. برای مثال، افزودن واکنش به پیام را ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
CreateSpace |
---|
فضا ایجاد می کند. می توان از آن برای ایجاد یک فضای نامگذاری شده یا یک چت گروهی در از انواع احراز هویت زیر پشتیبانی می کند:
هنگام احراز هویت به عنوان یک برنامه، قسمت هنگام احراز هویت به عنوان یک برنامه، برنامه Chat به عنوان عضوی از فضا اضافه می شود. با این حال، برخلاف احراز هویت انسانی، برنامه Chat به عنوان مدیر فضا اضافه نشده است. بهطور پیشفرض، برنامه Chat میتواند توسط همه اعضای فضا از فضا حذف شود. برای اینکه فقط مدیران فضا بتوانند برنامه را از یک فضا حذف کنند، عضویت در فضا هنگام ایجاد بستگی به این دارد که آیا فضا در
اگر هنگام ایجاد یک فاصله، پیام خطای
|
حذف سفارشی ایموجی |
---|
یک ایموجی سفارشی را حذف می کند. به طور پیش فرض، کاربران فقط می توانند شکلک های سفارشی خود را حذف کنند. مدیران شکلکهایی که توسط سرپرست تعیین شدهاند میتوانند هر شکلک سفارشی را در سازمان حذف کنند. به آموزش درباره شکلک های سفارشی در گپ Google مراجعه کنید. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
حذف عضویت |
---|
عضویت را حذف می کند. برای مثال، به حذف یک کاربر یا برنامه چت Google از یک فضا مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمیشود:
برای حذف عضویت برای مدیران فضا، درخواست کننده باید یک مدیر فضا باشد. اگر از احراز هویت برنامه استفاده می کنید، برنامه Chat باید فضاساز باشد.
|
DeleteMessage |
---|
یک پیام را حذف می کند. برای مثال، حذف یک پیام را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
هنگام استفاده از احراز هویت برنامه، درخواستها فقط میتوانند پیامهای ایجاد شده توسط برنامه چت را حذف کنند.
|
DeleteReaction |
---|
واکنش به یک پیام را حذف می کند. برای مثال، حذف واکنش را ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
DeleteSpace |
---|
فضای نامگذاری شده را حذف می کند. همیشه یک حذف آبشاری انجام می دهد، به این معنی که منابع فرزند فضا - مانند پیام های ارسال شده در فضا و عضویت در فضا - نیز حذف می شوند. برای مثال، حذف یک فاصله را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
|
FindDirectMessage |
---|
پیام مستقیم موجود با کاربر مشخص شده را برمی گرداند. اگر فضای پیام مستقیم پیدا نشد، خطای با احراز هویت برنامه ، فضای پیام مستقیم بین کاربر مشخص شده و برنامه چت در حال تماس را برمیگرداند. با احراز هویت کاربر ، فضای پیام مستقیم بین کاربر مشخص شده و کاربر احراز هویت شده را برمی گرداند. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetAttachment |
---|
فراداده یک پیوست پیام را دریافت می کند. دادههای پیوست با استفاده از API رسانه واکشی میشوند. برای مثال، به دریافت فراداده درباره پیوست پیام مراجعه کنید. به تأیید اعتبار برنامه با محدوده مجوز نیاز دارد:
|
GetCustomEmoji |
---|
جزئیات یک ایموجی سفارشی را برمی گرداند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
GetMembership |
---|
جزئیات عضویت را برمیگرداند. برای مثال، به دریافت جزئیات درباره عضویت کاربر یا برنامه چت Google مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetMessage |
---|
جزئیات یک پیام را برمی گرداند. برای مثال، به دریافت جزئیات درباره یک پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
توجه: ممکن است پیامی از یک عضو یا فضای مسدود شده بازگرداند.
|
GetSpace |
---|
جزئیات یک فضا را برمیگرداند. برای مثال، به دریافت جزئیات در مورد یک فضا مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه دارای محدودیت های زیر است:
|
GetSpaceEvent |
---|
رویدادی را از فضای گپ Google برمیگرداند. بارگذاری رویداد حاوی جدیدترین نسخه منبعی است که تغییر کرده است. به عنوان مثال، اگر رویدادی را درباره یک پیام جدید درخواست کنید اما پیام بعداً بهروزرسانی شد، سرور منبع توجه: فیلد انواع احراز هویت زیر را با محدوده مجوز مناسب برای خواندن داده های درخواستی پشتیبانی می کند:
برای دریافت یک رویداد، تماس گیرنده احراز هویت باید عضوی از فضا باشد. برای مثال، به دریافت جزئیات یک رویداد از فضای گپ Google مراجعه کنید.
|
GetSpaceNotificationSetting |
---|
تنظیمات اعلان فضایی را دریافت می کند. برای مثال، تنظیمات اعلان فضای تماس گیرنده را دریافت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
GetSpaceReadState |
---|
جزئیات مربوط به وضعیت خوانده شده کاربر را در یک فضا باز می گرداند که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن فضای کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
GetThreadReadState |
---|
جزئیات مربوط به وضعیت خواندن کاربر در یک رشته را که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود، برمی گرداند. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن رشته کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
ListCustomEmojis |
---|
ایموجی های سفارشی قابل مشاهده برای کاربر احراز هویت شده را فهرست می کند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
لیست اعضا |
---|
عضویت ها را در یک فضا فهرست می کند. برای مثال، فهرست کاربران و برنامههای چت Google را در یک فضا ببینید. فهرست کردن عضویتها با احراز هویت برنامه، عضویتها را در فضاهایی فهرست میکند که برنامه Chat به آنها دسترسی دارد، اما عضویتهای برنامه Chat، از جمله عضویت خود را استثنا نمیکند. فهرست کردن عضویتها با احراز هویت کاربر، عضویتها را در فضاهایی فهرست میکند که کاربر احراز هویت شده به آنها دسترسی دارد. از انواع احراز هویت زیر پشتیبانی می کند:
|
ListMessages |
---|
پیامها را در فضایی فهرست میکند که تماسگیرنده عضو آن است، از جمله پیامهای اعضای مسدود شده و فضاها. پیامهای سیستم، مانند پیامهایی که اعضای جدید فضایی را اعلام میکنند، شامل نمیشوند. اگر پیامهایی را از یک فضای بدون پیام فهرست کنید، پاسخ یک شی خالی است. هنگام استفاده از رابط REST/HTTP، پاسخ حاوی یک شی JSON خالی، از انواع احراز هویت زیر پشتیبانی می کند:
|
ListReactions |
---|
واکنش ها به یک پیام را فهرست می کند. برای مثال، فهرست واکنشها را برای یک پیام ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
ListSpaceEvents |
---|
رویدادها را از فضای چت Google فهرست می کند. برای هر رویداد، محموله حاوی جدیدترین نسخه منبع چت است. برای مثال، اگر رویدادهای مربوط به اعضای جدید فضایی را فهرست کنید، سرور منابع انواع احراز هویت زیر را با محدوده مجوز مناسب برای خواندن داده های درخواستی پشتیبانی می کند:
برای فهرست کردن رویدادها، تماس گیرنده احراز هویت باید عضوی از فضا باشد. برای مثال، فهرست رویدادها را از فضای گپ Google ببینید.
|
ListSpaces |
---|
فضاهایی را که تماس گیرنده عضوی از آنها است را فهرست می کند. تا زمانی که اولین پیام ارسال نشود، چتهای گروهی و پیامهای پیامکی فهرست نمیشوند. برای مثال، لیست فاصله ها را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
برای فهرست کردن همه فضاهای نامگذاری شده توسط سازمان Google Workspace، به جای آن از روش
|
فضاهای جستجو |
---|
فهرستی از فضاهای یک سازمان Google Workspace را بر اساس جستجوی سرپرست برمیگرداند. در درخواست، به احراز هویت کاربر با امتیازات سرپرست و یکی از حوزه های مجوز زیر نیاز دارد:
|
SetUpSpace |
---|
فضایی ایجاد می کند و کاربران مشخصی را به آن اضافه می کند. کاربر تماس گیرنده به طور خودکار به فضا اضافه می شود و نباید به عنوان عضویت در درخواست مشخص شود. برای مثال، به تنظیم فضایی با اعضای اولیه مراجعه کنید. برای تعیین اعضای انسانی برای افزودن، عضویت هایی را با برای تعیین گروههای Google برای افزودن، عضویتها را با برای یک فضای نامگذاری شده یا چت گروهی، اگر تماس گیرنده مسدود شود، یا توسط برخی از اعضا مسدود شده باشد، یا اجازه اضافه کردن برخی از اعضا را نداشته باشد، آن اعضا به فضای ایجاد شده اضافه نمی شوند. برای ایجاد یک پیام مستقیم (DM) بین کاربر تماس گیرنده و کاربر انسانی دیگر، دقیقاً یک عضویت را برای نشان دادن کاربر انسانی مشخص کنید. اگر یکی از کاربران دیگری را مسدود کند، درخواست با شکست مواجه می شود و DM ایجاد نمی شود. برای ایجاد DM بین کاربر تماس گیرنده و برنامه تماس گیرنده، اگر یک DM از قبل بین دو کاربر وجود داشته باشد، حتی زمانی که یک کاربر در زمان درخواست، دیگری را مسدود کند، DM موجود برگردانده می شود. فضاهای دارای پاسخ رشته ای پشتیبانی نمی شوند. اگر هنگام تنظیم یک فاصله، پیام خطای به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
به روز رسانی عضویت |
---|
عضویت را به روز می کند. برای مثال، بهروزرسانی عضویت کاربر در یک فضا را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
|
UpdateMessage |
---|
یک پیام را به روز می کند. بین روش های از انواع احراز هویت زیر پشتیبانی می کند:
هنگام استفاده از احراز هویت برنامه، درخواستها فقط میتوانند پیامهای ایجاد شده توسط برنامه چت را بهروزرسانی کنند.
|
UpdateSpace |
---|
یک فضا را به روز می کند. برای مثال، بهروزرسانی یک فاصله را ببینید. اگر فیلد از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه دارای محدودیت های زیر است:
|
UpdateSpaceNotificationSetting |
---|
تنظیمات اعلان فضایی را به روز می کند. برای مثال، بهروزرسانی تنظیمات اعلان فضای تماسگیرنده را ببینید. نیاز به احراز هویت کاربر با محدوده مجوز :
|
UpdateSpaceReadState |
---|
وضعیت خواندن کاربر را در یک فضا به روز می کند، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. برای مثال، بهروزرسانی وضعیت خواندن فضای کاربر را ببینید. نیاز به احراز هویت کاربر با محدوده مجوز :
|
ابزارک لوازم جانبی
یک یا چند ویجت تعاملی که در پایین یک پیام ظاهر می شود. برای جزئیات، به افزودن ویجتهای تعاملی در پایین پیام رجوع کنید.
فیلدها | |
---|---|
action میدانی اتحادیه نوع عمل. action فقط می تواند یکی از موارد زیر باشد: | |
button_list | لیستی از دکمه ها |
ActionResponse
پارامترهایی که یک برنامه چت می تواند برای پیکربندی نحوه ارسال پاسخ خود استفاده کند.
فیلدها | |
---|---|
type | فقط ورودی نوع پاسخ برنامه چت. |
url | فقط ورودی URL برای احراز هویت یا پیکربندی کاربران. (فقط برای انواع پاسخ |
dialog_action | فقط ورودی پاسخی به یک رویداد تعاملی مربوط به یک گفتگو . باید با |
updated_widget | فقط ورودی پاسخ ویجت به روز شده. |
نوع پاسخ
نوع پاسخ برنامه چت.
Enums | |
---|---|
TYPE_UNSPECIFIED | نوع پیشفرض که بهعنوان NEW_MESSAGE استفاده میشود. |
NEW_MESSAGE | به عنوان یک پیام جدید در تاپیک ارسال کنید. |
UPDATE_MESSAGE | پیام برنامه چت را به روز کنید. این فقط در رویداد CARD_CLICKED که نوع فرستنده پیام BOT است مجاز است. |
UPDATE_USER_MESSAGE_CARDS | کارت ها را در پیام کاربر به روز کنید. این فقط به عنوان پاسخی به یک رویداد MESSAGE با نشانی اینترنتی منطبق، یا یک رویداد CARD_CLICKED که نوع فرستنده پیام HUMAN است مجاز است. متن نادیده گرفته می شود. |
REQUEST_CONFIG | به طور خصوصی از کاربر برای احراز هویت یا پیکربندی اضافی بخواهید. |
DIALOG | دیالوگی ارائه می دهد. |
UPDATE_WIDGET | پرس و جو گزینه های تکمیل خودکار متن ویجت. |
انتخاب آیتم ها
فهرست نتایج تکمیل خودکار ویجت.
فیلدها | |
---|---|
items[] | آرایه ای از اشیاء SelectionItem. |
ویجت به روز شده
برای ویجتهای selectionInput
، پیشنهادات تکمیل خودکار را برای یک منوی چند انتخابی برمیگرداند.
فیلدها | |
---|---|
widget | شناسه ویجت به روز شده. شناسه باید با شناسه ویجتی که درخواست بهروزرسانی را راهاندازی کرده، مطابقت داشته باشد. |
فیلد اتحادیه updated_widget . ویجت در پاسخ به اقدام کاربر به روز شد. updated_widget فقط می تواند یکی از موارد زیر باشد: | |
suggestions | فهرست نتایج تکمیل خودکار ویجت |
ActionStatus
وضعیت درخواست برای فراخوانی یا ارسال گفتگو را نشان می دهد.
فیلدها | |
---|---|
status_code | کد وضعیت. |
user_facing_message | پیامی برای ارسال به کاربران در مورد وضعیت درخواست آنها. اگر تنظیم نشود، یک پیام عمومی بر اساس |
حاشیه نویسی
فقط خروجی حاشیهنویسیها را میتوان با متن ساده پیام یا تراشههایی مرتبط کرد که به منابع Google Workspace مانند Google Docs یا Sheets با start_index
و length
0 پیوند دارند. برای افزودن قالببندی اولیه به پیام نوشتاری، به قالببندی پیامهای متنی مراجعه کنید.
مثال متن پیام ساده:
Hello @FooBot how are you!"
فراداده حاشیه نویسی مربوطه:
"annotations":[{
"type":"USER_MENTION",
"startIndex":6,
"length":7,
"userMention": {
"user": {
"name":"users/{user}",
"displayName":"FooBot",
"avatarUrl":"https://goo.gl/aeDtrS",
"type":"BOT"
},
"type":"MENTION"
}
}]
فیلدها | |
---|---|
type | نوع این حاشیه نویسی |
length | طول رشته فرعی در متن پیام متنی ساده با این حاشیه نویسی مطابقت دارد. اگر وجود نداشته باشد، طول 0 را نشان می دهد. |
start_index | نمایه شروع (بر اساس 0، شامل) در متن پیام متنی ساده که این حاشیه نویسی با آن مطابقت دارد. |
metadata میدان اتحادیه فراداده اضافی در مورد حاشیه نویسی. metadata تنها می تواند یکی از موارد زیر باشد: | |
user_mention | فراداده ذکر کاربر. |
slash_command | ابرداده برای یک دستور اسلش. |
rich_link_metadata | ابرداده برای یک پیوند غنی. |
custom_emoji_metadata | متادیتا برای یک ایموجی سفارشی. |
AnnotationType
نوع حاشیه نویسی
Enums | |
---|---|
ANNOTATION_TYPE_UNSPECIFIED | مقدار پیش فرض برای enum. استفاده نکنید. |
USER_MENTION | یک کاربر ذکر شده است. |
SLASH_COMMAND | یک دستور اسلش فراخوانی می شود. |
RICH_LINK | حاشیه نویسی پیوند غنی |
CUSTOM_EMOJI | حاشیه نویسی ایموجی سفارشی. |
AppCommandMetadata
فراداده درباره دستور برنامه Chat .
فیلدها | |
---|---|
app_command_id | شناسه فرمان مشخص شده در پیکربندی Chat API. |
app_command_type | نوع دستور برنامه چت. |
AppCommandType
نوع دستور برنامه چت. برای جزئیات، به انواع دستورات برنامه چت مراجعه کنید.
Enums | |
---|---|
APP_COMMAND_TYPE_UNSPECIFIED | مقدار پیش فرض نامشخص |
SLASH_COMMAND | یک دستور اسلش کاربر دستور را در یک پیام چت ارسال می کند. |
QUICK_COMMAND | یک دستور سریع کاربر دستور را از منوی چت در ناحیه پاسخ پیام انتخاب می کند. |
گیف پیوست شده
یک تصویر GIF که توسط یک URL مشخص شده است.
فیلدها | |
---|---|
uri | فقط خروجی URL که میزبان تصویر GIF است. |
پیوست
یک پیوست در Google Chat.
فیلدها | |
---|---|
name | اختیاری. نام منبع پیوست، به شکل |
content_name | فقط خروجی نام فایل اصلی برای محتوا، نه مسیر کامل. |
content_type | فقط خروجی نوع محتوا (نوع MIME) فایل. |
thumbnail_uri | فقط خروجی نشانی اینترنتی تصویر کوچکی که باید برای پیش نمایش پیوست یک کاربر انسانی استفاده شود. برنامههای گپ نباید از این نشانی اینترنتی برای دانلود محتوای پیوست استفاده کنند. |
download_uri | فقط خروجی URL دانلودی که باید از آن استفاده شود تا کاربر انسانی بتواند پیوست را دانلود کند. برنامههای گپ نباید از این نشانی اینترنتی برای دانلود محتوای پیوست استفاده کنند. |
source | فقط خروجی منبع پیوست |
فیلد اتحادیه data_ref . ارجاع داده به پیوست data_ref تنها می تواند یکی از موارد زیر باشد: | |
attachment_data_ref | اختیاری. ارجاع به داده های پیوست این فیلد برای ایجاد یا بهروزرسانی پیامها با پیوستها یا با API رسانه برای دانلود دادههای پیوست استفاده میشود. |
drive_data_ref | فقط خروجی ارجاع به پیوست Google Drive. این فیلد با Google Drive API استفاده می شود. |
منبع
منبع پیوست
Enums | |
---|---|
SOURCE_UNSPECIFIED | رزرو شده است. |
DRIVE_FILE | فایل یک فایل گوگل درایو است. |
UPLOADED_CONTENT | فایل در چت آپلود می شود. |
AttachmentDataRef
ارجاع به داده های پیوست
فیلدها | |
---|---|
resource_name | اختیاری. نام منبع داده های پیوست. این فیلد با API رسانه برای دانلود داده های پیوست استفاده می شود. |
attachment_upload_token | اختیاری. نشانه مات حاوی ارجاع به پیوست آپلود شده. توسط کلاینتها بهعنوان یک رشته غیرشفاف تلقی میشود و برای ایجاد یا بهروزرسانی پیامهای چت با پیوستها استفاده میشود. |
CalendarEventLinkData
داده برای پیوندهای رویداد تقویم.
فیلدها | |
---|---|
calendar_id | شناسه تقویم تقویم پیوند شده. |
event_id | The Event identifier of the linked Calendar event. |
CardWithId
A card in a Google Chat message.
Only Chat apps can create cards. If your Chat app authenticates as a user , the message can't contain cards.
Design and preview cards with the Card Builder.
Open the Card Builderفیلدها | |
---|---|
card_id | Required if the message contains multiple cards. A unique identifier for a card in a message. |
card | A card. Maximum size is 32 KB. |
ChatSpaceLinkData
Data for Chat space links.
فیلدها | |
---|---|
space | The space of the linked Chat space resource. Format: |
thread | The thread of the linked Chat space resource. Format: |
message | The message of the linked Chat space resource. Format: |
CompleteImportSpaceRequest
Request message for completing the import process for a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the import mode space. Format: |
CompleteImportSpaceResponse
Response message for completing the import process for a space.
فیلدها | |
---|---|
space | The import mode space. |
ContextualAddOnMarkup
This type has no fields.
The markup for developers to specify the contents of a contextual AddOn.
کارت
A card is a UI element that can contain UI widgets such as text and images.
فیلدها | |
---|---|
header | The header of the card. A header usually contains a title and an image. |
sections[] | Sections are separated by a line divider. |
card_actions[] | The actions of this card. |
name | Name of the card. |
CardAction
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Not supported by Google Chat apps.
فیلدها | |
---|---|
action_label | The label used to be displayed in the action menu item. |
on_click | The onclick action for this action item. |
CardHeader
فیلدها | |
---|---|
title | The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines. |
subtitle | The subtitle of the card header. |
image_style | The image's type (for example, square border or circular border). |
image_url | The URL of the image in the card header. |
ImageStyle
Enums | |
---|---|
IMAGE_STYLE_UNSPECIFIED | |
IMAGE | Square border. |
AVATAR | Circular border. |
بخش
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).
فیلدها | |
---|---|
header | The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
widgets[] | A section must contain at least one widget. |
CreateCustomEmojiRequest
A request to create a custom emoji.
فیلدها | |
---|---|
custom_emoji | مورد نیاز. The custom emoji to create. |
CreateMembershipRequest
Request message for creating a membership.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space for which to create the membership. Format: spaces/{space} |
membership | مورد نیاز. The membership relation to create. The When a Chat app creates a membership relation for a human user, it must use certain authorization scopes and set specific values for certain fields:
Inviting users external to the Workspace organization that owns the space requires user authentication . When a Chat app creates a membership relation for itself, it must authenticate as a user and use the |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access. |
CreateMessageRequest
Creates a message.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space in which to create a message. Format: |
message | مورد نیاز. Message body. |
thread_key | اختیاری. Deprecated: Use |
request_id | اختیاری. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. |
message_reply_option | اختیاری. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. When responding to user interactions , this field is ignored. For interactions within a thread, the reply is created in the same thread. Otherwise, the reply is created as a new thread. |
message_id | اختیاری. A custom ID for a message. Lets Chat apps get, update, or delete a message without needing to store the system-assigned ID in the message's resource name (represented in the message The value for this field must meet the following requirements:
For details, see Name a message . |
MessageReplyOption
Specifies how to reply to a message. More states might be added in the future.
Enums | |
---|---|
MESSAGE_REPLY_OPTION_UNSPECIFIED | پیش فرض Starts a new thread. Using this option ignores any thread ID or that's included. |
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD | Creates the message as a reply to the thread specified by thread ID or . If it fails, the message starts a new thread instead. |
REPLY_MESSAGE_OR_FAIL | Creates the message as a reply to the thread specified by thread ID or . If a new thread_key is used, a new thread is created. If the message creation fails, a NOT_FOUND error is returned instead. |
CreateReactionRequest
Creates a reaction to a message.
فیلدها | |
---|---|
parent | مورد نیاز. The message where the reaction is created. Format: |
reaction | مورد نیاز. The reaction to create. |
CreateSpaceRequest
A request to create a named space with no members.
فیلدها | |
---|---|
space | مورد نیاز. The If you receive the error message The space |
request_id | اختیاری. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error. |
CustomEmoji
Represents a custom emoji .
فیلدها | |
---|---|
name | Identifier. The resource name of the custom emoji, assigned by the server. Format: |
uid | فقط خروجی Unique key for the custom emoji resource. |
emoji_name | اختیاری. تغییرناپذیر. User-provided name for the custom emoji, which is unique within the organization. Required when the custom emoji is created, output only otherwise. Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively. Example: |
temporary_image_uri | فقط خروجی A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created. |
payload | اختیاری. Input only. Payload data. Required when the custom emoji is created. |
CustomEmojiPayload
Payload data for the custom emoji.
فیلدها | |
---|---|
file_content | مورد نیاز. Input only. The image used for the custom emoji. The payload must be under 256 KB and the dimension of the image must be square and between 64 and 500 pixels. The restrictions are subject to change. |
filename | مورد نیاز. Input only. The image file name. Supported file extensions: |
CustomEmojiMetadata
Annotation metadata for custom emoji.
فیلدها | |
---|---|
custom_emoji | The custom emoji. |
DeleteCustomEmojiRequest
Request for deleting a custom emoji.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the custom emoji to delete. Format: You can use the emoji name as an alias for |
DeleteMembershipRequest
Request to delete a membership in a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships. When deleting a human membership, requires the When deleting an app membership, requires the Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Deleting app memberships in a space isn't supported using admin access. |
DeleteMessageRequest
Request to delete a message.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message. Format: If you've set a custom ID for your message, you can use the value from the |
force | اختیاری. When Only applies when authenticating as a user . Has no effect when authenticating as a Chat app . |
DeleteReactionRequest
Deletes a reaction to a message.
فیلدها | |
---|---|
name | مورد نیاز. Name of the reaction to delete. Format: |
DeleteSpaceRequest
Request for deleting a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space to delete. Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
DeletionMetadata
Information about a deleted message. A message is deleted when delete_time
is set.
فیلدها | |
---|---|
deletion_type | Indicates who deleted the message. |
DeletionType
Who deleted the message and how it was deleted. More values may be added in the future. See Edit or delete a message in Google Chat for details on when messages can be deleted.
Enums | |
---|---|
DELETION_TYPE_UNSPECIFIED | This value is unused. |
CREATOR | User deleted their own message. |
SPACE_OWNER | A space manager deleted the message. |
ADMIN | A Google Workspace administrator deleted the message. Administrators can delete any message in the space, including messages sent by any space member or Chat app. |
APP_MESSAGE_EXPIRY | A Chat app deleted its own message when it expired. |
CREATOR_VIA_APP | A Chat app deleted the message on behalf of the creator (using user authentication). |
SPACE_OWNER_VIA_APP | A Chat app deleted the message on behalf of a space manager (using user authentication). |
SPACE_MEMBER | A member of the space deleted the message. Users can delete messages sent by apps. |
گفتگو
Wrapper around the card body of the dialog.
فیلدها | |
---|---|
body | Input only. Body of the dialog, which is rendered in a modal. Google Chat apps don't support the following card entities: |
DialogAction
Contains a dialog and request status code.
فیلدها | |
---|---|
action_status | Input only. Status for a request to either invoke or submit a dialog . Displays a status and message to users, if necessary. For example, in case of an error or success. |
Union field action . Action to perform. action can be only one of the following: | |
dialog | Input only. Dialog for the request. |
DriveDataRef
A reference to the data of a drive attachment.
فیلدها | |
---|---|
drive_file_id | The ID for the drive file. Use with the Drive API. |
DriveLinkData
Data for Google Drive links.
فیلدها | |
---|---|
drive_data_ref | A DriveDataRef which references a Google Drive file. |
mime_type | The mime type of the linked Google Drive resource. |
ایموجی
An emoji that is used as a reaction to a message.
فیلدها | |
---|---|
Union field content . مورد نیاز. The content of the emoji. content can be only one of the following: | |
unicode | اختیاری. A basic emoji represented by a unicode string. |
custom_emoji | A custom emoji. |
EmojiReactionSummary
The number of people who reacted to a message with a specific emoji.
فیلدها | |
---|---|
emoji | فقط خروجی Emoji associated with the reactions. |
reaction_count | فقط خروجی The total number of reactions using the associated emoji. |
FindDirectMessageRequest
A request to get direct message space based on the user resource.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the user to find direct message with. Format: |
GetAttachmentRequest
Request to get an attachment.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the attachment, in the form |
GetCustomEmojiRequest
A request to return a single custom emoji.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the custom emoji. Format: You can use the emoji name as an alias for |
GetMembershipRequest
Request to get a membership of a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the membership to retrieve. To get the app's own membership by using user authentication , you can optionally use Format: You can use the user's email as an alias for |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Getting app memberships in a space isn't supported when using admin access. |
GetMessageRequest
Request to get a message.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message. Format: If you've set a custom ID for your message, you can use the value from the |
GetSpaceEventRequest
Request message for getting a space event.
فیلدها | |
---|---|
name | مورد نیاز. The resource name of the space event. Format: |
GetSpaceNotificationSettingRequest
Request message to get space notification setting. Only supports getting notification setting for the calling user.
فیلدها | |
---|---|
name | مورد نیاز. Format: users/{user}/spaces/{space}/spaceNotificationSetting
|
GetSpaceReadStateRequest
Request message for GetSpaceReadState API.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/spaceReadState |
GetSpaceRequest
A request to return a single space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space, in the form Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
GetThreadReadStateRequest
Request message for GetThreadReadStateRequest API.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the thread read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState |
گروه
A Google Group in Google Chat.
فیلدها | |
---|---|
name | Resource name for a Google Group. Represents a group in Cloud Identity Groups API. Format: groups/{group} |
HistoryState
The history state for messages and spaces. Specifies how long messages and conversation threads are kept after creation.
Enums | |
---|---|
HISTORY_STATE_UNSPECIFIED | Default value. استفاده نکنید. |
HISTORY_OFF | History off. Messages and threads are kept for 24 hours . |
HISTORY_ON | History on. The organization's Vault retention rules specify for how long messages and threads are kept. |
ListCustomEmojisRequest
A request to return a list of custom emojis.
فیلدها | |
---|---|
page_size | اختیاری. The maximum number of custom emojis returned. The service can return fewer custom emojis than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200. |
page_token | اختیاری. (If resuming from a previous query.) A page token received from a previous list custom emoji call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results. |
filter | اختیاری. A query filter. Supports filtering by creator. To filter by creator, you must specify a valid value. Currently only For example, the following query returns custom emojis created by the caller:
Invalid queries are rejected with an |
ListCustomEmojisResponse
A response to list custom emojis.
فیلدها | |
---|---|
custom_emojis[] | Unordered list. List of custom emojis. |
next_page_token | A token that you can send as |
ListMembershipsRequest
Request message for listing memberships.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space for which to fetch a membership list. Format: spaces/{space} |
page_size | اختیاری. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter memberships by a member's role ( To filter by role, set To filter by type, set To filter by both role and type, use the Either For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected by the server with an |
show_groups | اختیاری. When |
show_invited | اختیاری. When Currently requires user authentication . |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires either the Listing app memberships in a space isn't supported when using admin access. |
ListMembershipsResponse
Response to list memberships of the space.
فیلدها | |
---|---|
memberships[] | Unordered list. List of memberships in the requested (or first) page. |
next_page_token | A token that you can send as |
ListMessagesRequest
Lists messages in the specified space, that the user is a member of.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space to list messages from. Format: |
page_size | اختیاری. The maximum number of messages returned. The service might return fewer messages than this value. If unspecified, at most 25 are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter messages by date ( To filter messages by the date they were created, specify the To filter by thread, specify the To filter by both thread and date, use the For example, the following queries are valid:
Invalid queries are rejected by the server with an |
order_by | اختیاری. How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows:
The default ordering is |
show_deleted | اختیاری. Whether to include deleted messages. Deleted messages include deleted time and metadata about their deletion, but message content is unavailable. |
ListMessagesResponse
Response message for listing messages.
فیلدها | |
---|---|
messages[] | List of messages. |
next_page_token | You can send a token as |
ListReactionsRequest
Lists reactions to a message.
فیلدها | |
---|---|
parent | مورد نیاز. The message users reacted to. Format: |
page_size | اختیاری. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200. |
page_token | اختیاری. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter reactions by emoji (either To filter reactions for multiple emojis or users, join similar fields with the To filter reactions by emoji and user, use the If your query uses both For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected with an |
ListReactionsResponse
Response to a list reactions request.
فیلدها | |
---|---|
reactions[] | List of reactions in the requested (or first) page. |
next_page_token | Continuation token to retrieve the next page of results. It's empty for the last page of results. |
ListSpaceEventsRequest
Request message for listing space events.
فیلدها | |
---|---|
parent | مورد نیاز. Resource name of the Google Chat space where the events occurred. Format: |
page_size | اختیاری. The maximum number of space events returned. The service might return fewer than this value. Negative values return an |
page_token | اختیاری. A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | مورد نیاز. A query filter. You must specify at least one event type ( Optionally, you can also filter by start time (
To specify a start or end time, use the equals For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected by the server with an |
ListSpaceEventsResponse
Response message for listing space events.
فیلدها | |
---|---|
space_events[] | Results are returned in chronological order (oldest event first). Note: The |
next_page_token | Continuation token used to fetch more events. If this field is omitted, there are no subsequent pages. |
ListSpacesRequest
A request to list the spaces the caller is a member of.
فیلدها | |
---|---|
page_size | اختیاری. The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results. |
filter | اختیاری. A query filter. You can filter spaces by the space type ( To filter by space type, you must specify valid enum value, such as For example, the following queries are valid:
Invalid queries are rejected by the server with an |
ListSpacesResponse
The response for a list spaces request.
فیلدها | |
---|---|
spaces[] | List of spaces in the requested (or first) page. Note: The |
next_page_token | You can send a token as |
MatchedUrl
A matched URL in a Chat message. Chat apps can preview matched URLs. For more information, see Preview links .
فیلدها | |
---|---|
url | فقط خروجی The URL that was matched. |
MeetSpaceLinkData
Data for Meet space links.
فیلدها | |
---|---|
meeting_code | Meeting code of the linked Meet space. |
type | Indicates the type of the Meet space. |
huddle_status | اختیاری. فقط خروجی If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. |
HuddleStatus
The status of the huddle
Enums | |
---|---|
HUDDLE_STATUS_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
STARTED | The huddle has started. |
ENDED | The huddle has ended. In this case the Meet space URI and identifiers will no longer be valid. |
MISSED | The huddle has been missed. In this case the Meet space URI and identifiers will no longer be valid. |
تایپ کنید
The type of the Meet space.
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
MEETING | The Meet space is a meeting. |
HUDDLE | The Meet space is a huddle. |
عضویت
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
فیلدها | |
---|---|
name | Identifier. Resource name of the membership, assigned by the server. Format: |
state | فقط خروجی State of the membership. |
role | اختیاری. User's role within a Chat space, which determines their permitted actions in the space. This field can only be used as input in |
create_time | اختیاری. تغییرناپذیر. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces. |
delete_time | اختیاری. تغییرناپذیر. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces. |
Union field memberType . Member associated with this membership. Other member types might be supported in the future. memberType can be only one of the following: | |
member | اختیاری. The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user |
group_member | اختیاری. The Google Group the membership corresponds to. Reading or mutating memberships for Google Groups requires user authentication . |
MembershipRole
Represents a user's permitted actions in a Chat space. More enum values might be added in the future.
Enums | |
---|---|
MEMBERSHIP_ROLE_UNSPECIFIED | Default value. For users : they aren't a member of the space, but can be invited. For Google Groups : they're always assigned this role (other enum values might be used in the future). |
ROLE_MEMBER | A member of the space. In the Chat UI, this role is called Member. The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including:
In direct messages and unnamed group conversations, everyone has this role. |
ROLE_MANAGER | A space owner. In the Chat UI, this role is called Owner. The user has the complete set of space permissions to manage the space, including:
Only supported in To learn more, see Learn more about your role as a space owner or manager . |
MembershipState
Specifies the member's relationship with a space. Other membership states might be supported in the future.
Enums | |
---|---|
MEMBERSHIP_STATE_UNSPECIFIED | Default value. استفاده نکنید. |
JOINED | The user is added to the space, and can participate in the space. |
INVITED | The user is invited to join the space, but hasn't joined it. |
NOT_A_MEMBER | The user doesn't belong to the space and doesn't have a pending invitation to join the space. |
MembershipBatchCreatedEventData
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
فیلدها | |
---|---|
memberships[] | A list of new memberships. |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
فیلدها | |
---|---|
memberships[] | A list of deleted memberships. |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
فیلدها | |
---|---|
memberships[] | A list of updated memberships. |
MembershipCreatedEventData
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
.
فیلدها | |
---|---|
membership | The new membership. |
MembershipDeletedEventData
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
فیلدها | |
---|---|
membership | The deleted membership. Only the |
MembershipUpdatedEventData
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
فیلدها | |
---|---|
membership | The updated membership. |
پیام
A message in a Google Chat space.
فیلدها | |
---|---|
name | Identifier. Resource name of the message. Format: Where If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing |
sender | فقط خروجی The user who created the message. If your Chat app authenticates as a user , the output populates the user |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time. |
last_update_time | فقط خروجی The time at which the message was last edited by a user. If the message has never been edited, this field is empty. |
delete_time | فقط خروجی The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty. |
text | اختیاری. Plain-text body of the message. The first link to an image, video, or web page generates a preview chip . You can also @mention a Google Chat user , or everyone in the space. To learn about creating text messages, see Send a message . |
formatted_text | فقط خروجی Contains the message
For more information, see View text formatting sent in a message |
cards[] | Deprecated: Use Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. |
cards_v2[] | اختیاری. An array of cards . Only Chat apps can create cards. If your Chat app authenticates as a user , the messages can't contain cards. To learn how to create a message that contains cards, see Send a message . Design and preview cards with the Card Builder. Open the Card Builder |
annotations[] | فقط خروجی Annotations can be associated with the plain-text body of the message or with chips that link to Google Workspace resources like Google Docs or Sheets with |
thread | The thread the message belongs to. For example usage, see Start or reply to a message thread . |
space | فقط خروجی If your Chat app authenticates as a user , the output only populates the space |
fallback_text | اختیاری. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications. |
action_response | Input only. Parameters that a Chat app can use to configure how its response is posted. |
argument_text | فقط خروجی Plain-text body of the message with all Chat app mentions stripped out. |
slash_command | فقط خروجی Slash command information, if applicable. |
attachment[] | اختیاری. User-uploaded attachment. |
matched_url | فقط خروجی A URL in |
thread_reply | فقط خروجی When If the space doesn't support reply in threads, this field is always |
client_assigned_message_id | اختیاری. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the |
emoji_reaction_summaries[] | فقط خروجی The list of emoji reaction summaries on the message. |
private_message_viewer | اختیاری. تغییرناپذیر. Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. To include this field in your request, you must call the Chat API using app authentication and omit the following: For details, see Send a message privately . |
deletion_metadata | فقط خروجی Information about a deleted message. A message is deleted when |
quoted_message_metadata | اختیاری. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the For example usage, see Quote another message . |
attached_gifs[] | فقط خروجی GIF images that are attached to the message. |
accessory_widgets[] | اختیاری. One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see Add interactive widgets at the bottom of a message . Creating a message with accessory widgets requires app authentication . |
MessageBatchCreatedEventData
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
فیلدها | |
---|---|
messages[] | A list of new messages. |
MessageBatchDeletedEventData
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
فیلدها | |
---|---|
messages[] | A list of deleted messages. |
MessageBatchUpdatedEventData
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
فیلدها | |
---|---|
messages[] | A list of updated messages. |
MessageCreatedEventData
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
فیلدها | |
---|---|
message | The new message. |
MessageDeletedEventData
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
فیلدها | |
---|---|
message | The deleted message. Only the |
MessageUpdatedEventData
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
فیلدها | |
---|---|
message | The updated message. |
QuotedMessageMetadata
Information about a message that another message quotes.
When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread.
When you update a message, you can't add or replace the quotedMessageMetadata
field, but you can remove it.
For example usage, see Quote another message .
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message that is quoted. Format: |
last_update_time | مورد نیاز. The timestamp when the quoted message was created or when the quoted message was last updated. If the message was edited, use this field, If |
واکنش
A reaction to a message.
فیلدها | |
---|---|
name | Identifier. The resource name of the reaction. Format: |
user | فقط خروجی The user who created the reaction. |
emoji | مورد نیاز. The emoji used in the reaction. |
ReactionBatchCreatedEventData
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
فیلدها | |
---|---|
reactions[] | A list of new reactions. |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
فیلدها | |
---|---|
reactions[] | A list of deleted reactions. |
ReactionCreatedEventData
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
فیلدها | |
---|---|
reaction | The new reaction. |
ReactionDeletedEventData
Event payload for a deleted reaction.
Type: google.workspace.chat.reaction.v1.deleted
فیلدها | |
---|---|
reaction | The deleted reaction. |
RichLinkMetadata
A rich link to a resource. Rich links can be associated with the plain-text body of the message or represent chips that link to Google Workspace resources like Google Docs or Sheets with start_index
and length
of 0.
فیلدها | |
---|---|
uri | The URI of this link. |
rich_link_type | The rich link type. |
Union field data . Data for the linked resource. data can be only one of the following: | |
drive_link_data | Data for a drive link. |
chat_space_link_data | Data for a chat space link. |
meet_space_link_data | Data for a Meet space link. |
calendar_event_link_data | Data for a Calendar event link. |
RichLinkType
The rich link type. More types might be added in the future.
Enums | |
---|---|
RICH_LINK_TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
DRIVE_FILE | A Google Drive rich link type. |
CHAT_SPACE | A Chat space rich link type. For example, a space smart chip. |
MEET_SPACE | A Meet message rich link type. For example, a Meet chip. |
CALENDAR_EVENT | A Calendar message rich link type. For example, a Calendar chip. |
SearchSpacesRequest
Request to search for a list of spaces based on a query.
فیلدها | |
---|---|
use_admin_access | When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires either the This method currently only supports admin access, thus only |
page_size | The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. |
page_token | A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
query | مورد نیاز. A search query. You can search by using the following parameters:
Across different fields, only Among the same field, The following example queries are valid:
|
order_by | اختیاری. How the list of spaces is ordered. Supported attributes to order by are:
Valid ordering operation values are:
The supported syntax are:
|
SearchSpacesResponse
Response with a list of spaces corresponding to the search spaces request.
فیلدها | |
---|---|
spaces[] | A page of the requested spaces. |
next_page_token | A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages. |
total_size | The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate. |
SetUpSpaceRequest
Request to create a space and add specified users to it.
فیلدها | |
---|---|
space | مورد نیاز. The To create a space, set To create a group chat, set To create a 1:1 conversation between humans, set To create an 1:1 conversation between a human and the calling Chat app, set If a |
request_id | اختیاری. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error. |
memberships[] | اختیاری. The Google Chat users or groups to invite to join the space. Omit the calling user, as they are added automatically. The set currently allows up to 49 memberships (in addition to the caller). For human membership, the For Google group membership, the Optional when setting Required when setting Required when setting Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting |
SlashCommand
Metadata about a slash command in Google Chat.
فیلدها | |
---|---|
command_id | The ID of the slash command. |
SlashCommandMetadata
Annotation metadata for slash commands (/).
فیلدها | |
---|---|
bot | The Chat app whose command was invoked. |
type | The type of slash command. |
command_name | The name of the invoked slash command. |
command_id | The command ID of the invoked slash command. |
triggers_dialog | Indicates whether the slash command is for a dialog. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add Chat app to space. |
INVOKE | Invoke slash command in space. |
فضا
A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.
فیلدها | |
---|---|
name | Identifier. Resource name of the space. Format: Where |
type | فقط خروجی Deprecated: Use |
space_type | اختیاری. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. |
single_user_bot_dm | اختیاری. Whether the space is a DM between a Chat app and a single human. |
threaded | فقط خروجی Deprecated: Use |
display_name | اختیاری. The space's display name. Required when creating a space with a For direct messages, this field might be empty. Supports up to 128 characters. |
external_user_allowed | اختیاری. تغییرناپذیر. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:
For existing spaces, this field is output only. |
space_threading_state | فقط خروجی The threading state in the Chat space. |
space_details | اختیاری. Details about the space including description and rules. |
space_history_state | اختیاری. The message history state for messages and threads in this space. |
import_mode | اختیاری. Whether this space is created in Creating a space in |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time. Only populated in the output when |
last_active_time | فقط خروجی Timestamp of the last message in the space. |
admin_installed | فقط خروجی For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization. To support admin install, your Chat app must feature direct messaging. |
membership_count | فقط خروجی The count of joined memberships grouped by member type. Populated when the |
access_settings | اختیاری. Specifies the access setting of the space. Only populated when the |
space_uri | فقط خروجی The URI for a user to access the space. |
import_mode_expire_time | فقط خروجی The time when the space will be automatically deleted by the system if it remains in import mode. Each space created in import mode must exit this mode before this expire time using This field is only populated for spaces that were created with import mode. |
customer | اختیاری. تغییرناپذیر. The customer id of the domain of the space. Required only when creating a space with app authentication and In the format For DMs, this field isn't populated. |
Union field space_permission_settings . Represents the permission settings of a space. Only populated when the space_type is SPACE . space_permission_settings can be only one of the following: | |
predefined_permission_settings | اختیاری. Input only. Predefined space permission settings, input only when creating a space. If the field is not set, a collaboration space is created. After you create the space, settings are populated in the Setting predefined permission settings supports:
|
permission_settings | اختیاری. Space permission settings for existing spaces. Input for updating exact space permission settings, where existing permission settings are replaced. Output lists current permission settings. Reading and updating permission settings supports:
|
AccessSettings
Represents the access setting of the space.
فیلدها | |
---|---|
access_state | فقط خروجی Indicates the access state of the space. |
audience | اختیاری. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience . Format: To use the default target audience for the Google Workspace organization, set to Reading the target audience supports:
This field is not populated when using the Setting the target audience requires user authentication . |
AccessState
Represents the access state of the space.
Enums | |
---|---|
ACCESS_STATE_UNSPECIFIED | Access state is unknown or not supported in this API. |
PRIVATE | Only users or Google Groups that have been individually added or invited by other users or Google Workspace administrators can discover and access the space. |
DISCOVERABLE | A space manager has granted a target audience access to the space. Users or Google Groups that have been individually added or invited to the space can also discover and access the space. To learn more, see Make a space discoverable to specific users . Creating discoverable spaces requires user authentication . |
MembershipCount
Represents the count of memberships of a space, grouped into categories.
فیلدها | |
---|---|
joined_direct_human_user_count | فقط خروجی Count of human users that have directly joined the space, not counting users joined by having membership in a joined group. |
joined_group_count | فقط خروجی Count of all groups that have directly joined the space. |
PermissionSetting
Represents a space permission setting.
فیلدها | |
---|---|
managers_allowed | اختیاری. Whether space owners ( |
members_allowed | اختیاری. Whether basic space members ( |
PermissionSettings
Permission settings that you can specify when updating an existing named space.
To set permission settings when creating a space, specify the PredefinedPermissionSettings
field in your request.
فیلدها | |
---|---|
manage_members_and_groups | اختیاری. Setting for managing members and groups in a space. |
modify_space_details | اختیاری. Setting for updating space name, avatar, description and guidelines. |
toggle_history | اختیاری. Setting for toggling space history on and off. |
use_at_mention_all | اختیاری. Setting for using @all in a space. |
manage_apps | اختیاری. Setting for managing apps in a space. |
manage_webhooks | اختیاری. Setting for managing webhooks in a space. |
post_messages | فقط خروجی Setting for posting messages in a space. |
reply_messages | اختیاری. Setting for replying to messages in a space. |
PredefinedPermissionSettings
Predefined permission settings that you can only specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces .
Enums | |
---|---|
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED | Unspecified. استفاده نکنید. |
COLLABORATION_SPACE | Setting to make the space a collaboration space where all members can post messages. |
ANNOUNCEMENT_SPACE | Setting to make the space an announcement space where only space managers can post messages. |
SpaceDetails
Details about the space including description and rules.
فیلدها | |
---|---|
description | اختیاری. A description of the space. For example, describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters. |
guidelines | اختیاری. The space's rules, expectations, and etiquette. Supports up to 5,000 characters. |
SpaceThreadingState
Specifies the type of threading state in the Chat space.
Enums | |
---|---|
SPACE_THREADING_STATE_UNSPECIFIED | رزرو شده است. |
THREADED_MESSAGES | Named spaces that support message threads. When users respond to a message, they can reply in-thread, which keeps their response in the context of the original message. |
GROUPED_MESSAGES | Named spaces where the conversation is organized by topic. Topics and their replies are grouped together. |
UNTHREADED_MESSAGES | Direct messages (DMs) between two people and group conversations between 3 or more people. |
SpaceType
The type of space. Required when creating or updating a space. Output only for other usage.
Enums | |
---|---|
SPACE_TYPE_UNSPECIFIED | رزرو شده است. |
SPACE | A place where people send messages, share files, and collaborate. A SPACE can include Chat apps. |
GROUP_CHAT | Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps. |
DIRECT_MESSAGE | 1:1 messages between two humans or a human and a Chat app. |
تایپ کنید
Deprecated: Use SpaceType
instead.
Enums | |
---|---|
TYPE_UNSPECIFIED | رزرو شده است. |
ROOM | Conversations between two or more humans. |
DM | 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this doesn't include direct messages between two humans. |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
فیلدها | |
---|---|
spaces[] | A list of updated spaces. |
SpaceEvent
An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat .
فیلدها | |
---|---|
name | Resource name of the space event. Format: |
event_time | Time when the event occurred. |
event_type | Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For Supported event types for messages :
Supported event types for memberships :
Supported event types for reactions :
Supported event types about the space :
|
Union field | |
message_created_event_data | Event payload for a new message. Event type: |
message_updated_event_data | Event payload for an updated message. Event type: |
message_deleted_event_data | Event payload for a deleted message. Event type: |
message_batch_created_event_data | Event payload for multiple new messages. Event type: |
message_batch_updated_event_data | Event payload for multiple updated messages. Event type: |
message_batch_deleted_event_data | Event payload for multiple deleted messages. Event type: |
space_updated_event_data | Event payload for a space update. Event type: |
space_batch_updated_event_data | Event payload for multiple updates to a space. Event type: |
membership_created_event_data | Event payload for a new membership. Event type: |
membership_updated_event_data | Event payload for an updated membership. Event type: |
membership_deleted_event_data | Event payload for a deleted membership. Event type: |
membership_batch_created_event_data | Event payload for multiple new memberships. Event type: |
membership_batch_updated_event_data | Event payload for multiple updated memberships. Event type: |
membership_batch_deleted_event_data | Event payload for multiple deleted memberships. Event type: |
reaction_created_event_data | Event payload for a new reaction. Event type: |
reaction_deleted_event_data | Event payload for a deleted reaction. Event type: |
reaction_batch_created_event_data | Event payload for multiple new reactions. Event type: |
reaction_batch_deleted_event_data | Event payload for multiple deleted reactions. Event type: |
SpaceNotificationSetting
The notification setting of a user in a space.
فیلدها | |
---|---|
name | Identifier. The resource name of the space notification setting. Format: |
notification_setting | The notification setting. |
mute_setting | The space notification mute setting. |
MuteSetting
The space notification mute setting types.
Enums | |
---|---|
MUTE_SETTING_UNSPECIFIED | رزرو شده است. |
UNMUTED | The user will receive notifications for the space based on the notification setting. |
MUTED | The user will not receive any notifications for the space, regardless of the notification setting. |
NotificationSetting
The notification setting types. Other types might be supported in the future.
Enums | |
---|---|
NOTIFICATION_SETTING_UNSPECIFIED | رزرو شده است. |
ALL | Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user. |
MAIN_CONVERSATIONS | The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages. |
FOR_YOU | The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages. |
OFF | Notification is off. |
SpaceReadState
A user's read state within a space, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the space read state. Format: |
last_read_time | اختیاری. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. |
SpaceUpdatedEventData
Event payload for an updated space.
Event type: google.workspace.chat.space.v1.updated
فیلدها | |
---|---|
space | The updated space. |
موضوع
A thread in a Google Chat space. For example usage, see Start or reply to a message thread .
If you specify a thread when creating a message, you can set the messageReplyOption
field to determine what happens if no matching thread is found.
فیلدها | |
---|---|
name | Identifier. Resource name of the thread. Example: |
thread_key | اختیاری. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters. This ID is unique to the Chat app that sets it. For example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat app, specify the thread |
ThreadReadState
A user's read state within a thread, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the thread read state. Format: |
last_read_time | The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread. |
UpdateMembershipRequest
Request message for updating a membership.
فیلدها | |
---|---|
membership | مورد نیاز. The membership to update. Only fields specified by |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
UpdateMessageRequest
Request to update a message.
فیلدها | |
---|---|
message | مورد نیاز. Message with fields updated. |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
allow_missing | اختیاری. If |
UpdateSpaceNotificationSettingRequest
Request to update the space notification settings. Only supports updating notification setting for the calling user.
فیلدها | |
---|---|
space_notification_setting | مورد نیاز. The resource name for the space notification settings must be populated in the form of |
update_mask | مورد نیاز. Supported field paths:
|
UpdateSpaceReadStateRequest
Request message for UpdateSpaceReadState API.
فیلدها | |
---|---|
space_read_state | مورد نیاز. The space read state and fields to update. Only supports updating read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/spaceReadState |
update_mask | مورد نیاز. The field paths to update. Currently supported field paths:
When the To mark the space as read, set |
UpdateSpaceRequest
A request to update a single space.
فیلدها | |
---|---|
space | مورد نیاز. Space with fields to be updated. |
update_mask | مورد نیاز. The updated field paths, comma separated if there are multiple. You can update the following fields for a space:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Some |
کاربر
A user in Google Chat. When returned as an output from a request, if your Chat app authenticates as a user , the output for a User
resource only populates the user's name
and type
.
فیلدها | |
---|---|
name | Resource name for a Google Chat Format: For
|
display_name | فقط خروجی The user's display name. |
domain_id | Unique identifier of the user's Google Workspace domain. |
type | User type. |
is_anonymous | فقط خروجی When |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. DO NOT USE. |
HUMAN | Human user. |
BOT | Chat app user. |
UserMentionMetadata
Annotation metadata for user mentions (@).
فیلدها | |
---|---|
user | The user mentioned. |
type | The type of user mention. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add user to space. |
MENTION | Mention user in space. |
WidgetMarkup
A widget is a UI element that presents text and images.
فیلدها | |
---|---|
buttons[] | A list of buttons. Buttons is also |
Union field data . A WidgetMarkup can only have one of the following items. You can use multiple WidgetMarkup fields to display more items. data can be only one of the following: | |
text_paragraph | Display a text paragraph in this widget. |
image | Display an image in this widget. |
key_value | Display a key value item in this widget. |
دکمه
یک دکمه Can be a text button or an image button.
فیلدها | |
---|---|
Union field | |
text_button | A button with text and |
image_button | A button with image and |
FormAction
A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.
فیلدها | |
---|---|
action_method_name | The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior. |
parameters[] | List of action parameters. |
ActionParameter
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use action method = snooze()
, passing the snooze type and snooze time in the list of string parameters.
فیلدها | |
---|---|
key | The name of the parameter for the action script. |
value | The value of the parameter. |
نماد
The set of supported icons.
Enums | |
---|---|
ICON_UNSPECIFIED | |
AIRPLANE | |
BOOKMARK | |
BUS | |
CAR | |
CLOCK | |
CONFIRMATION_NUMBER_ICON | |
DOLLAR | |
DESCRIPTION | |
EMAIL | |
EVENT_PERFORMER | |
EVENT_SEAT | |
FLIGHT_ARRIVAL | |
FLIGHT_DEPARTURE | |
HOTEL | |
HOTEL_ROOM_TYPE | |
INVITE | |
MAP_PIN | |
MEMBERSHIP | |
MULTIPLE_PEOPLE | |
OFFER | |
PERSON | |
PHONE | |
RESTAURANT_ICON | |
SHOPPING_CART | |
STAR | |
STORE | |
TICKET | |
TRAIN | |
VIDEO_CAMERA | |
VIDEO_PLAY |
تصویر
An image that's specified by a URL and can have an onclick
action.
فیلدها | |
---|---|
image_url | The URL of the image. |
on_click | The |
aspect_ratio | The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image. |
دکمه تصویر
An image button with an onclick
action.
فیلدها | |
---|---|
on_click | The |
name | The name of this |
Union field icons . The icon can be specified by an Icon enum or a URL. icons can be only one of the following: | |
icon | The icon specified by an |
icon_url | The icon specified by a URL. |
KeyValue
A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick
button.
فیلدها | |
---|---|
top_label | The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content | The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content_multiline | If the content should be multiline. |
bottom_label | The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
on_click | The |
Union field icons . At least one of icons, top_label and bottom_label must be defined. icons can be only one of the following: | |
icon | An enum value that's replaced by the Chat API with the corresponding icon image. |
icon_url | The icon specified by a URL. |
Union field control . A control widget. You can set either button or switch_widget , but not both. control can be only one of the following: | |
button | A button that can be clicked to trigger an action. |
OnClick
An onclick
action (for example, open a link).
فیلدها | |
---|---|
Union field | |
action | A form action is triggered by this |
open_link | This |
OpenLink
A link that opens a new window.
فیلدها | |
---|---|
url | The URL to open. |
TextButton
A button with text and onclick
action.
فیلدها | |
---|---|
text | The text of the button. |
on_click | The |
TextParagraph
A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .
فیلدها | |
---|---|
text | |