شاخص
-
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
(پیام)
سرویس چت
توسعه دهندگان را قادر می سازد تا برنامه های گپ و ادغام را در سیستم عامل Google Chat ایجاد کنند.
CompleteImportSpace |
---|
فرآیند واردات را برای فضای مشخص شده تکمیل می کند و آن را برای کاربران قابل مشاهده می کند. به احراز هویت کاربر و تفویض اختیار در سطح دامنه با محدوده مجوز نیاز دارد:
برای اطلاعات بیشتر، به مجوز برنامههای گپ Google برای وارد کردن دادهها مراجعه کنید.
|
CreateCustomEmoji |
---|
یک ایموجی سفارشی ایجاد می کند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با دامنه مجوز دارد:
|
ایجاد عضویت |
---|
عضویت در برنامه چت تماس ، کاربر یا یک گروه Google را ایجاد می کند. ایجاد عضویت برای سایر برنامه های چت پشتیبانی نمی شود. هنگام ایجاد عضویت، اگر خطمشی پذیرش خودکار عضو مشخصشده خاموش باشد، دعوت میشود و باید قبل از پیوستن، دعوت فضایی را بپذیرد. در غیر این صورت ، ایجاد عضویت ، عضو را مستقیماً به فضای مشخص شده اضافه می کند. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمیشود:
برای مثال استفاده، نگاه کنید به:
|
ایجاد پیام |
---|
پیامی را در فضای چت Google ایجاد می کند. برای مثال، به ارسال پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
Chat بسته به نوع احراز هویتی که در درخواست خود استفاده می کنید، فرستنده پیام را متفاوت نسبت می دهد. تصویر زیر نشان می دهد که چگونه Chat هنگام استفاده از احراز هویت برنامه، پیامی را نسبت می دهد. Chat برنامه چت را به عنوان فرستنده پیام نمایش می دهد. محتوای پیام میتواند شامل متن ( The following image shows how Chat attributes a message when you use user authentication. Chat کاربر را به عنوان فرستنده پیام نمایش می دهد و برنامه Chat را با نمایش نام پیام به آن نسبت می دهد. محتوای پیام فقط می تواند حاوی متن ( حداکثر اندازه پیام، با احتساب محتوای پیام، 32000 بایت است. برای درخواست های وب هوک ، پاسخ حاوی پیام کامل نیست. پاسخ فقط فیلدهای
|
CreateReaction |
---|
یک واکنش ایجاد می کند و آن را به یک پیام اضافه می کند. برای مثال، افزودن واکنش به پیام را ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
CreateSpace |
---|
فضا ایجاد می کند. می توان از آن برای ایجاد یک فضای نامگذاری شده یا یک چت گروهی در از انواع احراز هویت زیر پشتیبانی می کند:
هنگام احراز هویت به عنوان یک برنامه، قسمت هنگام احراز هویت به عنوان یک برنامه، برنامه Chat به عنوان عضوی از فضا اضافه می شود. با این حال ، بر خلاف احراز هویت انسانی ، برنامه گپ به عنوان مدیر فضا اضافه نمی شود. به طور پیش فرض ، برنامه چت توسط همه اعضای فضایی می تواند از فضا خارج شود. برای اینکه فقط مدیران فضا بتوانند برنامه را از یک فضا حذف کنند ، عضویت در فضا پس از ایجاد بستگی به این دارد که آیا فضا در
اگر هنگام ایجاد یک فضا ، پیام خطا را
|
حذف سفارشی ایموجی |
---|
یک ایموجی سفارشی را حذف می کند. به طور پیش فرض، کاربران فقط می توانند شکلک های سفارشی خود را حذف کنند. مدیران ایموجی که توسط مدیر منصوب شده است می توانند هر ایموجی سفارشی را در سازمان حذف کنند. به آموزش درباره شکلک های سفارشی در گپ Google مراجعه کنید. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر ، به یادگیری در مورد ایموجی های سفارشی در Google Chat مراجعه کنید و مجوزهای ایموجی سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با دامنه مجوز دارد:
|
حذف عضویت |
---|
عضویت را حذف می کند. For an example, see Remove a user or a Google Chat app from a space . از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمی شود:
برای حذف عضویت برای مدیران فضا، درخواست کننده باید یک مدیر فضا باشد. If you're using app authentication the Chat app must be the space creator.
|
حذف |
---|
یک پیام را حذف می کند. برای مثال، حذف یک پیام را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
هنگام استفاده از تأیید اعتبار برنامه ، درخواست ها فقط می توانند پیام های ایجاد شده توسط برنامه چت تماس را حذف کنند.
|
DeleteReaction |
---|
واکنش به یک پیام را حذف می کند. برای مثال، حذف واکنش را ببینید. به احراز هویت کاربر با یکی از اسکوپ های مجوز زیر نیاز دارد:
|
DeleteSpace |
---|
فضای نامگذاری شده را حذف می کند. همیشه یک حذف آبشاری انجام می دهد، به این معنی که منابع فرزند فضا - مانند پیام های ارسال شده در فضا و عضویت در فضا - نیز حذف می شوند. برای مثال، حذف یک فاصله را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
|
FindDirectMessage |
---|
Returns the existing direct message with the specified user. اگر فضای پیام مستقیم پیدا نشد، خطای با احراز هویت برنامه ، فضای پیام مستقیم بین کاربر مشخص شده و برنامه چت در حال تماس را برمیگرداند. با احراز هویت کاربر ، فضای پیام مستقیم بین کاربر مشخص شده و کاربر احراز هویت شده را برمی گرداند. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetAttachment |
---|
فراداده یک پیوست پیام را دریافت می کند. داده های پیوست با استفاده از API رسانه ای بدست می آیند. به عنوان مثال ، به ابرداده در مورد پیوست پیام مراجعه کنید. Requires app authentication with the authorization scope :
|
GetCustomEmoji |
---|
جزئیات یک ایموجی سفارشی را برمیگرداند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از اسکوپ های مجوز زیر نیاز دارد:
|
GetMembership |
---|
جزئیات عضویت را برمیگرداند. به عنوان مثال ، به جزئیات مربوط به عضویت برنامه کاربر یا Google Chat مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetMessage |
---|
جزئیات یک پیام را برمی گرداند. برای مثال ، به جزئیات مربوط به یک پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
توجه: ممکن است پیامی را از یک عضو یا فضای مسدود شده برگرداند.
|
GetSpace |
---|
جزئیات یک فضا را برمیگرداند. برای مثال، به دریافت جزئیات در مورد یک فضا مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه دارای محدودیت های زیر است:
|
GetSpaceEvent |
---|
رویدادی را از فضای گپ Google برمیگرداند. بارگذاری رویداد حاوی جدیدترین نسخه منبعی است که تغییر کرده است. به عنوان مثال، اگر رویدادی را درباره یک پیام جدید درخواست کنید اما پیام بعداً بهروزرسانی شد، سرور منبع توجه: قسمت به احراز هویت کاربر با دامنه مجوز مناسب برای خواندن داده های درخواست شده نیاز دارد:
برای به دست آوردن یک رویداد ، کاربر معتبر باید عضو فضا باشد. به عنوان مثال ، جزئیات مربوط به یک رویداد را از یک فضای چت Google دریافت کنید .
|
GetSpaceNotificationSetting |
---|
تنظیمات اعلان فضایی را دریافت می کند. به عنوان مثال ، به تنظیم اطلاع رسانی فضایی تماس گیرنده مراجعه کنید. نیاز به احراز هویت کاربر با محدوده مجوز :
|
GetSpaceReadState |
---|
جزئیات مربوط به حالت خوانده شده کاربر را در یک فضا ، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود ، برمی گرداند. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن فضای کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
GetThreadReadState |
---|
جزئیات مربوط به حالت خوانده شده کاربر را در یک موضوع باز می گرداند ، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن رشته کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
ListCustomEmojis |
---|
ایموجی های سفارشی قابل مشاهده برای کاربر معتبر است. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر ، به یادگیری در مورد ایموجی های سفارشی در Google Chat مراجعه کنید و مجوزهای ایموجی سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
لیست اعضا |
---|
عضویت ها را در یک فضا فهرست می کند. برای مثال، فهرست کاربران و برنامههای چت Google را در یک فضا ببینید. فهرست کردن عضویتها با احراز هویت برنامه، عضویتها را در فضاهایی فهرست میکند که برنامه Chat به آنها دسترسی دارد، اما عضویتهای برنامه Chat، از جمله عضویت خود را استثنا نمیکند. لیست عضویت با تأیید اعتبار کاربر ، عضویت در فضاهایی را که کاربر معتبر به آن دسترسی دارد ، لیست می کند. از انواع احراز هویت زیر پشتیبانی می کند:
|
ListMessages |
---|
پیام هایی را در فضایی که تماس گیرنده عضو آن است ، از جمله پیام های اعضای مسدود شده و فضاها لیست می کند. اگر پیام ها را از فضایی بدون پیام لیست کنید ، پاسخ یک شیء خالی است. When using a REST/HTTP interface, the response contains an empty JSON object, Requires user authentication with one of the following authorization scopes :
|
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 | Length of the substring in the plain-text message body this annotation corresponds to. در صورت وجود ، طول 0 را نشان می دهد. |
start_index | Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to. |
Union Field metadata . ابرداده اضافی در مورد حاشیه نویسی. metadata فقط می تواند یکی از موارد زیر باشد: | |
user_mention | ابرداده از کاربر ذکر شده است. |
slash_command | ابرداده برای یک فرمان برش. |
rich_link_metadata | The metadata for a rich link. |
custom_emoji_metadata | ابرداده برای یک ایموجی سفارشی. |
حاشیه نویسی
Type of the annotation.
Enums | |
---|---|
ANNOTATION_TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید |
USER_MENTION | یک کاربر ذکر شده است. |
SLASH_COMMAND | یک دستور slash فراخوانی شده است. |
RICH_LINK | حاشیه نویسی پیوند غنی. |
CUSTOM_EMOJI | حاشیه نویسی ایموجی سفارشی. |
aspcommandmetadata
Metadata about a Chat app command .
فیلدها | |
---|---|
app_command_id | شناسه برای دستور مشخص شده در پیکربندی API چت. |
app_command_type | نوع دستور برنامه چت. |
عکسبرداری
نوع دستور برنامه چت. برای جزئیات بیشتر ، به انواع دستورات برنامه چت مراجعه کنید.
Enums | |
---|---|
APP_COMMAND_TYPE_UNSPECIFIED | مقدار پیش فرض نامشخص |
SLASH_COMMAND | A slash command. کاربر دستور را در یک پیام گپ ارسال می کند. |
QUICK_COMMAND | یک دستور سریع کاربر دستور را از منوی چت در منطقه پاسخ پیام انتخاب می کند. |
ضمیمه
تصویری GIF که توسط یک URL مشخص شده است.
فیلدها | |
---|---|
uri | فقط خروجی URL که میزبان تصویر GIF است. |
پیوست
پیوست در گپ گوگل.
فیلدها | |
---|---|
name | اختیاری. نام منبع ضمیمه ، در |
content_name | فقط خروجی نام اصلی پرونده برای محتوا ، نه مسیر کامل. |
content_type | فقط خروجی نوع محتوا (نوع MIME) پرونده. |
thumbnail_uri | فقط خروجی URL تصویر کوچک که باید برای پیش نمایش دلبستگی به یک کاربر انسانی استفاده شود. برنامه های گپ نباید از این URL برای بارگیری محتوای پیوست استفاده کنند. |
download_uri | فقط خروجی URL بارگیری که باید از آن استفاده شود تا کاربر انسانی بتواند پیوست را بارگیری کند. برنامه های گپ نباید از این URL برای بارگیری محتوای پیوست استفاده کنند. |
source | فقط خروجی منبع پیوست. |
Union Field data_ref . مرجع داده به پیوست. data_ref تنها می تواند یکی از موارد زیر باشد: | |
attachment_data_ref | اختیاری. مرجع داده های پیوست. This field is used to create or update messages with attachments, or with the media API to download the attachment data. |
drive_data_ref | فقط خروجی مرجع پیوست Google Drive. این قسمت با Google Drive API استفاده می شود. |
منبع
منبع پیوست.
Enums | |
---|---|
SOURCE_UNSPECIFIED | رزرو شده است. |
DRIVE_FILE | پرونده یک پرونده Google Drive است. |
UPLOADED_CONTENT | پرونده برای گپ بارگذاری می شود. |
AttachmentDataref
A reference to the attachment data.
فیلدها | |
---|---|
resource_name | اختیاری. The resource name of the attachment data. این قسمت با استفاده از API Media برای بارگیری داده های پیوست استفاده می شود. |
attachment_upload_token | اختیاری. نشانه مات حاوی مرجع به پیوست آپلود شده. Treated by clients as an opaque string and used to create or update Chat messages with attachments. |
calendareventlinkdata
داده ها برای پیوندهای رویداد تقویم.
فیلدها | |
---|---|
calendar_id | شناسه تقویم تقویم مرتبط. |
event_id | The Event identifier of the linked Calendar event. |
کارتن
کارت در پیام گپ Google.
فقط برنامه های چت می توانند کارت ایجاد کنند. اگر برنامه چت شما به عنوان کاربر تأیید می شود ، پیام نمی تواند حاوی کارت باشد.
کارت های طراحی و پیش نمایش با سازنده کارت.
Open the Card Builderفیلدها | |
---|---|
card_id | اگر پیام حاوی چندین کارت باشد ، لازم است. یک شناسه منحصر به فرد برای کارت در یک پیام. |
card | کارت حداکثر اندازه 32 کیلوبایت است. |
chatspacelinkdata
داده ها برای پیوندهای فضایی چت.
فیلدها | |
---|---|
space | فضای منبع فضایی چت مرتبط. قالب: |
thread | موضوع منبع فضایی چت مرتبط. Format: |
message | پیام منبع فضایی چت مرتبط. قالب: |
CompleteImportSpaceRequest
پیام را برای تکمیل فرایند واردات برای یک فضا درخواست کنید.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع فضای حالت واردات. قالب: |
پاسخ کامل
پیام پاسخ برای تکمیل فرآیند واردات برای یک فضا.
فیلدها | |
---|---|
space | فضای حالت واردات. |
متناسب
این نوع فیلدهایی ندارد.
نشانه گذاری برای توسعه دهندگان برای مشخص کردن محتوای یک افزونه متنی.
کارت
کارت یک عنصر UI است که می تواند حاوی ابزارک های UI مانند متن و تصاویر باشد.
فیلدها | |
---|---|
header | هدر کارت. یک هدر معمولاً شامل یک عنوان و یک تصویر است. |
sections[] | بخش ها توسط یک تقسیم کننده خط از هم جدا می شوند. |
card_actions[] | اقدامات این کارت |
name | نام کارت |
کاردستی
اقدام کارت عمل مرتبط با کارت است. برای کارت فاکتور ، یک اقدام معمولی خواهد بود: فاکتور ، فاکتور ایمیل را حذف کنید یا فاکتور را در مرورگر باز کنید.
توسط برنامه های گپ Google پشتیبانی نمی شود.
فیلدها | |
---|---|
action_label | برچسب مورد استفاده در مورد منوی اکشن نمایش داده می شود. |
on_click | عمل OnClick برای این مورد اقدام. |
CardHeader
فیلدها | |
---|---|
title | عنوان باید مشخص شود. این هدر دارای ارتفاع ثابت است: اگر هم عنوان و هم زیرنویس مشخص شده باشد ، هر یک یک خط را به خود اختصاص می دهد. اگر فقط عنوان مشخص شده باشد ، هر دو خط را به خود اختصاص می دهد. |
subtitle | زیرنویس هدر کارت. |
image_style | The image's type (for example, square border or circular border). |
image_url | URL تصویر در هدر کارت. |
تصویر
Enums | |
---|---|
IMAGE_STYLE_UNSPECIFIED | |
IMAGE | مرز مربع |
AVATAR | مرز دایره ای. |
بخش
یک بخش شامل مجموعه ای از ابزارک ها است که به ترتیب مشخص شده (به صورت عمودی) ارائه می شوند. در تمام سیستم عامل ها ، کارت ها دارای عرض ثابت باریک هستند ، بنابراین در حال حاضر نیازی به خصوصیات چیدمان (به عنوان مثال ، شناور) نیست.
فیلدها | |
---|---|
header | هدر بخش. متن فرمت شده پشتیبانی می شود. برای کسب اطلاعات بیشتر در مورد قالب بندی متن ، به قالب بندی متن در برنامه های گپ Google و قالب بندی متن در افزودنی های فضای کاری Google مراجعه کنید. |
widgets[] | A section must contain at least one widget. |
CreateCustomemoJireQuest
A request to create a custom emoji.
فیلدها | |
---|---|
custom_emoji | مورد نیاز. ایموجی های سفارشی برای ایجاد. |
CreatemembershipRequest
برای ایجاد عضویت پیام را درخواست کنید.
فیلدها | |
---|---|
parent | مورد نیاز. نام منابع فضایی که برای ایجاد عضویت برای آن ایجاد می شود. قالب: فضاها/{فضا} |
membership | مورد نیاز. رابطه عضویت برای ایجاد. قسمت هنگامی که یک برنامه چت یک رابطه عضویت برای یک کاربر انسانی ایجاد می کند ، باید از اسکوپ های مجوز خاصی استفاده کند و مقادیر خاصی را برای زمینه های خاص تعیین کند:
دعوت از کاربران خارجی به سازمان فضای کاری که صاحب این فضا است ، نیاز به احراز هویت کاربر دارد. هنگامی که یک برنامه چت یک رابطه عضویت را برای خود ایجاد می کند ، باید به عنوان کاربر تأیید شود و از دامنه |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه ایجاد عضویت در برنامه یا ایجاد عضویت برای کاربران خارج از سازمان فضای کاری Google Administrator با استفاده از Admin Access پشتیبانی نمی شود. |
createmessagerequest
پیام ایجاد می کند.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضایی که در آن می توانید پیام ایجاد کنید. قالب: |
message | مورد نیاز. بدن پیام |
thread_key | اختیاری. deprecated: به جای آن از |
request_id | اختیاری. شناسه درخواست منحصر به فرد برای این پیام. مشخص کردن یک شناسه درخواست موجود ، پیام ایجاد شده با آن شناسه را به جای ایجاد پیام جدید برمی گرداند. |
message_reply_option | اختیاری. مشخص می کند که آیا یک پیام یک موضوع را شروع می کند یا به یکی پاسخ می دهد. فقط در فضاهای نامگذاری شده پشتیبانی می شود. هنگام پاسخ به تعامل کاربر ، این قسمت نادیده گرفته می شود. برای تعامل در یک موضوع ، پاسخ در همان موضوع ایجاد می شود. در غیر این صورت ، پاسخ به عنوان یک موضوع جدید ایجاد می شود. |
message_id | اختیاری. یک شناسه سفارشی برای یک پیام. اجازه می دهیم برنامه های گپ بدون نیاز به ذخیره شناسه تعیین شده توسط سیستم در نام منبع پیام (که در قسمت The value for this field must meet the following requirements:
برای جزئیات بیشتر ، به یک پیام مراجعه کنید. |
پیام رسانی
Specifies how to reply to a message. ممکن است کشورهای بیشتری در آینده اضافه شوند.
Enums | |
---|---|
MESSAGE_REPLY_OPTION_UNSPECIFIED | پیش فرض یک موضوع جدید را شروع می کند. Using this option ignores any thread ID or that's included. |
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD | پیام را به عنوان پاسخی به موضوع مشخص شده توسط thread ID یا ایجاد می کند. If it fails, the message starts a new thread instead. |
REPLY_MESSAGE_OR_FAIL | پیام را به عنوان پاسخی به موضوع مشخص شده توسط thread ID یا ایجاد می کند. If a new thread_key is used, a new thread is created. اگر ایجاد پیام از بین برود ، به جای آن یک خطای NOT_FOUND بازگردانده می شود. |
رفیق
واکنشی به یک پیام ایجاد می کند.
فیلدها | |
---|---|
parent | مورد نیاز. پیامی که در آن واکنش ایجاد شده است. قالب: |
reaction | مورد نیاز. واکنش برای ایجاد. |
CreateSpacereQuest
درخواستی برای ایجاد یک فضای نامگذاری شده بدون عضو.
فیلدها | |
---|---|
space | مورد نیاز. زمینه های اگر پیام خطا را |
request_id | اختیاری. یک شناسه منحصر به فرد برای این درخواست. یک UUID تصادفی توصیه می شود. مشخص کردن شناسه درخواست موجود ، فضای ایجاد شده با آن شناسه را به جای ایجاد یک فضای جدید باز می گرداند. مشخص کردن شناسه درخواست موجود از همان برنامه چت با کاربر معتبر متفاوت خطایی را برمی گرداند. |
سفارشی
نمایانگر یک ایموجی سفارشی است .
فیلدها | |
---|---|
name | شناسه نام منبع ایموجی های سفارشی ، که توسط سرور اختصاص داده شده است. قالب: |
uid | فقط خروجی کلید منحصر به فرد برای منبع ایموجی سفارشی. |
emoji_name | اختیاری. تغییر ناپذیر نام توسط کاربر برای ایموجی های سفارشی ، که در سازمان بی نظیر است. هنگام ایجاد ایموجی های سفارشی ، مورد نیاز است ، فقط در غیر این صورت خروجی. نامهای ایموجی باید با استفاده از کلون ها شروع و پایان یابد ، باید حروف کوچک باشد و فقط می تواند حاوی شخصیت های الفبایی ، هیپنوها و زیرزمین ها باشد. Hyphens and underscores should be used to separate words and cannot be used consecutively. مثال :: |
temporary_image_uri | فقط خروجی یک URL موقت تصویر برای ایموجی های سفارشی ، حداقل برای 10 دقیقه معتبر است. توجه داشته باشید که هنگام ایجاد ایموجی های سفارشی ، این در پاسخ جمع نمی شود. |
payload | اختیاری. فقط ورودی داده های بارگذاری Required when the custom emoji is created. |
بار سفارشی
داده های بار برای ایموجی های سفارشی.
فیلدها | |
---|---|
file_content | مورد نیاز. Input only. تصویری که برای ایموجی های سفارشی استفاده می شود. بار بار باید زیر 256 کیلوبایت باشد و ابعاد تصویر باید مربع و بین 64 تا 500 پیکسل باشد. محدودیت ها در معرض تغییر هستند. |
filename | مورد نیاز. فقط ورودی نام پرونده تصویر پسوند پرونده پشتیبانی شده: |
سفارشی
ابرداده حاشیه نویسی برای ایموجی های سفارشی.
فیلدها | |
---|---|
custom_emoji | ایموجی های سفارشی. |
leeletecustomemojirequest
درخواست حذف ایموجی های سفارشی.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع ایموجی های سفارشی برای حذف. قالب: You can use the emoji name as an alias for |
DeletemembershipRequest
درخواست حذف عضویت در یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع عضویت برای حذف. برنامه های گپ می توانند عضویت کاربران انسانی یا خود را حذف کنند. برنامه های چت نمی توانند عضویت برنامه های دیگر را حذف کنند. هنگام حذف عضویت در انسانی ، به دامنه هنگام حذف عضویت در برنامه ، Format: |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه حذف عضویت در برنامه در یک فضا با استفاده از دسترسی مدیر پشتیبانی نمی شود. |
DeleteMessageRequest
درخواست حذف پیام.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع پیام. قالب: اگر یک شناسه سفارشی را برای پیام خود تنظیم کرده اید ، می توانید از قسمت |
force | اختیاری. هنگامی که فقط در هنگام تأیید اعتبار به عنوان کاربر اعمال می شود. در هنگام تأیید اعتبار به عنوان برنامه چت هیچ تاثیری ندارد. |
deletereactionRequest
واکنشی به یک پیام حذف می کند.
فیلدها | |
---|---|
name | مورد نیاز. نام واکنش برای حذف. قالب: |
leletespacerequest
درخواست حذف یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space to delete. قالب: |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه |
حذف metadata
Information about a deleted message. هنگام تنظیم delete_time
یک پیام حذف می شود.
فیلدها | |
---|---|
deletion_type | نشان می دهد چه کسی پیام را حذف کرده است. |
حذف
چه کسی پیام را حذف کرد و چگونه حذف شد. مقادیر بیشتری ممکن است در آینده اضافه شود. برای جزئیات بیشتر در مورد حذف پیام ها ، ویرایش یا حذف پیام در Google Chat را مشاهده کنید.
Enums | |
---|---|
DELETION_TYPE_UNSPECIFIED | این مقدار بلااستفاده است. |
CREATOR | کاربر پیام خود را حذف کرد. |
SPACE_OWNER | A space manager deleted the message. |
ADMIN | یک مدیر فضای کاری Google پیام را حذف کرد. سرپرستان می توانند هر پیام را در فضا حذف کنند ، از جمله پیام های ارسال شده توسط هر یک از اعضای فضایی یا برنامه چت. |
APP_MESSAGE_EXPIRY | یک برنامه گپ هنگام انقضا ، پیام خود را حذف کرد. |
CREATOR_VIA_APP | یک برنامه چت پیام را به نمایندگی از خالق (با استفاده از تأیید اعتبار کاربر) حذف کرد. |
SPACE_OWNER_VIA_APP | A Chat app deleted the message on behalf of a space manager (using user authentication). |
SPACE_MEMBER | یکی از اعضای فضا پیام را حذف کرد. کاربران می توانند پیام های ارسال شده توسط برنامه ها را حذف کنند. |
گفتگو
بسته بندی اطراف بدنه دیالوگ.
فیلدها | |
---|---|
body | Input only. بدنه گفتگو ، که در یک معین ارائه می شود. برنامه های گپ Google از موجودات کارت زیر پشتیبانی نمی کنند: |
گفتگو
حاوی یک گفتگوی و کد وضعیت درخواست است.
فیلدها | |
---|---|
action_status | فقط ورودی وضعیت برای درخواست برای استناد به یا ارسال گفتگو . در صورت لزوم وضعیت و پیام را به کاربران نشان می دهد. به عنوان مثال ، در صورت بروز خطا یا موفقیت. |
action میدانی اتحادیه. عمل برای انجام action can be only one of the following: | |
dialog | Input only. گفتگو برای درخواست. |
Driendataref
اشاره به داده های پیوست درایو.
فیلدها | |
---|---|
drive_file_id | شناسه پرونده درایو. با API درایو استفاده کنید. |
دیلینکستاتا
داده ها برای پیوندهای Google Drive.
فیلدها | |
---|---|
drive_data_ref | یک Driredataref که به یک پرونده Google Drive اشاره می کند. |
mime_type | نوع MIME منبع Google Drive Linked. |
ایموجی
ایموجی که به عنوان واکنشی به یک پیام استفاده می شود.
فیلدها | |
---|---|
content میدان اتحادیه. مورد نیاز. محتوای ایموجی ها. content می تواند تنها یکی از موارد زیر باشد: | |
unicode | اختیاری. یک ایموجی اساسی که توسط یک رشته یونیکد نشان داده شده است. |
custom_emoji | A custom emoji. |
emojirectionsummary
تعداد افرادی که با یک ایموجی خاص به پیام واکنش نشان دادند.
فیلدها | |
---|---|
emoji | فقط خروجی ایموجی های مرتبط با واکنش. |
reaction_count | فقط خروجی تعداد کل واکنش ها با استفاده از ایموجی های مرتبط. |
FindDirectMessagerequest
درخواستی برای دریافت فضای پیام مستقیم بر اساس منبع کاربر.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع کاربر برای یافتن پیام مستقیم با. قالب: |
GetAttachmentRequest
درخواست دریافت پیوست.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع ضمیمه ، در |
getCustomemoJireQuest
درخواست بازگشت یک ایموجی سفارشی واحد.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the custom emoji. قالب: می توانید از نام ایموجی به عنوان نام مستعار برای |
GetMembershipRequest
درخواست عضویت در یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع عضویت برای بازیابی. برای به دست آوردن عضویت خود برنامه با استفاده از تأیید اعتبار کاربر ، می توانید به صورت اختیاری قالب: می توانید از ایمیل کاربر به عنوان نام مستعار برای |
use_admin_access | اختیاری. در صورت The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . نیاز به دریافت عضویت در برنامه در یک فضا هنگام استفاده از Admin Access پشتیبانی نمی شود. |
GetMessagerEquest
Request to get a message.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع پیام. قالب: اگر یک شناسه سفارشی را برای پیام خود تنظیم کرده اید ، می توانید از قسمت |
getSpaceEventRequest
برای دریافت یک رویداد فضایی پیام را درخواست کنید.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع رویداد فضایی. قالب: |
getSpacenotificationatingRequest
برای دریافت تنظیم اطلاع رسانی فضایی ، پیام را درخواست کنید. فقط از دریافت تنظیم اعلان برای کاربر فراخوانی پشتیبانی می کند.
فیلدها | |
---|---|
name | مورد نیاز. قالب: کاربران/{کاربر}/فضاها/{فضا}/Spacenotificationationsing
|
getSpacereadStaterequest
درخواست پیام برای API GetSpacereadState.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع از حالت خوانده شده برای بازیابی. فقط از خواندن حالت خوانده شده برای کاربر فراخوانی پشتیبانی می کند. برای مراجعه به کاربر تماس ، یکی از موارد زیر را تنظیم کنید:
Format: users/{user}/spaces/{space}/spaceReadState |
GetSpacereQuest
درخواست بازگشت یک فضای واحد.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع فضا ، در قالب: |
use_admin_access | اختیاری. When کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به Scopes |
GetThreadReadStateRequest
Request message for GetThreadReadStateRequest API.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع موضوع موضوع را برای بازیابی. فقط از خواندن حالت خوانده شده برای کاربر فراخوانی پشتیبانی می کند. برای مراجعه به کاربر تماس ، یکی از موارد زیر را تنظیم کنید:
فرمت: کاربران/{کاربر}/فضاها/{فضا}/موضوع/{موضوع}/ThreadReadState |
گروه
یک گروه Google در Google Chat.
فیلدها | |
---|---|
name | نام منابع برای یک گروه Google. گروهی در گروه های هویت ابری API را نشان می دهد. قالب: گروه ها/{گروه} |
تاریخچه
وضعیت تاریخ برای پیام ها و فضاها. Specifies how long messages and conversation threads are kept after creation.
Enums | |
---|---|
HISTORY_STATE_UNSPECIFIED | مقدار پیش فرض استفاده نکنید. |
HISTORY_OFF | تاریخ خاموش. Messages and threads are kept for 24 hours . |
HISTORY_ON | تاریخ در. قوانین حفظ طاق سازمان مشخص می کند که چه مدت پیام ها و موضوعات نگه داشته می شوند. |
ListCustomeMoJisRequest
درخواست بازگشت لیستی از ایموجی های سفارشی.
فیلدها | |
---|---|
page_size | اختیاری. حداکثر تعداد ایموجی های سفارشی بازگشتند. این سرویس می تواند کمتر از این مقدار ایموجی های سفارشی برگردد. اگر نامشخص باشد ، مقدار پیش فرض 25 است. حداکثر مقدار 200 است. مقادیر بالاتر از 200 به 200 تغییر می یابد. |
page_token | اختیاری. (در صورت از سرگیری از یک پرس و جو قبلی.) نشانه ای از صفحه دریافت شده از لیست قبلی تماس ایموجی سفارشی. این کار را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، مقدار فیلتر باید با تماس ارائه شده با صفحه مطابقت داشته باشد. عبور از یک مقدار متفاوت ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. از فیلتر توسط خالق پشتیبانی می کند. برای فیلتر کردن توسط خالق ، باید یک مقدار معتبر را مشخص کنید. در حال حاضر فقط به عنوان مثال ، پرس و جو زیر ایموجی های سفارشی ایجاد شده توسط تماس گیرنده را برمی گرداند:
نمایش داده شدگان نامعتبر با یک خطای |
پاسخ لیست
پاسخ به لیست ایموجی های سفارشی.
فیلدها | |
---|---|
custom_emojis[] | لیست بدون هماهنگ. لیست ایموجی های سفارشی. |
next_page_token | نشانه ای که می توانید به عنوان |
listmembershipsrequest
درخواست پیام برای لیست عضویت.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضایی که می توانید لیست عضویت را بدست آورید. قالب: فضاها/{فضا} |
page_size | اختیاری. حداکثر تعداد عضویت برای بازگشت. این سرویس ممکن است کمتر از این مقدار برگردد. در صورت نامشخص ، حداکثر 100 عضویت بازگردانده می شوند. 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 | اختیاری. یک نشان صفحه ، از یک تماس قبلی برای لیست عضویت دریافت شده است. این پارامتر را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، تمام پارامترهای دیگر ارائه شده باید با تماس ارائه شده با صفحه نمایش مطابقت داشته باشند. انتقال مقادیر مختلف به پارامترهای دیگر ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. شما می توانید عضویت در نقش ( برای فیلتر کردن بر اساس نقش ، برای فیلتر کردن بر اساس نوع ، برای فیلتر کردن توسط هر دو نقش و نوع ، از اپراتور هر دو به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده های زیر نامعتبر است:
نمایش داده شدگان نامعتبر توسط سرور با یک خطای |
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 | Output only. 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 | اختیاری. Output only. 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. Don't use. |
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. Don't use. |
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 | Output only. 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 | اختیاری. Immutable. 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 | اختیاری. Immutable. 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. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role. |
ROLE_MANAGER | A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in SpaceType.SPACE . |
MembershipState
Specifies the member's relationship with a space. Other membership states might be supported in the future.
Enums | |
---|---|
MEMBERSHIP_STATE_UNSPECIFIED | Default value. Don't use. |
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 | Output only. The user who created the message. If your Chat app authenticates as a user , the output populates the user |
create_time | اختیاری. Immutable. 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 | Output only. 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 | Output only. 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 | Output only. 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[] | Output only. 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 | Output only. 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 | Output only. Plain-text body of the message with all Chat app mentions stripped out. |
slash_command | Output only. Slash command information, if applicable. |
attachment[] | اختیاری. User-uploaded attachment. |
matched_url | Output only. A URL in |
thread_reply | Output only. 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[] | Output only. The list of emoji reaction summaries on the message. |
private_message_viewer | اختیاری. Immutable. 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 | Output only. Information about a deleted message. A message is deleted when |
quoted_message_metadata | Output only. Information about a message that's quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it. |
attached_gifs[] | Output only. 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 quoted message.
فیلدها | |
---|---|
name | Output only. Resource name of the quoted message. Format: |
last_update_time | Output only. The timestamp when the quoted message was created or when the quoted message was last updated. |
واکنش
A reaction to a message.
فیلدها | |
---|---|
name | Identifier. The resource name of the reaction. Format: |
user | Output only. 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. Don't use. |
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. Don't use. |
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 | Output only. 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 | Output only. 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 | اختیاری. Immutable. 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 | Output only. 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 | اختیاری. Immutable. 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 | Output only. Timestamp of the last message in the space. |
admin_installed | Output only. 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 | Output only. 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 | Output only. The URI for a user to access the space. |
import_mode_expire_time | Output only. 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 | اختیاری. Immutable. 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 | Output only. 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 | Output only. Count of human users that have directly joined the space, not counting users joined by having membership in a joined group. |
joined_group_count | Output only. Count of all groups that have directly joined the space. |
PermissionSetting
Represents a space permission setting.
فیلدها | |
---|---|
managers_allowed | اختیاری. Whether spaces managers have this permission. |
members_allowed | اختیاری. Whether non-manager members have this permission. |
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 | Output only. 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. Don't use. |
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 | Output only. The user's display name. |
domain_id | Unique identifier of the user's Google Workspace domain. |
type | User type. |
is_anonymous | Output only. When |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
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. Don't use. |
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. |
دکمه
A button. 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. |
ImageButton
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 | |