Variables
AnnotationType_name, AnnotationType_value
var (
AnnotationType_name = map[int32]string{
0: "ANNOTATION_TYPE_UNSPECIFIED",
1: "USER_MENTION",
2: "SLASH_COMMAND",
3: "RICH_LINK",
}
AnnotationType_value = map[string]int32{
"ANNOTATION_TYPE_UNSPECIFIED": 0,
"USER_MENTION": 1,
"SLASH_COMMAND": 2,
"RICH_LINK": 3,
}
)
Enum value maps for AnnotationType.
UserMentionMetadata_Type_name, UserMentionMetadata_Type_value
var (
UserMentionMetadata_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ADD",
2: "MENTION",
}
UserMentionMetadata_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ADD": 1,
"MENTION": 2,
}
)
Enum value maps for UserMentionMetadata_Type.
SlashCommandMetadata_Type_name, SlashCommandMetadata_Type_value
var (
SlashCommandMetadata_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ADD",
2: "INVOKE",
}
SlashCommandMetadata_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ADD": 1,
"INVOKE": 2,
}
)
Enum value maps for SlashCommandMetadata_Type.
RichLinkMetadata_RichLinkType_name, RichLinkMetadata_RichLinkType_value
var (
RichLinkMetadata_RichLinkType_name = map[int32]string{
0: "RICH_LINK_TYPE_UNSPECIFIED",
1: "DRIVE_FILE",
2: "CHAT_SPACE",
}
RichLinkMetadata_RichLinkType_value = map[string]int32{
"RICH_LINK_TYPE_UNSPECIFIED": 0,
"DRIVE_FILE": 1,
"CHAT_SPACE": 2,
}
)
Enum value maps for RichLinkMetadata_RichLinkType.
Attachment_Source_name, Attachment_Source_value
var (
Attachment_Source_name = map[int32]string{
0: "SOURCE_UNSPECIFIED",
1: "DRIVE_FILE",
2: "UPLOADED_CONTENT",
}
Attachment_Source_value = map[string]int32{
"SOURCE_UNSPECIFIED": 0,
"DRIVE_FILE": 1,
"UPLOADED_CONTENT": 2,
}
)
Enum value maps for Attachment_Source.
ContextualAddOnMarkup_Card_CardHeader_ImageStyle_name, ContextualAddOnMarkup_Card_CardHeader_ImageStyle_value
var (
ContextualAddOnMarkup_Card_CardHeader_ImageStyle_name = map[int32]string{
0: "IMAGE_STYLE_UNSPECIFIED",
1: "IMAGE",
2: "AVATAR",
}
ContextualAddOnMarkup_Card_CardHeader_ImageStyle_value = map[string]int32{
"IMAGE_STYLE_UNSPECIFIED": 0,
"IMAGE": 1,
"AVATAR": 2,
}
)
Enum value maps for ContextualAddOnMarkup_Card_CardHeader_ImageStyle.
DeletionMetadata_DeletionType_name, DeletionMetadata_DeletionType_value
var (
DeletionMetadata_DeletionType_name = map[int32]string{
0: "DELETION_TYPE_UNSPECIFIED",
1: "CREATOR",
2: "SPACE_OWNER",
3: "ADMIN",
4: "APP_MESSAGE_EXPIRY",
5: "CREATOR_VIA_APP",
6: "SPACE_OWNER_VIA_APP",
}
DeletionMetadata_DeletionType_value = map[string]int32{
"DELETION_TYPE_UNSPECIFIED": 0,
"CREATOR": 1,
"SPACE_OWNER": 2,
"ADMIN": 3,
"APP_MESSAGE_EXPIRY": 4,
"CREATOR_VIA_APP": 5,
"SPACE_OWNER_VIA_APP": 6,
}
)
Enum value maps for DeletionMetadata_DeletionType.
HistoryState_name, HistoryState_value
var (
HistoryState_name = map[int32]string{
0: "HISTORY_STATE_UNSPECIFIED",
1: "HISTORY_OFF",
2: "HISTORY_ON",
}
HistoryState_value = map[string]int32{
"HISTORY_STATE_UNSPECIFIED": 0,
"HISTORY_OFF": 1,
"HISTORY_ON": 2,
}
)
Enum value maps for HistoryState.
Membership_MembershipState_name, Membership_MembershipState_value
var (
Membership_MembershipState_name = map[int32]string{
0: "MEMBERSHIP_STATE_UNSPECIFIED",
1: "JOINED",
2: "INVITED",
3: "NOT_A_MEMBER",
}
Membership_MembershipState_value = map[string]int32{
"MEMBERSHIP_STATE_UNSPECIFIED": 0,
"JOINED": 1,
"INVITED": 2,
"NOT_A_MEMBER": 3,
}
)
Enum value maps for Membership_MembershipState.
Membership_MembershipRole_name, Membership_MembershipRole_value
var (
Membership_MembershipRole_name = map[int32]string{
0: "MEMBERSHIP_ROLE_UNSPECIFIED",
1: "ROLE_MEMBER",
2: "ROLE_MANAGER",
}
Membership_MembershipRole_value = map[string]int32{
"MEMBERSHIP_ROLE_UNSPECIFIED": 0,
"ROLE_MEMBER": 1,
"ROLE_MANAGER": 2,
}
)
Enum value maps for Membership_MembershipRole.
ActionResponse_ResponseType_name, ActionResponse_ResponseType_value
var (
ActionResponse_ResponseType_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "NEW_MESSAGE",
2: "UPDATE_MESSAGE",
6: "UPDATE_USER_MESSAGE_CARDS",
3: "REQUEST_CONFIG",
4: "DIALOG",
7: "UPDATE_WIDGET",
}
ActionResponse_ResponseType_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"NEW_MESSAGE": 1,
"UPDATE_MESSAGE": 2,
"UPDATE_USER_MESSAGE_CARDS": 6,
"REQUEST_CONFIG": 3,
"DIALOG": 4,
"UPDATE_WIDGET": 7,
}
)
Enum value maps for ActionResponse_ResponseType.
CreateMessageRequest_MessageReplyOption_name, CreateMessageRequest_MessageReplyOption_value
var (
CreateMessageRequest_MessageReplyOption_name = map[int32]string{
0: "MESSAGE_REPLY_OPTION_UNSPECIFIED",
1: "REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD",
2: "REPLY_MESSAGE_OR_FAIL",
}
CreateMessageRequest_MessageReplyOption_value = map[string]int32{
"MESSAGE_REPLY_OPTION_UNSPECIFIED": 0,
"REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD": 1,
"REPLY_MESSAGE_OR_FAIL": 2,
}
)
Enum value maps for CreateMessageRequest_MessageReplyOption.
Space_Type_name, Space_Type_value
var (
Space_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ROOM",
2: "DM",
}
Space_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ROOM": 1,
"DM": 2,
}
)
Enum value maps for Space_Type.
Space_SpaceType_name, Space_SpaceType_value
var (
Space_SpaceType_name = map[int32]string{
0: "SPACE_TYPE_UNSPECIFIED",
1: "SPACE",
2: "GROUP_CHAT",
3: "DIRECT_MESSAGE",
}
Space_SpaceType_value = map[string]int32{
"SPACE_TYPE_UNSPECIFIED": 0,
"SPACE": 1,
"GROUP_CHAT": 2,
"DIRECT_MESSAGE": 3,
}
)
Enum value maps for Space_SpaceType.
Space_SpaceThreadingState_name, Space_SpaceThreadingState_value
var (
Space_SpaceThreadingState_name = map[int32]string{
0: "SPACE_THREADING_STATE_UNSPECIFIED",
2: "THREADED_MESSAGES",
3: "GROUPED_MESSAGES",
4: "UNTHREADED_MESSAGES",
}
Space_SpaceThreadingState_value = map[string]int32{
"SPACE_THREADING_STATE_UNSPECIFIED": 0,
"THREADED_MESSAGES": 2,
"GROUPED_MESSAGES": 3,
"UNTHREADED_MESSAGES": 4,
}
)
Enum value maps for Space_SpaceThreadingState.
Space_PredefinedPermissionSettings_name, Space_PredefinedPermissionSettings_value
var (
Space_PredefinedPermissionSettings_name = map[int32]string{
0: "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED",
1: "COLLABORATION_SPACE",
2: "ANNOUNCEMENT_SPACE",
}
Space_PredefinedPermissionSettings_value = map[string]int32{
"PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED": 0,
"COLLABORATION_SPACE": 1,
"ANNOUNCEMENT_SPACE": 2,
}
)
Enum value maps for Space_PredefinedPermissionSettings.
Space_AccessSettings_AccessState_name, Space_AccessSettings_AccessState_value
var (
Space_AccessSettings_AccessState_name = map[int32]string{
0: "ACCESS_STATE_UNSPECIFIED",
1: "PRIVATE",
2: "DISCOVERABLE",
}
Space_AccessSettings_AccessState_value = map[string]int32{
"ACCESS_STATE_UNSPECIFIED": 0,
"PRIVATE": 1,
"DISCOVERABLE": 2,
}
)
Enum value maps for Space_AccessSettings_AccessState.
User_Type_name, User_Type_value
var (
User_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "HUMAN",
2: "BOT",
}
User_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"HUMAN": 1,
"BOT": 2,
}
)
Enum value maps for User_Type.
WidgetMarkup_Icon_name, WidgetMarkup_Icon_value
var (
WidgetMarkup_Icon_name = map[int32]string{
0: "ICON_UNSPECIFIED",
1: "AIRPLANE",
26: "BOOKMARK",
25: "BUS",
9: "CAR",
2: "CLOCK",
12: "CONFIRMATION_NUMBER_ICON",
14: "DOLLAR",
27: "DESCRIPTION",
10: "EMAIL",
20: "EVENT_PERFORMER",
21: "EVENT_SEAT",
16: "FLIGHT_ARRIVAL",
15: "FLIGHT_DEPARTURE",
6: "HOTEL",
17: "HOTEL_ROOM_TYPE",
19: "INVITE",
3: "MAP_PIN",
24: "MEMBERSHIP",
18: "MULTIPLE_PEOPLE",
30: "OFFER",
11: "PERSON",
13: "PHONE",
7: "RESTAURANT_ICON",
8: "SHOPPING_CART",
5: "STAR",
22: "STORE",
4: "TICKET",
23: "TRAIN",
28: "VIDEO_CAMERA",
29: "VIDEO_PLAY",
}
WidgetMarkup_Icon_value = map[string]int32{
"ICON_UNSPECIFIED": 0,
"AIRPLANE": 1,
"BOOKMARK": 26,
"BUS": 25,
"CAR": 9,
"CLOCK": 2,
"CONFIRMATION_NUMBER_ICON": 12,
"DOLLAR": 14,
"DESCRIPTION": 27,
"EMAIL": 10,
"EVENT_PERFORMER": 20,
"EVENT_SEAT": 21,
"FLIGHT_ARRIVAL": 16,
"FLIGHT_DEPARTURE": 15,
"HOTEL": 6,
"HOTEL_ROOM_TYPE": 17,
"INVITE": 19,
"MAP_PIN": 3,
"MEMBERSHIP": 24,
"MULTIPLE_PEOPLE": 18,
"OFFER": 30,
"PERSON": 11,
"PHONE": 13,
"RESTAURANT_ICON": 7,
"SHOPPING_CART": 8,
"STAR": 5,
"STORE": 22,
"TICKET": 4,
"TRAIN": 23,
"VIDEO_CAMERA": 28,
"VIDEO_PLAY": 29,
}
)
Enum value maps for WidgetMarkup_Icon.
File_google_chat_v1_action_status_proto
var File_google_chat_v1_action_status_proto protoreflect.FileDescriptor
File_google_chat_v1_annotation_proto
var File_google_chat_v1_annotation_proto protoreflect.FileDescriptor
File_google_chat_v1_attachment_proto
var File_google_chat_v1_attachment_proto protoreflect.FileDescriptor
File_google_chat_v1_chat_service_proto
var File_google_chat_v1_chat_service_proto protoreflect.FileDescriptor
File_google_chat_v1_contextual_addon_proto
var File_google_chat_v1_contextual_addon_proto protoreflect.FileDescriptor
File_google_chat_v1_deletion_metadata_proto
var File_google_chat_v1_deletion_metadata_proto protoreflect.FileDescriptor
File_google_chat_v1_event_payload_proto
var File_google_chat_v1_event_payload_proto protoreflect.FileDescriptor
File_google_chat_v1_group_proto
var File_google_chat_v1_group_proto protoreflect.FileDescriptor
File_google_chat_v1_history_state_proto
var File_google_chat_v1_history_state_proto protoreflect.FileDescriptor
File_google_chat_v1_matched_url_proto
var File_google_chat_v1_matched_url_proto protoreflect.FileDescriptor
File_google_chat_v1_membership_proto
var File_google_chat_v1_membership_proto protoreflect.FileDescriptor
File_google_chat_v1_message_proto
var File_google_chat_v1_message_proto protoreflect.FileDescriptor
File_google_chat_v1_reaction_proto
var File_google_chat_v1_reaction_proto protoreflect.FileDescriptor
File_google_chat_v1_slash_command_proto
var File_google_chat_v1_slash_command_proto protoreflect.FileDescriptor
File_google_chat_v1_space_event_proto
var File_google_chat_v1_space_event_proto protoreflect.FileDescriptor
File_google_chat_v1_space_proto
var File_google_chat_v1_space_proto protoreflect.FileDescriptor
File_google_chat_v1_space_read_state_proto
var File_google_chat_v1_space_read_state_proto protoreflect.FileDescriptor
File_google_chat_v1_space_setup_proto
var File_google_chat_v1_space_setup_proto protoreflect.FileDescriptor
File_google_chat_v1_thread_read_state_proto
var File_google_chat_v1_thread_read_state_proto protoreflect.FileDescriptor
File_google_chat_v1_user_proto
var File_google_chat_v1_user_proto protoreflect.FileDescriptor
File_google_chat_v1_widgets_proto
var File_google_chat_v1_widgets_proto protoreflect.FileDescriptor
Functions
func RegisterChatServiceServer
func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)
AccessoryWidget
type AccessoryWidget struct {
// The type of action.
//
// Types that are assignable to Action:
//
// *AccessoryWidget_ButtonList
Action isAccessoryWidget_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}
One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message.
func (*AccessoryWidget) Descriptor
func (*AccessoryWidget) Descriptor() ([]byte, []int)
Deprecated: Use AccessoryWidget.ProtoReflect.Descriptor instead.
func (*AccessoryWidget) GetAction
func (m *AccessoryWidget) GetAction() isAccessoryWidget_Action
func (*AccessoryWidget) GetButtonList
func (x *AccessoryWidget) GetButtonList() *v1.ButtonList
func (*AccessoryWidget) ProtoMessage
func (*AccessoryWidget) ProtoMessage()
func (*AccessoryWidget) ProtoReflect
func (x *AccessoryWidget) ProtoReflect() protoreflect.Message
func (*AccessoryWidget) Reset
func (x *AccessoryWidget) Reset()
func (*AccessoryWidget) String
func (x *AccessoryWidget) String() string
AccessoryWidget_ButtonList
type AccessoryWidget_ButtonList struct {
// A list of buttons.
ButtonList *v1.ButtonList `protobuf:"bytes,1,opt,name=button_list,json=buttonList,proto3,oneof"`
}
ActionResponse
type ActionResponse struct {
// Input only. The type of Chat app response.
Type ActionResponse_ResponseType `protobuf:"varint,1,opt,name=type,proto3,enum=google.chat.v1.ActionResponse_ResponseType" json:"type,omitempty"`
// Input only. URL for users to authenticate or configure. (Only for
// `REQUEST_CONFIG` response types.)
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Input only. A response to an interaction event related to a
// [dialog](https://developers.google.com/workspace/chat/dialogs). Must be
// accompanied by `ResponseType.Dialog`.
DialogAction *DialogAction `protobuf:"bytes,3,opt,name=dialog_action,json=dialogAction,proto3" json:"dialog_action,omitempty"`
// Input only. The response of the updated widget.
UpdatedWidget *ActionResponse_UpdatedWidget `protobuf:"bytes,4,opt,name=updated_widget,json=updatedWidget,proto3" json:"updated_widget,omitempty"`
// contains filtered or unexported fields
}
Parameters that a Chat app can use to configure how its response is posted.
func (*ActionResponse) Descriptor
func (*ActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ActionResponse.ProtoReflect.Descriptor instead.
func (*ActionResponse) GetDialogAction
func (x *ActionResponse) GetDialogAction() *DialogAction
func (*ActionResponse) GetType
func (x *ActionResponse) GetType() ActionResponse_ResponseType
func (*ActionResponse) GetUpdatedWidget
func (x *ActionResponse) GetUpdatedWidget() *ActionResponse_UpdatedWidget
func (*ActionResponse) GetUrl
func (x *ActionResponse) GetUrl() string
func (*ActionResponse) ProtoMessage
func (*ActionResponse) ProtoMessage()
func (*ActionResponse) ProtoReflect
func (x *ActionResponse) ProtoReflect() protoreflect.Message
func (*ActionResponse) Reset
func (x *ActionResponse) Reset()
func (*ActionResponse) String
func (x *ActionResponse) String() string
ActionResponse_ResponseType
type ActionResponse_ResponseType int32
The type of Chat app response.
ActionResponse_TYPE_UNSPECIFIED, ActionResponse_NEW_MESSAGE, ActionResponse_UPDATE_MESSAGE, ActionResponse_UPDATE_USER_MESSAGE_CARDS, ActionResponse_REQUEST_CONFIG, ActionResponse_DIALOG, ActionResponse_UPDATE_WIDGET
const (
// Default type that's handled as `NEW_MESSAGE`.
ActionResponse_TYPE_UNSPECIFIED ActionResponse_ResponseType = 0
// Post as a new message in the topic.
ActionResponse_NEW_MESSAGE ActionResponse_ResponseType = 1
// Update the Chat app's message. This is only permitted on a `CARD_CLICKED`
// event where the message sender type is `BOT`.
ActionResponse_UPDATE_MESSAGE ActionResponse_ResponseType = 2
// Update the cards on a user's message. This is only permitted as a
// response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED`
// event where the message sender type is `HUMAN`. Text is ignored.
ActionResponse_UPDATE_USER_MESSAGE_CARDS ActionResponse_ResponseType = 6
// Privately ask the user for additional authentication or configuration.
ActionResponse_REQUEST_CONFIG ActionResponse_ResponseType = 3
// Presents a
// [dialog](https://developers.google.com/workspace/chat/dialogs).
ActionResponse_DIALOG ActionResponse_ResponseType = 4
// Widget text autocomplete options query.
ActionResponse_UPDATE_WIDGET ActionResponse_ResponseType = 7
)
func (ActionResponse_ResponseType) Descriptor
func (ActionResponse_ResponseType) Descriptor() protoreflect.EnumDescriptor
func (ActionResponse_ResponseType) Enum
func (x ActionResponse_ResponseType) Enum() *ActionResponse_ResponseType
func (ActionResponse_ResponseType) EnumDescriptor
func (ActionResponse_ResponseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionResponse_ResponseType.Descriptor instead.
func (ActionResponse_ResponseType) Number
func (x ActionResponse_ResponseType) Number() protoreflect.EnumNumber
func (ActionResponse_ResponseType) String
func (x ActionResponse_ResponseType) String() string
func (ActionResponse_ResponseType) Type
func (ActionResponse_ResponseType) Type() protoreflect.EnumType
ActionResponse_SelectionItems
type ActionResponse_SelectionItems struct {
// An array of the SelectionItem objects.
Items []*v1.SelectionInput_SelectionItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
List of widget autocomplete results.
func (*ActionResponse_SelectionItems) Descriptor
func (*ActionResponse_SelectionItems) Descriptor() ([]byte, []int)
Deprecated: Use ActionResponse_SelectionItems.ProtoReflect.Descriptor instead.
func (*ActionResponse_SelectionItems) GetItems
func (x *ActionResponse_SelectionItems) GetItems() []*v1.SelectionInput_SelectionItem
func (*ActionResponse_SelectionItems) ProtoMessage
func (*ActionResponse_SelectionItems) ProtoMessage()
func (*ActionResponse_SelectionItems) ProtoReflect
func (x *ActionResponse_SelectionItems) ProtoReflect() protoreflect.Message
func (*ActionResponse_SelectionItems) Reset
func (x *ActionResponse_SelectionItems) Reset()
func (*ActionResponse_SelectionItems) String
func (x *ActionResponse_SelectionItems) String() string
ActionResponse_UpdatedWidget
type ActionResponse_UpdatedWidget struct {
// The widget updated in response to a user action.
//
// Types that are assignable to UpdatedWidget:
//
// *ActionResponse_UpdatedWidget_Suggestions
UpdatedWidget isActionResponse_UpdatedWidget_UpdatedWidget `protobuf_oneof:"updated_widget"`
// The ID of the updated widget. The ID must match the one for the
// widget that triggered the update request.
Widget string `protobuf:"bytes,2,opt,name=widget,proto3" json:"widget,omitempty"`
// contains filtered or unexported fields
}
The response of the updated widget. Used to provide autocomplete options for a widget.
func (*ActionResponse_UpdatedWidget) Descriptor
func (*ActionResponse_UpdatedWidget) Descriptor() ([]byte, []int)
Deprecated: Use ActionResponse_UpdatedWidget.ProtoReflect.Descriptor instead.
func (*ActionResponse_UpdatedWidget) GetSuggestions
func (x *ActionResponse_UpdatedWidget) GetSuggestions() *ActionResponse_SelectionItems
func (*ActionResponse_UpdatedWidget) GetUpdatedWidget
func (m *ActionResponse_UpdatedWidget) GetUpdatedWidget() isActionResponse_UpdatedWidget_UpdatedWidget
func (*ActionResponse_UpdatedWidget) GetWidget
func (x *ActionResponse_UpdatedWidget) GetWidget() string
func (*ActionResponse_UpdatedWidget) ProtoMessage
func (*ActionResponse_UpdatedWidget) ProtoMessage()
func (*ActionResponse_UpdatedWidget) ProtoReflect
func (x *ActionResponse_UpdatedWidget) ProtoReflect() protoreflect.Message
func (*ActionResponse_UpdatedWidget) Reset
func (x *ActionResponse_UpdatedWidget) Reset()
func (*ActionResponse_UpdatedWidget) String
func (x *ActionResponse_UpdatedWidget) String() string
ActionResponse_UpdatedWidget_Suggestions
type ActionResponse_UpdatedWidget_Suggestions struct {
// List of widget autocomplete results
Suggestions *ActionResponse_SelectionItems `protobuf:"bytes,1,opt,name=suggestions,proto3,oneof"`
}
ActionStatus
type ActionStatus struct {
// The status code.
StatusCode code.Code `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=google.rpc.Code" json:"status_code,omitempty"`
// The message to send users about the status of their request.
// If unset, a generic message based on the `status_code` is sent.
UserFacingMessage string `protobuf:"bytes,2,opt,name=user_facing_message,json=userFacingMessage,proto3" json:"user_facing_message,omitempty"`
// contains filtered or unexported fields
}
Represents the status for a request to either invoke or submit a dialog.
func (*ActionStatus) Descriptor
func (*ActionStatus) Descriptor() ([]byte, []int)
Deprecated: Use ActionStatus.ProtoReflect.Descriptor instead.
func (*ActionStatus) GetStatusCode
func (x *ActionStatus) GetStatusCode() code.Code
func (*ActionStatus) GetUserFacingMessage
func (x *ActionStatus) GetUserFacingMessage() string
func (*ActionStatus) ProtoMessage
func (*ActionStatus) ProtoMessage()
func (*ActionStatus) ProtoReflect
func (x *ActionStatus) ProtoReflect() protoreflect.Message
func (*ActionStatus) Reset
func (x *ActionStatus) Reset()
func (*ActionStatus) String
func (x *ActionStatus) String() string
Annotation
type Annotation struct {
// The type of this annotation.
Type AnnotationType `protobuf:"varint,1,opt,name=type,proto3,enum=google.chat.v1.AnnotationType" json:"type,omitempty"`
// Start index (0-based, inclusive) in the plain-text message body this
// annotation corresponds to.
StartIndex *int32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3,oneof" json:"start_index,omitempty"`
// Length of the substring in the plain-text message body this annotation
// corresponds to.
Length int32 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
// Additional metadata about the annotation.
//
// Types that are assignable to Metadata:
//
// *Annotation_UserMention
// *Annotation_SlashCommand
// *Annotation_RichLinkMetadata
Metadata isAnnotation_Metadata `protobuf_oneof:"metadata"`
// contains filtered or unexported fields
}
Output only. Annotations associated with the plain-text body of the message. To add basic formatting to a text message, see Format text messages.
Example plain-text message body:
Hello @FooBot how are you!"
The corresponding annotations metadata:
"annotations":[{
"type":"USER_MENTION",
"startIndex":6,
"length":7,
"userMention": {
"user": {
"name":"users/{user}",
"displayName":"FooBot",
"avatarUrl":"https://goo.gl/aeDtrS",
"type":"BOT"
},
"type":"MENTION"
}
}]
func (*Annotation) Descriptor
func (*Annotation) Descriptor() ([]byte, []int)
Deprecated: Use Annotation.ProtoReflect.Descriptor instead.
func (*Annotation) GetLength
func (x *Annotation) GetLength() int32
func (*Annotation) GetMetadata
func (m *Annotation) GetMetadata() isAnnotation_Metadata
func (*Annotation) GetRichLinkMetadata
func (x *Annotation) GetRichLinkMetadata() *RichLinkMetadata
func (*Annotation) GetSlashCommand
func (x *Annotation) GetSlashCommand() *SlashCommandMetadata
func (*Annotation) GetStartIndex
func (x *Annotation) GetStartIndex() int32
func (*Annotation) GetType
func (x *Annotation) GetType() AnnotationType
func (*Annotation) GetUserMention
func (x *Annotation) GetUserMention() *UserMentionMetadata
func (*Annotation) ProtoMessage
func (*Annotation) ProtoMessage()
func (*Annotation) ProtoReflect
func (x *Annotation) ProtoReflect() protoreflect.Message
func (*Annotation) Reset
func (x *Annotation) Reset()
func (*Annotation) String
func (x *Annotation) String() string
AnnotationType
type AnnotationType int32
Type of the annotation.
AnnotationType_ANNOTATION_TYPE_UNSPECIFIED, AnnotationType_USER_MENTION, AnnotationType_SLASH_COMMAND, AnnotationType_RICH_LINK
const (
// Default value for the enum. Don't use.
AnnotationType_ANNOTATION_TYPE_UNSPECIFIED AnnotationType = 0
// A user is mentioned.
AnnotationType_USER_MENTION AnnotationType = 1
// A slash command is invoked.
AnnotationType_SLASH_COMMAND AnnotationType = 2
// A rich link annotation.
AnnotationType_RICH_LINK AnnotationType = 3
)
func (AnnotationType) Descriptor
func (AnnotationType) Descriptor() protoreflect.EnumDescriptor
func (AnnotationType) Enum
func (x AnnotationType) Enum() *AnnotationType
func (AnnotationType) EnumDescriptor
func (AnnotationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotationType.Descriptor instead.
func (AnnotationType) Number
func (x AnnotationType) Number() protoreflect.EnumNumber
func (AnnotationType) String
func (x AnnotationType) String() string
func (AnnotationType) Type
func (AnnotationType) Type() protoreflect.EnumType
Annotation_RichLinkMetadata
type Annotation_RichLinkMetadata struct {
// The metadata for a rich link.
RichLinkMetadata *RichLinkMetadata `protobuf:"bytes,6,opt,name=rich_link_metadata,json=richLinkMetadata,proto3,oneof"`
}
Annotation_SlashCommand
type Annotation_SlashCommand struct {
// The metadata for a slash command.
SlashCommand *SlashCommandMetadata `protobuf:"bytes,5,opt,name=slash_command,json=slashCommand,proto3,oneof"`
}
Annotation_UserMention
type Annotation_UserMention struct {
// The metadata of user mention.
UserMention *UserMentionMetadata `protobuf:"bytes,4,opt,name=user_mention,json=userMention,proto3,oneof"`
}
AttachedGif
type AttachedGif struct {
// Output only. The URL that hosts the GIF image.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
A GIF image that's specified by a URL.
func (*AttachedGif) Descriptor
func (*AttachedGif) Descriptor() ([]byte, []int)
Deprecated: Use AttachedGif.ProtoReflect.Descriptor instead.
func (*AttachedGif) GetUri
func (x *AttachedGif) GetUri() string
func (*AttachedGif) ProtoMessage
func (*AttachedGif) ProtoMessage()
func (*AttachedGif) ProtoReflect
func (x *AttachedGif) ProtoReflect() protoreflect.Message
func (*AttachedGif) Reset
func (x *AttachedGif) Reset()
func (*AttachedGif) String
func (x *AttachedGif) String() string
Attachment
type Attachment struct {
// Resource name of the attachment, in the form
// `spaces/{space}/messages/{message}/attachments/{attachment}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The original file name for the content, not the full path.
ContentName string `protobuf:"bytes,2,opt,name=content_name,json=contentName,proto3" json:"content_name,omitempty"`
// Output only. The content type (MIME type) of the file.
ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// The data reference to the attachment.
//
// Types that are assignable to DataRef:
//
// *Attachment_AttachmentDataRef
// *Attachment_DriveDataRef
DataRef isAttachment_DataRef `protobuf_oneof:"data_ref"`
// Output only. The thumbnail URL which should be used to preview the
// attachment to a human user. Chat apps shouldn't use this URL to download
// attachment content.
ThumbnailUri string `protobuf:"bytes,5,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"`
// Output only. The download URL which should be used to allow a human user to
// download the attachment. Chat apps shouldn't use this URL to download
// attachment content.
DownloadUri string `protobuf:"bytes,6,opt,name=download_uri,json=downloadUri,proto3" json:"download_uri,omitempty"`
// Output only. The source of the attachment.
Source Attachment_Source `protobuf:"varint,9,opt,name=source,proto3,enum=google.chat.v1.Attachment_Source" json:"source,omitempty"`
// contains filtered or unexported fields
}
An attachment in Google Chat.
func (*Attachment) Descriptor
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetAttachmentDataRef
func (x *Attachment) GetAttachmentDataRef() *AttachmentDataRef
func (*Attachment) GetContentName
func (x *Attachment) GetContentName() string
func (*Attachment) GetContentType
func (x *Attachment) GetContentType() string
func (*Attachment) GetDataRef
func (m *Attachment) GetDataRef() isAttachment_DataRef
func (*Attachment) GetDownloadUri
func (x *Attachment) GetDownloadUri() string
func (*Attachment) GetDriveDataRef
func (x *Attachment) GetDriveDataRef() *DriveDataRef
func (*Attachment) GetName
func (x *Attachment) GetName() string
func (*Attachment) GetSource
func (x *Attachment) GetSource() Attachment_Source
func (*Attachment) GetThumbnailUri
func (x *Attachment) GetThumbnailUri() string
func (*Attachment) ProtoMessage
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset
func (x *Attachment) Reset()
func (*Attachment) String
func (x *Attachment) String() string
AttachmentDataRef
type AttachmentDataRef struct {
// The resource name of the attachment data. This field is used with the media
// API to download the attachment data.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// Opaque token containing a reference to an uploaded attachment. Treated by
// clients as an opaque string and used to create or update Chat messages with
// attachments.
AttachmentUploadToken string `protobuf:"bytes,2,opt,name=attachment_upload_token,json=attachmentUploadToken,proto3" json:"attachment_upload_token,omitempty"`
// contains filtered or unexported fields
}
A reference to the attachment data.
func (*AttachmentDataRef) Descriptor
func (*AttachmentDataRef) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentDataRef.ProtoReflect.Descriptor instead.
func (*AttachmentDataRef) GetAttachmentUploadToken
func (x *AttachmentDataRef) GetAttachmentUploadToken() string
func (*AttachmentDataRef) GetResourceName
func (x *AttachmentDataRef) GetResourceName() string
func (*AttachmentDataRef) ProtoMessage
func (*AttachmentDataRef) ProtoMessage()
func (*AttachmentDataRef) ProtoReflect
func (x *AttachmentDataRef) ProtoReflect() protoreflect.Message
func (*AttachmentDataRef) Reset
func (x *AttachmentDataRef) Reset()
func (*AttachmentDataRef) String
func (x *AttachmentDataRef) String() string
Attachment_AttachmentDataRef
type Attachment_AttachmentDataRef struct {
// A reference to the attachment data. This field is used with the media API
// to download the attachment data.
AttachmentDataRef *AttachmentDataRef `protobuf:"bytes,4,opt,name=attachment_data_ref,json=attachmentDataRef,proto3,oneof"`
}
Attachment_DriveDataRef
type Attachment_DriveDataRef struct {
// Output only. A reference to the Google Drive attachment. This field is
// used with the Google Drive API.
DriveDataRef *DriveDataRef `protobuf:"bytes,7,opt,name=drive_data_ref,json=driveDataRef,proto3,oneof"`
}
Attachment_Source
type Attachment_Source int32
The source of the attachment.
Attachment_SOURCE_UNSPECIFIED, Attachment_DRIVE_FILE, Attachment_UPLOADED_CONTENT
const (
// Reserved.
Attachment_SOURCE_UNSPECIFIED Attachment_Source = 0
// The file is a Google Drive file.
Attachment_DRIVE_FILE Attachment_Source = 1
// The file is uploaded to Chat.
Attachment_UPLOADED_CONTENT Attachment_Source = 2
)
func (Attachment_Source) Descriptor
func (Attachment_Source) Descriptor() protoreflect.EnumDescriptor
func (Attachment_Source) Enum
func (x Attachment_Source) Enum() *Attachment_Source
func (Attachment_Source) EnumDescriptor
func (Attachment_Source) EnumDescriptor() ([]byte, []int)
Deprecated: Use Attachment_Source.Descriptor instead.
func (Attachment_Source) Number
func (x Attachment_Source) Number() protoreflect.EnumNumber
func (Attachment_Source) String
func (x Attachment_Source) String() string
func (Attachment_Source) Type
func (Attachment_Source) Type() protoreflect.EnumType
CardWithId
type CardWithId struct {
// Required if the message contains multiple cards. A unique identifier for
// a card in a message.
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
// A card. Maximum size is 32 KB.
Card *v1.Card `protobuf:"bytes,2,opt,name=card,proto3" json:"card,omitempty"`
// contains filtered or unexported fields
}
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.
func (*CardWithId) Descriptor
func (*CardWithId) Descriptor() ([]byte, []int)
Deprecated: Use CardWithId.ProtoReflect.Descriptor instead.
func (*CardWithId) GetCard
func (x *CardWithId) GetCard() *v1.Card
func (*CardWithId) GetCardId
func (x *CardWithId) GetCardId() string
func (*CardWithId) ProtoMessage
func (*CardWithId) ProtoMessage()
func (*CardWithId) ProtoReflect
func (x *CardWithId) ProtoReflect() protoreflect.Message
func (*CardWithId) Reset
func (x *CardWithId) Reset()
func (*CardWithId) String
func (x *CardWithId) String() string
ChatServiceClient
type ChatServiceClient interface {
// Creates a message in a Google Chat space. For an example, see [Send a
// message](https://developers.google.com/workspace/chat/create-messages).
//
// The `create()` method requires either user or app authentication. Chat
// attributes the message sender differently depending on the type of
// authentication that you use in your request.
//
// The following image shows how Chat attributes a message when you use app
// authentication. Chat displays the Chat app as the message
// sender. The content of the message can contain text (`text`), cards
// (`cardsV2`), and accessory widgets (`accessoryWidgets`).
//
// ![Message sent with app
// authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg)
//
// The following image shows how Chat attributes a message when you use user
// authentication. Chat displays the user as the message sender and attributes
// the Chat app to the message by displaying its name. The content of message
// can only contain text (`text`).
//
// ![Message sent with user
// authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
//
// The maximum message size, including the message contents, is 32,000 bytes.
CreateMessage(ctx context.Context, in *CreateMessageRequest, opts ...grpc.CallOption) (*Message, error)
// Lists messages in a space that the caller is a member of, including
// messages from blocked members and spaces. If you list messages from a
// space with no messages, the response is an empty object. When using a
// REST/HTTP interface, the response contains an empty JSON object, `{}`.
// For an example, see
// [List
// messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListMessages(ctx context.Context, in *ListMessagesRequest, opts ...grpc.CallOption) (*ListMessagesResponse, error)
// Lists memberships in a space. For an example, see [List users and Google
// Chat apps in a
// space](https://developers.google.com/workspace/chat/list-members). Listing
// memberships with [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// lists memberships in spaces that the Chat app has
// access to, but excludes Chat app memberships,
// including its own. Listing memberships with
// [User
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// lists memberships in spaces that the authenticated user has access to.
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListMemberships(ctx context.Context, in *ListMembershipsRequest, opts ...grpc.CallOption) (*ListMembershipsResponse, error)
// Returns details about a membership. For an example, see
// [Get details about a user's or Google Chat app's
// membership](https://developers.google.com/workspace/chat/get-members).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetMembership(ctx context.Context, in *GetMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
// Returns details about a message.
// For an example, see [Get details about a
// message](https://developers.google.com/workspace/chat/get-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// Note: Might return a message from a blocked member or space.
GetMessage(ctx context.Context, in *GetMessageRequest, opts ...grpc.CallOption) (*Message, error)
// Updates a message. There's a difference between the `patch` and `update`
// methods. The `patch`
// method uses a `patch` request while the `update` method uses a `put`
// request. We recommend using the `patch` method. For an example, see
// [Update a
// message](https://developers.google.com/workspace/chat/update-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// When using app authentication, requests can only update messages
// created by the calling Chat app.
UpdateMessage(ctx context.Context, in *UpdateMessageRequest, opts ...grpc.CallOption) (*Message, error)
// Deletes a message.
// For an example, see [Delete a
// message](https://developers.google.com/workspace/chat/delete-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// When using app authentication, requests can only delete messages
// created by the calling Chat app.
DeleteMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the metadata of a message attachment. The attachment data is fetched
// using the [media
// API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download).
// For an example, see
// [Get metadata about a message
// attachment](https://developers.google.com/workspace/chat/get-media-attachments).
// Requires [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
GetAttachment(ctx context.Context, in *GetAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error)
// Uploads an attachment. For an example, see
// [Upload media as a file
// attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
// Requires user
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// You can upload attachments up to 200 MB. Certain file types aren't
// supported. For details, see [File types blocked by Google
// Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
UploadAttachment(ctx context.Context, in *UploadAttachmentRequest, opts ...grpc.CallOption) (*UploadAttachmentResponse, error)
// Lists spaces the caller is a member of. Group chats and DMs aren't listed
// until the first message is sent. For an example, see
// [List
// spaces](https://developers.google.com/workspace/chat/list-spaces).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// Lists spaces visible to the caller or authenticated user. Group chats
// and DMs aren't listed until the first message is sent.
//
// To list all named spaces by Google Workspace organization, use the
// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
// method using Workspace administrator privileges instead.
ListSpaces(ctx context.Context, in *ListSpacesRequest, opts ...grpc.CallOption) (*ListSpacesResponse, error)
// Returns a list of spaces in a Google Workspace organization based on an
// administrator's search. Requires [user
// authentication with administrator
// privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
// In the request, set `use_admin_access` to `true`.
SearchSpaces(ctx context.Context, in *SearchSpacesRequest, opts ...grpc.CallOption) (*SearchSpacesResponse, error)
// Returns details about a space. For an example, see
// [Get details about a
// space](https://developers.google.com/workspace/chat/get-spaces).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetSpace(ctx context.Context, in *GetSpaceRequest, opts ...grpc.CallOption) (*Space, error)
// Creates a space with no members. Can be used to create a named space.
// Spaces grouped by topics aren't supported. For an example, see
// [Create a
// space](https://developers.google.com/workspace/chat/create-spaces).
//
// If you receive the error message `ALREADY_EXISTS` when creating
// a space, try a different `displayName`. An existing space within
// the Google Workspace organization might already use this display name.
//
// If you're a member of the [Developer Preview
// program](https://developers.google.com/workspace/preview), you can create a
// group chat in import mode using `spaceType.GROUP_CHAT`.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
CreateSpace(ctx context.Context, in *CreateSpaceRequest, opts ...grpc.CallOption) (*Space, error)
// Creates a space and adds specified users to it. The calling user is
// automatically added to the space, and shouldn't be specified as a
// membership in the request. For an example, see
// [Set up a space with initial
// members](https://developers.google.com/workspace/chat/set-up-spaces).
//
// To specify the human members to add, add memberships with the appropriate
// `membership.member.name`. To add a human user, use `users/{user}`, where
// `{user}` can be the email address for the user. For users in the same
// Workspace organization `{user}` can also be the `id` for the person from
// the People API, or the `id` for the user in the Directory API. For example,
// if the People API Person profile ID for `user@example.com` is `123456789`,
// you can add the user to the space by setting the `membership.member.name`
// to `users/user@example.com` or `users/123456789`.
//
// To specify the Google groups to add, add memberships with the
// appropriate `membership.group_member.name`. To add or invite a Google
// group, use `groups/{group}`, where `{group}` is the `id` for the group from
// the Cloud Identity Groups API. For example, you can use [Cloud Identity
// Groups lookup
// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
// to retrieve the ID `123456789` for group email `group@example.com`, then
// you can add the group to the space by setting the
// `membership.group_member.name` to `groups/123456789`. Group email is not
// supported, and Google groups can only be added as members in named spaces.
//
// For a named space or group chat, if the caller blocks, or is blocked
// by some members, or doesn't have permission to add some members, then
// those members aren't added to the created space.
//
// To create a direct message (DM) between the calling user and another human
// user, specify exactly one membership to represent the human user. If
// one user blocks the other, the request fails and the DM isn't created.
//
// To create a DM between the calling user and the calling app, set
// `Space.singleUserBotDm` to `true` and don't specify any memberships. You
// can only use this method to set up a DM with the calling app. To add the
// calling app as a member of a space or an existing DM between two human
// users, see
// [Invite or add a user or app to a
// space](https://developers.google.com/workspace/chat/create-members).
//
// If a DM already exists between two users, even when one user blocks the
// other at the time a request is made, then the existing DM is returned.
//
// Spaces with threaded replies aren't supported. If you receive the error
// message `ALREADY_EXISTS` when setting up a space, try a different
// `displayName`. An existing space within the Google Workspace organization
// might already use this display name.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
SetUpSpace(ctx context.Context, in *SetUpSpaceRequest, opts ...grpc.CallOption) (*Space, error)
// Updates a space. For an example, see
// [Update a
// space](https://developers.google.com/workspace/chat/update-spaces).
//
// If you're updating the `displayName` field and receive the error message
// `ALREADY_EXISTS`, try a different display name.. An existing space within
// the Google Workspace organization might already use this display name.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateSpace(ctx context.Context, in *UpdateSpaceRequest, opts ...grpc.CallOption) (*Space, error)
// Deletes a named space. Always performs a cascading delete, which means
// that the space's child resources—like messages posted in the space and
// memberships in the space—are also deleted. For an example, see
// [Delete a
// space](https://developers.google.com/workspace/chat/delete-spaces).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// from a user who has permission to delete the space.
DeleteSpace(ctx context.Context, in *DeleteSpaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Completes the
// [import process](https://developers.google.com/workspace/chat/import-data)
// for the specified space and makes it visible to users.
// Requires app authentication and domain-wide delegation. For more
// information, see [Authorize Google Chat apps to import
// data](https://developers.google.com/workspace/chat/authorize-import).
CompleteImportSpace(ctx context.Context, in *CompleteImportSpaceRequest, opts ...grpc.CallOption) (*CompleteImportSpaceResponse, error)
// Returns the existing direct message with the specified user. If no direct
// message space is found, returns a `404 NOT_FOUND` error. For an example,
// see
// [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message).
//
// With [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// returns the direct message space between the specified user and the
// authenticated user.
//
// With [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
// returns the direct message space between the specified user and the calling
// Chat app.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// or [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
FindDirectMessage(ctx context.Context, in *FindDirectMessageRequest, opts ...grpc.CallOption) (*Space, error)
// Creates a membership for the calling Chat app, a user, or a Google Group.
// Creating memberships for other Chat apps isn't supported.
// When creating a membership, if the specified member has their auto-accept
// policy turned off, then they're invited, and must accept the space
// invitation before joining. Otherwise, creating a membership adds the member
// directly to the specified space.
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// For example usage, see:
//
// - [Invite or add a user to a
// space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
//
// - [Invite or add a Google Group to a
// space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
//
// - [Add the Chat app to a
// space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
CreateMembership(ctx context.Context, in *CreateMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
// Updates a membership. For an example, see [Update a user's membership in
// a space](https://developers.google.com/workspace/chat/update-members).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateMembership(ctx context.Context, in *UpdateMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
// Deletes a membership. For an example, see
// [Remove a user or a Google Chat app from a
// space](https://developers.google.com/workspace/chat/delete-members).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
DeleteMembership(ctx context.Context, in *DeleteMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
// Creates a reaction and adds it to a message. Only unicode emojis are
// supported. For an example, see
// [Add a reaction to a
// message](https://developers.google.com/workspace/chat/create-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
CreateReaction(ctx context.Context, in *CreateReactionRequest, opts ...grpc.CallOption) (*Reaction, error)
// Lists reactions to a message. For an example, see
// [List reactions for a
// message](https://developers.google.com/workspace/chat/list-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListReactions(ctx context.Context, in *ListReactionsRequest, opts ...grpc.CallOption) (*ListReactionsResponse, error)
// Deletes a reaction to a message. Only unicode emojis are supported.
// For an example, see
// [Delete a
// reaction](https://developers.google.com/workspace/chat/delete-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
DeleteReaction(ctx context.Context, in *DeleteReactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Returns details about a user's read state within a space, used to identify
// read and unread messages. For an example, see [Get details about a user's
// space read
// state](https://developers.google.com/workspace/chat/get-space-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetSpaceReadState(ctx context.Context, in *GetSpaceReadStateRequest, opts ...grpc.CallOption) (*SpaceReadState, error)
// Updates a user's read state within a space, used to identify read and
// unread messages. For an example, see [Update a user's space read
// state](https://developers.google.com/workspace/chat/update-space-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateSpaceReadState(ctx context.Context, in *UpdateSpaceReadStateRequest, opts ...grpc.CallOption) (*SpaceReadState, error)
// Returns details about a user's read state within a thread, used to identify
// read and unread messages. For an example, see [Get details about a user's
// thread read
// state](https://developers.google.com/workspace/chat/get-thread-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetThreadReadState(ctx context.Context, in *GetThreadReadStateRequest, opts ...grpc.CallOption) (*ThreadReadState, error)
// Returns an event from a Google Chat space. The [event
// payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
// contains the most recent version of the resource that changed. For example,
// if you request an event about a new message but the message was later
// updated, the server returns the updated `Message` resource in the event
// payload.
//
// Note: The `permissionSettings` field is not returned in the Space
// object of the Space event data for this request.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// To get an event, the authenticated user must be a member of the space.
//
// For an example, see [Get details about an
// event from a Google Chat
// space](https://developers.google.com/workspace/chat/get-space-event).
GetSpaceEvent(ctx context.Context, in *GetSpaceEventRequest, opts ...grpc.CallOption) (*SpaceEvent, error)
// Lists events from a Google Chat space. For each event, the
// [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
// contains the most recent version of the Chat resource. For example, if you
// list events about new space members, the server returns `Membership`
// resources that contain the latest membership details. If new members were
// removed during the requested period, the event payload contains an empty
// `Membership` resource.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// To list events, the authenticated user must be a member of the space.
//
// For an example, see [List events from a Google Chat
// space](https://developers.google.com/workspace/chat/list-space-events).
ListSpaceEvents(ctx context.Context, in *ListSpaceEventsRequest, opts ...grpc.CallOption) (*ListSpaceEventsResponse, error)
}
ChatServiceClient is the client API for ChatService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatServiceClient
func NewChatServiceClient(cc grpc.ClientConnInterface) ChatServiceClient
ChatServiceServer
type ChatServiceServer interface {
// Creates a message in a Google Chat space. For an example, see [Send a
// message](https://developers.google.com/workspace/chat/create-messages).
//
// The `create()` method requires either user or app authentication. Chat
// attributes the message sender differently depending on the type of
// authentication that you use in your request.
//
// The following image shows how Chat attributes a message when you use app
// authentication. Chat displays the Chat app as the message
// sender. The content of the message can contain text (`text`), cards
// (`cardsV2`), and accessory widgets (`accessoryWidgets`).
//
// ![Message sent with app
// authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg)
//
// The following image shows how Chat attributes a message when you use user
// authentication. Chat displays the user as the message sender and attributes
// the Chat app to the message by displaying its name. The content of message
// can only contain text (`text`).
//
// ![Message sent with user
// authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
//
// The maximum message size, including the message contents, is 32,000 bytes.
CreateMessage(context.Context, *CreateMessageRequest) (*Message, error)
// Lists messages in a space that the caller is a member of, including
// messages from blocked members and spaces. If you list messages from a
// space with no messages, the response is an empty object. When using a
// REST/HTTP interface, the response contains an empty JSON object, `{}`.
// For an example, see
// [List
// messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
// Lists memberships in a space. For an example, see [List users and Google
// Chat apps in a
// space](https://developers.google.com/workspace/chat/list-members). Listing
// memberships with [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// lists memberships in spaces that the Chat app has
// access to, but excludes Chat app memberships,
// including its own. Listing memberships with
// [User
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// lists memberships in spaces that the authenticated user has access to.
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListMemberships(context.Context, *ListMembershipsRequest) (*ListMembershipsResponse, error)
// Returns details about a membership. For an example, see
// [Get details about a user's or Google Chat app's
// membership](https://developers.google.com/workspace/chat/get-members).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetMembership(context.Context, *GetMembershipRequest) (*Membership, error)
// Returns details about a message.
// For an example, see [Get details about a
// message](https://developers.google.com/workspace/chat/get-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// Note: Might return a message from a blocked member or space.
GetMessage(context.Context, *GetMessageRequest) (*Message, error)
// Updates a message. There's a difference between the `patch` and `update`
// methods. The `patch`
// method uses a `patch` request while the `update` method uses a `put`
// request. We recommend using the `patch` method. For an example, see
// [Update a
// message](https://developers.google.com/workspace/chat/update-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// When using app authentication, requests can only update messages
// created by the calling Chat app.
UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, error)
// Deletes a message.
// For an example, see [Delete a
// message](https://developers.google.com/workspace/chat/delete-messages).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// When using app authentication, requests can only delete messages
// created by the calling Chat app.
DeleteMessage(context.Context, *DeleteMessageRequest) (*emptypb.Empty, error)
// Gets the metadata of a message attachment. The attachment data is fetched
// using the [media
// API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download).
// For an example, see
// [Get metadata about a message
// attachment](https://developers.google.com/workspace/chat/get-media-attachments).
// Requires [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
GetAttachment(context.Context, *GetAttachmentRequest) (*Attachment, error)
// Uploads an attachment. For an example, see
// [Upload media as a file
// attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
// Requires user
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// You can upload attachments up to 200 MB. Certain file types aren't
// supported. For details, see [File types blocked by Google
// Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
UploadAttachment(context.Context, *UploadAttachmentRequest) (*UploadAttachmentResponse, error)
// Lists spaces the caller is a member of. Group chats and DMs aren't listed
// until the first message is sent. For an example, see
// [List
// spaces](https://developers.google.com/workspace/chat/list-spaces).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// Lists spaces visible to the caller or authenticated user. Group chats
// and DMs aren't listed until the first message is sent.
//
// To list all named spaces by Google Workspace organization, use the
// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
// method using Workspace administrator privileges instead.
ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
// Returns a list of spaces in a Google Workspace organization based on an
// administrator's search. Requires [user
// authentication with administrator
// privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
// In the request, set `use_admin_access` to `true`.
SearchSpaces(context.Context, *SearchSpacesRequest) (*SearchSpacesResponse, error)
// Returns details about a space. For an example, see
// [Get details about a
// space](https://developers.google.com/workspace/chat/get-spaces).
//
// Requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
// Supports
// [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
// and [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetSpace(context.Context, *GetSpaceRequest) (*Space, error)
// Creates a space with no members. Can be used to create a named space.
// Spaces grouped by topics aren't supported. For an example, see
// [Create a
// space](https://developers.google.com/workspace/chat/create-spaces).
//
// If you receive the error message `ALREADY_EXISTS` when creating
// a space, try a different `displayName`. An existing space within
// the Google Workspace organization might already use this display name.
//
// If you're a member of the [Developer Preview
// program](https://developers.google.com/workspace/preview), you can create a
// group chat in import mode using `spaceType.GROUP_CHAT`.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
CreateSpace(context.Context, *CreateSpaceRequest) (*Space, error)
// Creates a space and adds specified users to it. The calling user is
// automatically added to the space, and shouldn't be specified as a
// membership in the request. For an example, see
// [Set up a space with initial
// members](https://developers.google.com/workspace/chat/set-up-spaces).
//
// To specify the human members to add, add memberships with the appropriate
// `membership.member.name`. To add a human user, use `users/{user}`, where
// `{user}` can be the email address for the user. For users in the same
// Workspace organization `{user}` can also be the `id` for the person from
// the People API, or the `id` for the user in the Directory API. For example,
// if the People API Person profile ID for `user@example.com` is `123456789`,
// you can add the user to the space by setting the `membership.member.name`
// to `users/user@example.com` or `users/123456789`.
//
// To specify the Google groups to add, add memberships with the
// appropriate `membership.group_member.name`. To add or invite a Google
// group, use `groups/{group}`, where `{group}` is the `id` for the group from
// the Cloud Identity Groups API. For example, you can use [Cloud Identity
// Groups lookup
// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
// to retrieve the ID `123456789` for group email `group@example.com`, then
// you can add the group to the space by setting the
// `membership.group_member.name` to `groups/123456789`. Group email is not
// supported, and Google groups can only be added as members in named spaces.
//
// For a named space or group chat, if the caller blocks, or is blocked
// by some members, or doesn't have permission to add some members, then
// those members aren't added to the created space.
//
// To create a direct message (DM) between the calling user and another human
// user, specify exactly one membership to represent the human user. If
// one user blocks the other, the request fails and the DM isn't created.
//
// To create a DM between the calling user and the calling app, set
// `Space.singleUserBotDm` to `true` and don't specify any memberships. You
// can only use this method to set up a DM with the calling app. To add the
// calling app as a member of a space or an existing DM between two human
// users, see
// [Invite or add a user or app to a
// space](https://developers.google.com/workspace/chat/create-members).
//
// If a DM already exists between two users, even when one user blocks the
// other at the time a request is made, then the existing DM is returned.
//
// Spaces with threaded replies aren't supported. If you receive the error
// message `ALREADY_EXISTS` when setting up a space, try a different
// `displayName`. An existing space within the Google Workspace organization
// might already use this display name.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
SetUpSpace(context.Context, *SetUpSpaceRequest) (*Space, error)
// Updates a space. For an example, see
// [Update a
// space](https://developers.google.com/workspace/chat/update-spaces).
//
// If you're updating the `displayName` field and receive the error message
// `ALREADY_EXISTS`, try a different display name.. An existing space within
// the Google Workspace organization might already use this display name.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateSpace(context.Context, *UpdateSpaceRequest) (*Space, error)
// Deletes a named space. Always performs a cascading delete, which means
// that the space's child resources—like messages posted in the space and
// memberships in the space—are also deleted. For an example, see
// [Delete a
// space](https://developers.google.com/workspace/chat/delete-spaces).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// from a user who has permission to delete the space.
DeleteSpace(context.Context, *DeleteSpaceRequest) (*emptypb.Empty, error)
// Completes the
// [import process](https://developers.google.com/workspace/chat/import-data)
// for the specified space and makes it visible to users.
// Requires app authentication and domain-wide delegation. For more
// information, see [Authorize Google Chat apps to import
// data](https://developers.google.com/workspace/chat/authorize-import).
CompleteImportSpace(context.Context, *CompleteImportSpaceRequest) (*CompleteImportSpaceResponse, error)
// Returns the existing direct message with the specified user. If no direct
// message space is found, returns a `404 NOT_FOUND` error. For an example,
// see
// [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message).
//
// With [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// returns the direct message space between the specified user and the
// authenticated user.
//
// With [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
// returns the direct message space between the specified user and the calling
// Chat app.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
// or [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
FindDirectMessage(context.Context, *FindDirectMessageRequest) (*Space, error)
// Creates a membership for the calling Chat app, a user, or a Google Group.
// Creating memberships for other Chat apps isn't supported.
// When creating a membership, if the specified member has their auto-accept
// policy turned off, then they're invited, and must accept the space
// invitation before joining. Otherwise, creating a membership adds the member
// directly to the specified space.
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
//
// For example usage, see:
//
// - [Invite or add a user to a
// space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
//
// - [Invite or add a Google Group to a
// space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
//
// - [Add the Chat app to a
// space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
CreateMembership(context.Context, *CreateMembershipRequest) (*Membership, error)
// Updates a membership. For an example, see [Update a user's membership in
// a space](https://developers.google.com/workspace/chat/update-members).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateMembership(context.Context, *UpdateMembershipRequest) (*Membership, error)
// Deletes a membership. For an example, see
// [Remove a user or a Google Chat app from a
// space](https://developers.google.com/workspace/chat/delete-members).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
DeleteMembership(context.Context, *DeleteMembershipRequest) (*Membership, error)
// Creates a reaction and adds it to a message. Only unicode emojis are
// supported. For an example, see
// [Add a reaction to a
// message](https://developers.google.com/workspace/chat/create-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
CreateReaction(context.Context, *CreateReactionRequest) (*Reaction, error)
// Lists reactions to a message. For an example, see
// [List reactions for a
// message](https://developers.google.com/workspace/chat/list-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ListReactions(context.Context, *ListReactionsRequest) (*ListReactionsResponse, error)
// Deletes a reaction to a message. Only unicode emojis are supported.
// For an example, see
// [Delete a
// reaction](https://developers.google.com/workspace/chat/delete-reactions).
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
DeleteReaction(context.Context, *DeleteReactionRequest) (*emptypb.Empty, error)
// Returns details about a user's read state within a space, used to identify
// read and unread messages. For an example, see [Get details about a user's
// space read
// state](https://developers.google.com/workspace/chat/get-space-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetSpaceReadState(context.Context, *GetSpaceReadStateRequest) (*SpaceReadState, error)
// Updates a user's read state within a space, used to identify read and
// unread messages. For an example, see [Update a user's space read
// state](https://developers.google.com/workspace/chat/update-space-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
UpdateSpaceReadState(context.Context, *UpdateSpaceReadStateRequest) (*SpaceReadState, error)
// Returns details about a user's read state within a thread, used to identify
// read and unread messages. For an example, see [Get details about a user's
// thread read
// state](https://developers.google.com/workspace/chat/get-thread-read-state).
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
GetThreadReadState(context.Context, *GetThreadReadStateRequest) (*ThreadReadState, error)
// Returns an event from a Google Chat space. The [event
// payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
// contains the most recent version of the resource that changed. For example,
// if you request an event about a new message but the message was later
// updated, the server returns the updated `Message` resource in the event
// payload.
//
// Note: The `permissionSettings` field is not returned in the Space
// object of the Space event data for this request.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// To get an event, the authenticated user must be a member of the space.
//
// For an example, see [Get details about an
// event from a Google Chat
// space](https://developers.google.com/workspace/chat/get-space-event).
GetSpaceEvent(context.Context, *GetSpaceEventRequest) (*SpaceEvent, error)
// Lists events from a Google Chat space. For each event, the
// [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
// contains the most recent version of the Chat resource. For example, if you
// list events about new space members, the server returns `Membership`
// resources that contain the latest membership details. If new members were
// removed during the requested period, the event payload contains an empty
// `Membership` resource.
//
// Requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// To list events, the authenticated user must be a member of the space.
//
// For an example, see [List events from a Google Chat
// space](https://developers.google.com/workspace/chat/list-space-events).
ListSpaceEvents(context.Context, *ListSpaceEventsRequest) (*ListSpaceEventsResponse, error)
}
ChatServiceServer is the server API for ChatService service.
ChatSpaceLinkData
type ChatSpaceLinkData struct {
// The space of the linked Chat space resource.
//
// Format: `spaces/{space}`
Space string `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
// The thread of the linked Chat space resource.
//
// Format: `spaces/{space}/threads/{thread}`
Thread string `protobuf:"bytes,2,opt,name=thread,proto3" json:"thread,omitempty"`
// The message of the linked Chat space resource.
//
// Format: `spaces/{space}/messages/{message}`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Data for Chat space links.
func (*ChatSpaceLinkData) Descriptor
func (*ChatSpaceLinkData) Descriptor() ([]byte, []int)
Deprecated: Use ChatSpaceLinkData.ProtoReflect.Descriptor instead.
func (*ChatSpaceLinkData) GetMessage
func (x *ChatSpaceLinkData) GetMessage() string
func (*ChatSpaceLinkData) GetSpace
func (x *ChatSpaceLinkData) GetSpace() string
func (*ChatSpaceLinkData) GetThread
func (x *ChatSpaceLinkData) GetThread() string
func (*ChatSpaceLinkData) ProtoMessage
func (*ChatSpaceLinkData) ProtoMessage()
func (*ChatSpaceLinkData) ProtoReflect
func (x *ChatSpaceLinkData) ProtoReflect() protoreflect.Message
func (*ChatSpaceLinkData) Reset
func (x *ChatSpaceLinkData) Reset()
func (*ChatSpaceLinkData) String
func (x *ChatSpaceLinkData) String() string
CompleteImportSpaceRequest
type CompleteImportSpaceRequest struct {
// Required. Resource name of the import mode space.
//
// Format: `spaces/{space}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for completing the import process for a space.
func (*CompleteImportSpaceRequest) Descriptor
func (*CompleteImportSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteImportSpaceRequest.ProtoReflect.Descriptor instead.
func (*CompleteImportSpaceRequest) GetName
func (x *CompleteImportSpaceRequest) GetName() string
func (*CompleteImportSpaceRequest) ProtoMessage
func (*CompleteImportSpaceRequest) ProtoMessage()
func (*CompleteImportSpaceRequest) ProtoReflect
func (x *CompleteImportSpaceRequest) ProtoReflect() protoreflect.Message
func (*CompleteImportSpaceRequest) Reset
func (x *CompleteImportSpaceRequest) Reset()
func (*CompleteImportSpaceRequest) String
func (x *CompleteImportSpaceRequest) String() string
CompleteImportSpaceResponse
type CompleteImportSpaceResponse struct {
// The import mode space.
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
// contains filtered or unexported fields
}
Response message for completing the import process for a space.
func (*CompleteImportSpaceResponse) Descriptor
func (*CompleteImportSpaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteImportSpaceResponse.ProtoReflect.Descriptor instead.
func (*CompleteImportSpaceResponse) GetSpace
func (x *CompleteImportSpaceResponse) GetSpace() *Space
func (*CompleteImportSpaceResponse) ProtoMessage
func (*CompleteImportSpaceResponse) ProtoMessage()
func (*CompleteImportSpaceResponse) ProtoReflect
func (x *CompleteImportSpaceResponse) ProtoReflect() protoreflect.Message
func (*CompleteImportSpaceResponse) Reset
func (x *CompleteImportSpaceResponse) Reset()
func (*CompleteImportSpaceResponse) String
func (x *CompleteImportSpaceResponse) String() string
ContextualAddOnMarkup
type ContextualAddOnMarkup struct {
// contains filtered or unexported fields
}
The markup for developers to specify the contents of a contextual AddOn.
func (*ContextualAddOnMarkup) Descriptor
func (*ContextualAddOnMarkup) Descriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup.ProtoReflect.Descriptor instead.
func (*ContextualAddOnMarkup) ProtoMessage
func (*ContextualAddOnMarkup) ProtoMessage()
func (*ContextualAddOnMarkup) ProtoReflect
func (x *ContextualAddOnMarkup) ProtoReflect() protoreflect.Message
func (*ContextualAddOnMarkup) Reset
func (x *ContextualAddOnMarkup) Reset()
func (*ContextualAddOnMarkup) String
func (x *ContextualAddOnMarkup) String() string
ContextualAddOnMarkup_Card
type ContextualAddOnMarkup_Card struct {
// The header of the card. A header usually contains a title and an image.
Header *ContextualAddOnMarkup_Card_CardHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// Sections are separated by a line divider.
Sections []*ContextualAddOnMarkup_Card_Section `protobuf:"bytes,2,rep,name=sections,proto3" json:"sections,omitempty"`
// The actions of this card.
CardActions []*ContextualAddOnMarkup_Card_CardAction `protobuf:"bytes,3,rep,name=card_actions,json=cardActions,proto3" json:"card_actions,omitempty"`
// Name of the card.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A card is a UI element that can contain UI widgets such as text and images.
func (*ContextualAddOnMarkup_Card) Descriptor
func (*ContextualAddOnMarkup_Card) Descriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup_Card.ProtoReflect.Descriptor instead.
func (*ContextualAddOnMarkup_Card) GetCardActions
func (x *ContextualAddOnMarkup_Card) GetCardActions() []*ContextualAddOnMarkup_Card_CardAction
func (*ContextualAddOnMarkup_Card) GetHeader
func (x *ContextualAddOnMarkup_Card) GetHeader() *ContextualAddOnMarkup_Card_CardHeader
func (*ContextualAddOnMarkup_Card) GetName
func (x *ContextualAddOnMarkup_Card) GetName() string
func (*ContextualAddOnMarkup_Card) GetSections
func (x *ContextualAddOnMarkup_Card) GetSections() []*ContextualAddOnMarkup_Card_Section
func (*ContextualAddOnMarkup_Card) ProtoMessage
func (*ContextualAddOnMarkup_Card) ProtoMessage()
func (*ContextualAddOnMarkup_Card) ProtoReflect
func (x *ContextualAddOnMarkup_Card) ProtoReflect() protoreflect.Message
func (*ContextualAddOnMarkup_Card) Reset
func (x *ContextualAddOnMarkup_Card) Reset()
func (*ContextualAddOnMarkup_Card) String
func (x *ContextualAddOnMarkup_Card) String() string
ContextualAddOnMarkup_Card_CardAction
type ContextualAddOnMarkup_Card_CardAction struct {
// The label used to be displayed in the action menu item.
ActionLabel string `protobuf:"bytes,1,opt,name=action_label,json=actionLabel,proto3" json:"action_label,omitempty"`
// The onclick action for this action item.
OnClick *WidgetMarkup_OnClick `protobuf:"bytes,2,opt,name=on_click,json=onClick,proto3" json:"on_click,omitempty"`
// contains filtered or unexported fields
}
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.
func (*ContextualAddOnMarkup_Card_CardAction) Descriptor
func (*ContextualAddOnMarkup_Card_CardAction) Descriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup_Card_CardAction.ProtoReflect.Descriptor instead.
func (*ContextualAddOnMarkup_Card_CardAction) GetActionLabel
func (x *ContextualAddOnMarkup_Card_CardAction) GetActionLabel() string
func (*ContextualAddOnMarkup_Card_CardAction) GetOnClick
func (x *ContextualAddOnMarkup_Card_CardAction) GetOnClick() *WidgetMarkup_OnClick
func (*ContextualAddOnMarkup_Card_CardAction) ProtoMessage
func (*ContextualAddOnMarkup_Card_CardAction) ProtoMessage()
func (*ContextualAddOnMarkup_Card_CardAction) ProtoReflect
func (x *ContextualAddOnMarkup_Card_CardAction) ProtoReflect() protoreflect.Message
func (*ContextualAddOnMarkup_Card_CardAction) Reset
func (x *ContextualAddOnMarkup_Card_CardAction) Reset()
func (*ContextualAddOnMarkup_Card_CardAction) String
func (x *ContextualAddOnMarkup_Card_CardAction) String() string
ContextualAddOnMarkup_Card_CardHeader
type ContextualAddOnMarkup_Card_CardHeader struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
ImageStyle ContextualAddOnMarkup_Card_CardHeader_ImageStyle "" /* 161 byte string literal not displayed */
ImageUrl string `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
}
func (*ContextualAddOnMarkup_Card_CardHeader) Descriptor
func (*ContextualAddOnMarkup_Card_CardHeader) Descriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup_Card_CardHeader.ProtoReflect.Descriptor instead.
func (*ContextualAddOnMarkup_Card_CardHeader) GetImageStyle
func (x *ContextualAddOnMarkup_Card_CardHeader) GetImageStyle() ContextualAddOnMarkup_Card_CardHeader_ImageStyle
func (*ContextualAddOnMarkup_Card_CardHeader) GetImageUrl
func (x *ContextualAddOnMarkup_Card_CardHeader) GetImageUrl() string
func (*ContextualAddOnMarkup_Card_CardHeader) GetSubtitle
func (x *ContextualAddOnMarkup_Card_CardHeader) GetSubtitle() string
func (*ContextualAddOnMarkup_Card_CardHeader) GetTitle
func (x *ContextualAddOnMarkup_Card_CardHeader) GetTitle() string
func (*ContextualAddOnMarkup_Card_CardHeader) ProtoMessage
func (*ContextualAddOnMarkup_Card_CardHeader) ProtoMessage()
func (*ContextualAddOnMarkup_Card_CardHeader) ProtoReflect
func (x *ContextualAddOnMarkup_Card_CardHeader) ProtoReflect() protoreflect.Message
func (*ContextualAddOnMarkup_Card_CardHeader) Reset
func (x *ContextualAddOnMarkup_Card_CardHeader) Reset()
func (*ContextualAddOnMarkup_Card_CardHeader) String
func (x *ContextualAddOnMarkup_Card_CardHeader) String() string
ContextualAddOnMarkup_Card_CardHeader_ImageStyle
type ContextualAddOnMarkup_Card_CardHeader_ImageStyle int32
ContextualAddOnMarkup_Card_CardHeader_IMAGE_STYLE_UNSPECIFIED, ContextualAddOnMarkup_Card_CardHeader_IMAGE, ContextualAddOnMarkup_Card_CardHeader_AVATAR
const (
ContextualAddOnMarkup_Card_CardHeader_IMAGE_STYLE_UNSPECIFIED ContextualAddOnMarkup_Card_CardHeader_ImageStyle = 0
// Square border.
ContextualAddOnMarkup_Card_CardHeader_IMAGE ContextualAddOnMarkup_Card_CardHeader_ImageStyle = 1
// Circular border.
ContextualAddOnMarkup_Card_CardHeader_AVATAR ContextualAddOnMarkup_Card_CardHeader_ImageStyle = 2
)
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Descriptor
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Descriptor() protoreflect.EnumDescriptor
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Enum
func (x ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Enum() *ContextualAddOnMarkup_Card_CardHeader_ImageStyle
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) EnumDescriptor
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup_Card_CardHeader_ImageStyle.Descriptor instead.
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Number
func (x ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Number() protoreflect.EnumNumber
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) String
func (x ContextualAddOnMarkup_Card_CardHeader_ImageStyle) String() string
func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Type
ContextualAddOnMarkup_Card_Section
type ContextualAddOnMarkup_Card_Section struct {
// The header of the section. Formatted text is
// supported. For more information
// about formatting text, see
// [Formatting text in Google Chat
// apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
// and
// [Formatting
// text in Google Workspace
// Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// A section must contain at least one widget.
Widgets []*WidgetMarkup `protobuf:"bytes,2,rep,name=widgets,proto3" json:"widgets,omitempty"`
// contains filtered or unexported fields
}
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).
func (*ContextualAddOnMarkup_Card_Section) Descriptor
func (*ContextualAddOnMarkup_Card_Section) Descriptor() ([]byte, []int)
Deprecated: Use ContextualAddOnMarkup_Card_Section.ProtoReflect.Descriptor instead.
func (*ContextualAddOnMarkup_Card_Section) GetHeader
func (x *ContextualAddOnMarkup_Card_Section) GetHeader() string
func (*ContextualAddOnMarkup_Card_Section) GetWidgets
func (x *ContextualAddOnMarkup_Card_Section) GetWidgets() []*WidgetMarkup
func (*ContextualAddOnMarkup_Card_Section) ProtoMessage
func (*ContextualAddOnMarkup_Card_Section) ProtoMessage()
func (*ContextualAddOnMarkup_Card_Section) ProtoReflect
func (x *ContextualAddOnMarkup_Card_Section) ProtoReflect() protoreflect.Message
func (*ContextualAddOnMarkup_Card_Section) Reset
func (x *ContextualAddOnMarkup_Card_Section) Reset()
func (*ContextualAddOnMarkup_Card_Section) String
func (x *ContextualAddOnMarkup_Card_Section) String() string
CreateMembershipRequest
type CreateMembershipRequest struct {
// Required. The resource name of the space for which to create the
// membership.
//
// Format: spaces/{space}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The membership relation to create.
// The `memberType` field must contain a user with the `user.name` and
// `user.type` fields populated. The server will assign a resource name
// and overwrite anything specified.
// When a Chat app creates a membership relation for a human user, it must use
// the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
// `user.name` with format `users/{user}`, where `{user}` can be the email
// address for the user. For users in the same Workspace organization `{user}`
// can also be the `id` of the
// [person](https://developers.google.com/people/api/rest/v1/people) from the
// People API, or the `id` for the user in the Directory API. For example, if
// the People API Person profile ID for `user@example.com` is `123456789`, you
// can add the user to the space by setting the `membership.member.name` to
// `users/user@example.com` or `users/123456789`. When a Chat app creates a
// membership relation for itself, it must use the `chat.memberships.app`
// scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
Membership *Membership `protobuf:"bytes,2,opt,name=membership,proto3" json:"membership,omitempty"`
// When `true`, the method runs using the user's Google Workspace
// administrator privileges.
//
// The calling user must be a Google Workspace administrator with the
// [manage chat and spaces conversations
// privilege](https://support.google.com/a/answer/13369245).
//
// Requires the `chat.admin.memberships` [OAuth 2.0
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
//
// Creating app memberships or creating memberships for users outside the
// administrator's Google Workspace organization isn't supported using admin
// access.
UseAdminAccess bool `protobuf:"varint,5,opt,name=use_admin_access,json=useAdminAccess,proto3" json:"use_admin_access,omitempty"`
// contains filtered or unexported fields
}
Request message for creating a membership.
func (*CreateMembershipRequest) Descriptor
func (*CreateMembershipRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMembershipRequest.ProtoReflect.Descriptor instead.
func (*CreateMembershipRequest) GetMembership
func (x *CreateMembershipRequest) GetMembership() *Membership
func (*CreateMembershipRequest) GetParent
func (x *CreateMembershipRequest) GetParent() string
func (*CreateMembershipRequest) GetUseAdminAccess
func (x *CreateMembershipRequest) GetUseAdminAccess() bool
func (*CreateMembershipRequest) ProtoMessage
func (*CreateMembershipRequest) ProtoMessage()
func (*CreateMembershipRequest) ProtoReflect
func (x *CreateMembershipRequest) ProtoReflect() protoreflect.Message
func (*CreateMembershipRequest) Reset
func (x *CreateMembershipRequest) Reset()
func (*CreateMembershipRequest) String
func (x *CreateMembershipRequest) String() string
CreateMessageRequest
type CreateMessageRequest struct {
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
Message *Message `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
ThreadKey string `protobuf:"bytes,6,opt,name=thread_key,json=threadKey,proto3" json:"thread_key,omitempty"`
RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
MessageReplyOption CreateMessageRequest_MessageReplyOption "" /* 178 byte string literal not displayed */
MessageId string `protobuf:"bytes,9,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
Creates a message.
func (*CreateMessageRequest) Descriptor
func (*CreateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMessageRequest.ProtoReflect.Descriptor instead.
func (*CreateMessageRequest) GetMessage
func (x *CreateMessageRequest) GetMessage() *Message
func (*CreateMessageRequest) GetMessageId
func (x *CreateMessageRequest) GetMessageId() string
func (*CreateMessageRequest) GetMessageReplyOption
func (x *CreateMessageRequest) GetMessageReplyOption() CreateMessageRequest_MessageReplyOption
func (*CreateMessageRequest) GetParent
func (x *CreateMessageRequest) GetParent() string
func (*CreateMessageRequest) GetRequestId
func (x *CreateMessageRequest) GetRequestId() string
func (*CreateMessageRequest) GetThreadKey
func (x *CreateMessageRequest) GetThreadKey() string
Deprecated: Marked as deprecated in google/chat/v1/message.proto.
func (*CreateMessageRequest) ProtoMessage
func (*CreateMessageRequest) ProtoMessage()
func (*CreateMessageRequest) ProtoReflect
func (x *CreateMessageRequest) ProtoReflect() protoreflect.Message
func (*CreateMessageRequest) Reset
func (x *CreateMessageRequest) Reset()
func (*CreateMessageRequest) String
func (x *CreateMessageRequest) String() string
CreateMessageRequest_MessageReplyOption
type CreateMessageRequest_MessageReplyOption int32
Specifies how to reply to a message. More states might be added in the future.
CreateMessageRequest_MESSAGE_REPLY_OPTION_UNSPECIFIED, CreateMessageRequest_REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD, CreateMessageRequest_REPLY_MESSAGE_OR_FAIL
const (
// Default. Starts a new thread. Using this option ignores any [thread
// ID][google.chat.v1.Thread.name] or
// [`thread_key`][google.chat.v1.Thread.thread_key] that's included.
CreateMessageRequest_MESSAGE_REPLY_OPTION_UNSPECIFIED CreateMessageRequest_MessageReplyOption = 0
// Creates the message as a reply to the thread specified by [thread
// ID][google.chat.v1.Thread.name] or
// [`thread_key`][google.chat.v1.Thread.thread_key]. If it fails, the
// message starts a new thread instead.
CreateMessageRequest_REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD CreateMessageRequest_MessageReplyOption = 1
// Creates the message as a reply to the thread specified by [thread
// ID][google.chat.v1.Thread.name] or
// [`thread_key`][google.chat.v1.Thread.thread_key]. If a new `thread_key`
// is used, a new thread is created. If the message creation fails, a
// `NOT_FOUND` error is returned instead.
CreateMessageRequest_REPLY_MESSAGE_OR_FAIL CreateMessageRequest_MessageReplyOption = 2
)
func (CreateMessageRequest_MessageReplyOption) Descriptor
func (CreateMessageRequest_MessageReplyOption) Descriptor() protoreflect.EnumDescriptor
func (CreateMessageRequest_MessageReplyOption) Enum
func (CreateMessageRequest_MessageReplyOption) EnumDescriptor
func (CreateMessageRequest_MessageReplyOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateMessageRequest_MessageReplyOption.Descriptor instead.
func (CreateMessageRequest_MessageReplyOption) Number
func (x CreateMessageRequest_MessageReplyOption) Number() protoreflect.EnumNumber
func (CreateMessageRequest_MessageReplyOption) String
func (x CreateMessageRequest_MessageReplyOption) String() string
func (CreateMessageRequest_MessageReplyOption) Type
func (CreateMessageRequest_MessageReplyOption) Type() protoreflect.EnumType
CreateReactionRequest
type CreateReactionRequest struct {
// Required. The message where the reaction is created.
//
// Format: `spaces/{space}/messages/{message}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The reaction to create.
Reaction *Reaction `protobuf:"bytes,2,opt,name=reaction,proto3" json:"reaction,omitempty"`
// contains filtered or unexported fields
}
Creates a reaction to a message.
func (*CreateReactionRequest) Descriptor
func (*CreateReactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReactionRequest.ProtoReflect.Descriptor instead.
func (*CreateReactionRequest) GetParent
func (x *CreateReactionRequest) GetParent() string
func (*CreateReactionRequest) GetReaction
func (x *CreateReactionRequest) GetReaction() *Reaction
func (*CreateReactionRequest) ProtoMessage
func (*CreateReactionRequest) ProtoMessage()
func (*CreateReactionRequest) ProtoReflect
func (x *CreateReactionRequest) ProtoReflect() protoreflect.Message
func (*CreateReactionRequest) Reset
func (x *CreateReactionRequest) Reset()
func (*CreateReactionRequest) String
func (x *CreateReactionRequest) String() string
CreateSpaceRequest
type CreateSpaceRequest struct {
// Required. The `displayName` and `spaceType` fields must be populated. Only
// `SpaceType.SPACE` is supported.
//
// If you receive the error message `ALREADY_EXISTS`,
// try a different `displayName`. An existing space within the Google
// Workspace organization might already use this display name.
//
// If you're a member of the [Developer Preview
// program](https://developers.google.com/workspace/preview),
// `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
//
// The space `name` is assigned on the server so anything specified in this
// field will be ignored.
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
// Optional. 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.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
A request to create a named space with no members.
func (*CreateSpaceRequest) Descriptor
func (*CreateSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpaceRequest.ProtoReflect.Descriptor instead.
func (*CreateSpaceRequest) GetRequestId
func (x *CreateSpaceRequest) GetRequestId() string
func (*CreateSpaceRequest) GetSpace
func (x *CreateSpaceRequest) GetSpace() *Space
func (*CreateSpaceRequest) ProtoMessage
func (*CreateSpaceRequest) ProtoMessage()
func (*CreateSpaceRequest) ProtoReflect
func (x *CreateSpaceRequest) ProtoReflect() protoreflect.Message
func (*CreateSpaceRequest) Reset
func (x *CreateSpaceRequest) Reset()
func (*CreateSpaceRequest) String
func (x *CreateSpaceRequest) String() string
CustomEmoji
type CustomEmoji struct {
// Output only. Unique key for the custom emoji resource.
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
Represents a custom emoji.
func (*CustomEmoji) Descriptor
func (*CustomEmoji) Descriptor() ([]byte, []int)
Deprecated: Use CustomEmoji.ProtoReflect.Descriptor instead.
func (*CustomEmoji) GetUid
func (x *CustomEmoji) GetUid() string
func (*CustomEmoji) ProtoMessage
func (*CustomEmoji) ProtoMessage()
func (*CustomEmoji) ProtoReflect
func (x *CustomEmoji) ProtoReflect() protoreflect.Message
func (*CustomEmoji) Reset
func (x *CustomEmoji) Reset()
func (*CustomEmoji) String
func (x *CustomEmoji) String() string
DeleteMembershipRequest
type DeleteMembershipRequest struct {
// Required. 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 `chat.memberships` scope and
// `spaces/{space}/members/{member}` format. You can use the email as an
// alias for `{member}`. For example,
// `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
// email of the Google Chat user.
//
// When deleting an app membership, requires the `chat.memberships.app` scope
// and `spaces/{space}/members/app` format.
//
// Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// When `true`, the method runs using the user's Google Workspace
// administrator privileges.
//
// The calling user must be a Google Workspace administrator with the
// [manage chat and spaces conversations
// privilege](https://support.google.com/a/answer/13369245).
//
// Requires the `chat.admin.memberships` [OAuth 2.0
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
//
// Deleting app memberships in a space isn't supported using admin access.
UseAdminAccess bool `protobuf:"varint,2,opt,name=use_admin_access,json=useAdminAccess,proto3" json:"use_admin_access,omitempty"`
// contains filtered or unexported fields
}
Request to delete a membership in a space.
func (*DeleteMembershipRequest) Descriptor
func (*DeleteMembershipRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMembershipRequest.ProtoReflect.Descriptor instead.
func (*DeleteMembershipRequest) GetName
func (x *DeleteMembershipRequest) GetName() string
func (*DeleteMembershipRequest) GetUseAdminAccess
func (x *DeleteMembershipRequest) GetUseAdminAccess() bool
func (*DeleteMembershipRequest) ProtoMessage
func (*DeleteMembershipRequest) ProtoMessage()
func (*DeleteMembershipRequest) ProtoReflect
func (x *DeleteMembershipRequest) ProtoReflect() protoreflect.Message
func (*DeleteMembershipRequest) Reset
func (x *DeleteMembershipRequest) Reset()
func (*DeleteMembershipRequest) String
func (x *DeleteMembershipRequest) String() string
DeleteMessageRequest
type DeleteMessageRequest struct {
// Required. Resource name of the message.
//
// Format: `spaces/{space}/messages/{message}`
//
// If you've set a custom ID for your message, you can use the value from the
// `clientAssignedMessageId` field for `{message}`. For details, see [Name a
// message]
// (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// When `true`, deleting a message also deletes its threaded replies. When
// `false`, if a message has threaded replies, deletion fails.
//
// Only applies when [authenticating as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
// Has no effect when [authenticating as a Chat app]
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}
Request to delete a message.
func (*DeleteMessageRequest) Descriptor
func (*DeleteMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMessageRequest.ProtoReflect.Descriptor instead.
func (*DeleteMessageRequest) GetForce
func (x *DeleteMessageRequest) GetForce() bool
func (*DeleteMessageRequest) GetName
func (x *DeleteMessageRequest) GetName() string
func (*DeleteMessageRequest) ProtoMessage
func (*DeleteMessageRequest) ProtoMessage()
func (*DeleteMessageRequest) ProtoReflect
func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message
func (*DeleteMessageRequest) Reset
func (x *DeleteMessageRequest) Reset()
func (*DeleteMessageRequest) String
func (x *DeleteMessageRequest) String() string
DeleteReactionRequest
type DeleteReactionRequest struct {
// Required. Name of the reaction to delete.
//
// Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Deletes a reaction to a message.
func (*DeleteReactionRequest) Descriptor
func (*DeleteReactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReactionRequest.ProtoReflect.Descriptor instead.
func (*DeleteReactionRequest) GetName
func (x *DeleteReactionRequest) GetName() string
func (*DeleteReactionRequest) ProtoMessage
func (*DeleteReactionRequest) ProtoMessage()
func (*DeleteReactionRequest) ProtoReflect
func (x *DeleteReactionRequest) ProtoReflect() protoreflect.Message
func (*DeleteReactionRequest) Reset
func (x *DeleteReactionRequest) Reset()
func (*DeleteReactionRequest) String
func (x *DeleteReactionRequest) String() string
DeleteSpaceRequest
type DeleteSpaceRequest struct {
// Required. Resource name of the space to delete.
//
// Format: `spaces/{space}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// When `true`, the method runs using the user's Google Workspace
// administrator privileges.
//
// The calling user must be a Google Workspace administrator with the
// [manage chat and spaces conversations
// privilege](https://support.google.com/a/answer/13369245).
//
// Requires the `chat.admin.delete` [OAuth 2.0
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
UseAdminAccess bool `protobuf:"varint,2,opt,name=use_admin_access,json=useAdminAccess,proto3" json:"use_admin_access,omitempty"`
// contains filtered or unexported fields
}
Request for deleting a space.
func (*DeleteSpaceRequest) Descriptor
func (*DeleteSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSpaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpaceRequest) GetName
func (x *DeleteSpaceRequest) GetName() string
func (*DeleteSpaceRequest) GetUseAdminAccess
func (x *DeleteSpaceRequest) GetUseAdminAccess() bool
func (*DeleteSpaceRequest) ProtoMessage
func (*DeleteSpaceRequest) ProtoMessage()
func (*DeleteSpaceRequest) ProtoReflect
func (x *DeleteSpaceRequest) ProtoReflect() protoreflect.Message
func (*DeleteSpaceRequest) Reset
func (x *DeleteSpaceRequest) Reset()
func (*DeleteSpaceRequest) String
func (x *DeleteSpaceRequest) String() string
DeletionMetadata
type DeletionMetadata struct {
DeletionType DeletionMetadata_DeletionType "" /* 148 byte string literal not displayed */
}
Information about a deleted message. A message is deleted when delete_time
is set.
func (*DeletionMetadata) Descriptor
func (*DeletionMetadata) Descriptor() ([]byte, []int)
Deprecated: Use DeletionMetadata.ProtoReflect.Descriptor instead.
func (*DeletionMetadata) GetDeletionType
func (x *DeletionMetadata) GetDeletionType() DeletionMetadata_DeletionType
func (*DeletionMetadata) ProtoMessage
func (*DeletionMetadata) ProtoMessage()
func (*DeletionMetadata) ProtoReflect
func (x *DeletionMetadata) ProtoReflect() protoreflect.Message
func (*DeletionMetadata) Reset
func (x *DeletionMetadata) Reset()
func (*DeletionMetadata) String
func (x *DeletionMetadata) String() string
DeletionMetadata_DeletionType
type DeletionMetadata_DeletionType int32
Who deleted the message and how it was deleted.
DeletionMetadata_DELETION_TYPE_UNSPECIFIED, DeletionMetadata_CREATOR, DeletionMetadata_SPACE_OWNER, DeletionMetadata_ADMIN, DeletionMetadata_APP_MESSAGE_EXPIRY, DeletionMetadata_CREATOR_VIA_APP, DeletionMetadata_SPACE_OWNER_VIA_APP
const (
// This value is unused.
DeletionMetadata_DELETION_TYPE_UNSPECIFIED DeletionMetadata_DeletionType = 0
// User deleted their own message.
DeletionMetadata_CREATOR DeletionMetadata_DeletionType = 1
// The space owner deleted the message.
DeletionMetadata_SPACE_OWNER DeletionMetadata_DeletionType = 2
// A Google Workspace admin deleted the message.
DeletionMetadata_ADMIN DeletionMetadata_DeletionType = 3
// A Chat app deleted its own message when it expired.
DeletionMetadata_APP_MESSAGE_EXPIRY DeletionMetadata_DeletionType = 4
// A Chat app deleted the message on behalf of the user.
DeletionMetadata_CREATOR_VIA_APP DeletionMetadata_DeletionType = 5
// A Chat app deleted the message on behalf of the space owner.
DeletionMetadata_SPACE_OWNER_VIA_APP DeletionMetadata_DeletionType = 6
)
func (DeletionMetadata_DeletionType) Descriptor
func (DeletionMetadata_DeletionType) Descriptor() protoreflect.EnumDescriptor
func (DeletionMetadata_DeletionType) Enum
func (x DeletionMetadata_DeletionType) Enum() *DeletionMetadata_DeletionType
func (DeletionMetadata_DeletionType) EnumDescriptor
func (DeletionMetadata_DeletionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeletionMetadata_DeletionType.Descriptor instead.
func (DeletionMetadata_DeletionType) Number
func (x DeletionMetadata_DeletionType) Number() protoreflect.EnumNumber
func (DeletionMetadata_DeletionType) String
func (x DeletionMetadata_DeletionType) String() string
func (DeletionMetadata_DeletionType) Type
func (DeletionMetadata_DeletionType) Type() protoreflect.EnumType
Dialog
type Dialog struct {
// Input only. Body of the dialog, which is rendered in a modal.
// Google Chat apps don't support the following card entities:
// `DateTimePicker`, `OnChangeAction`.
Body *v1.Card `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
Wrapper around the card body of the dialog.
func (*Dialog) Descriptor
Deprecated: Use Dialog.ProtoReflect.Descriptor instead.
func (*Dialog) GetBody
func (*Dialog) ProtoMessage
func (*Dialog) ProtoMessage()
func (*Dialog) ProtoReflect
func (x *Dialog) ProtoReflect() protoreflect.Message
func (*Dialog) Reset
func (x *Dialog) Reset()
func (*Dialog) String
DialogAction
type DialogAction struct {
// Action to perform.
//
// Types that are assignable to Action:
//
// *DialogAction_Dialog
Action isDialogAction_Action `protobuf_oneof:"action"`
// Input only. Status for a request to either invoke or submit a
// [dialog](https://developers.google.com/workspace/chat/dialogs). Displays
// a status and message to users, if necessary.
// For example, in case of an error or success.
ActionStatus *ActionStatus `protobuf:"bytes,2,opt,name=action_status,json=actionStatus,proto3" json:"action_status,omitempty"`
// contains filtered or unexported fields
}
Contains a dialog and request status code.
func (*DialogAction) Descriptor
func (*DialogAction) Descriptor() ([]byte, []int)
Deprecated: Use DialogAction.ProtoReflect.Descriptor instead.
func (*DialogAction) GetAction
func (m *DialogAction) GetAction() isDialogAction_Action
func (*DialogAction) GetActionStatus
func (x *DialogAction) GetActionStatus() *ActionStatus
func (*DialogAction) GetDialog
func (x *DialogAction) GetDialog() *Dialog
func (*DialogAction) ProtoMessage
func (*DialogAction) ProtoMessage()
func (*DialogAction) ProtoReflect
func (x *DialogAction) ProtoReflect() protoreflect.Message
func (*DialogAction) Reset
func (x *DialogAction) Reset()
func (*DialogAction) String
func (x *DialogAction) String() string
DialogAction_Dialog
type DialogAction_Dialog struct {
// Input only.
// [Dialog](https://developers.google.com/workspace/chat/dialogs) for the
// request.
Dialog *Dialog `protobuf:"bytes,1,opt,name=dialog,proto3,oneof"`
}
DriveDataRef
type DriveDataRef struct {
// The ID for the drive file. Use with the Drive API.
DriveFileId string `protobuf:"bytes,2,opt,name=drive_file_id,json=driveFileId,proto3" json:"drive_file_id,omitempty"`
// contains filtered or unexported fields
}
A reference to the data of a drive attachment.
func (*DriveDataRef) Descriptor
func (*DriveDataRef) Descriptor() ([]byte, []int)
Deprecated: Use DriveDataRef.ProtoReflect.Descriptor instead.
func (*DriveDataRef) GetDriveFileId
func (x *DriveDataRef) GetDriveFileId() string
func (*DriveDataRef) ProtoMessage
func (*DriveDataRef) ProtoMessage()
func (*DriveDataRef) ProtoReflect
func (x *DriveDataRef) ProtoReflect() protoreflect.Message
func (*DriveDataRef) Reset
func (x *DriveDataRef) Reset()
func (*DriveDataRef) String
func (x *DriveDataRef) String() string
DriveLinkData
type DriveLinkData struct {
// A
// [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref)
// which references a Google Drive file.
DriveDataRef *DriveDataRef `protobuf:"bytes,1,opt,name=drive_data_ref,json=driveDataRef,proto3" json:"drive_data_ref,omitempty"`
// The mime type of the linked Google Drive resource.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// contains filtered or unexported fields
}
Data for Google Drive links.
func (*DriveLinkData) Descriptor
func (*DriveLinkData) Descriptor() ([]byte, []int)
Deprecated: Use DriveLinkData.ProtoReflect.Descriptor instead.
func (*DriveLinkData) GetDriveDataRef
func (x *DriveLinkData) GetDriveDataRef() *DriveDataRef
func (*DriveLinkData) GetMimeType
func (x *DriveLinkData) GetMimeType() string
func (*DriveLinkData) ProtoMessage
func (*DriveLinkData) ProtoMessage()
func (*DriveLinkData) ProtoReflect
func (x *DriveLinkData) ProtoReflect() protoreflect.Message
func (*DriveLinkData) Reset
func (x *DriveLinkData) Reset()
func (*DriveLinkData) String
func (x *DriveLinkData) String() string
Emoji
type Emoji struct {
// The content of the emoji.
//
// Types that are assignable to Content:
//
// *Emoji_Unicode
// *Emoji_CustomEmoji
Content isEmoji_Content `protobuf_oneof:"content"`
// contains filtered or unexported fields
}
An emoji that is used as a reaction to a message.
func (*Emoji) Descriptor
Deprecated: Use Emoji.ProtoReflect.Descriptor instead.
func (*Emoji) GetContent
func (m *Emoji) GetContent() isEmoji_Content
func (*Emoji) GetCustomEmoji
func (x *Emoji) GetCustomEmoji() *CustomEmoji
func (*Emoji) GetUnicode
func (*Emoji) ProtoMessage
func (*Emoji) ProtoMessage()
func (*Emoji) ProtoReflect
func (x *Emoji) ProtoReflect() protoreflect.Message
func (*Emoji) Reset
func (x *Emoji) Reset()
func (*Emoji) String
EmojiReactionSummary
type EmojiReactionSummary struct {
// Emoji associated with the reactions.
Emoji *Emoji `protobuf:"bytes,1,opt,name=emoji,proto3" json:"emoji,omitempty"`
// The total number of reactions using the associated emoji.
ReactionCount *int32 `protobuf:"varint,2,opt,name=reaction_count,json=reactionCount,proto3,oneof" json:"reaction_count,omitempty"`
// contains filtered or unexported fields
}
The number of people who reacted to a message with a specific emoji.
func (*EmojiReactionSummary) Descriptor
func (*EmojiReactionSummary) Descriptor() ([]byte, []int)
Deprecated: Use EmojiReactionSummary.ProtoReflect.Descriptor instead.
func (*EmojiReactionSummary) GetEmoji
func (x *EmojiReactionSummary) GetEmoji() *Emoji
func (*EmojiReactionSummary) GetReactionCount
func (x *EmojiReactionSummary) GetReactionCount() int32
func (*EmojiReactionSummary) ProtoMessage
func (*EmojiReactionSummary) ProtoMessage()
func (*EmojiReactionSummary) ProtoReflect
func (x *EmojiReactionSummary) ProtoReflect() protoreflect.Message
func (*EmojiReactionSummary) Reset
func (x *EmojiReactionSummary) Reset()
func (*EmojiReactionSummary) String
func (x *EmojiReactionSummary) String() string
Emoji_CustomEmoji
type Emoji_CustomEmoji struct {
// Output only. A custom emoji.
CustomEmoji *CustomEmoji `protobuf:"bytes,2,opt,name=custom_emoji,json=customEmoji,proto3,oneof"`
}
Emoji_Unicode
type Emoji_Unicode struct {
// A basic emoji represented by a unicode string.
Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3,oneof"`
}
FindDirectMessageRequest
type FindDirectMessageRequest struct {
// Required. Resource name of the user to find direct message with.
//
// Format: `users/{user}`, where `{user}` is either the `id` for the
// [person](https://developers.google.com/people/api/rest/v1/people) from the
// People API, or the `id` for the
// [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
// in the Directory API. For example, if the People API profile ID is
// `123456789`, you can find a direct message with that person by using
// `users/123456789` as the `name`. When [authenticated as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// you can use the email as an alias for `{user}`. For example,
// `users/example@gmail.com` where `example@gmail.com` is the email of the
// Google Chat user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A request to get direct message space based on the user resource.
func (*FindDirectMessageRequest) Descriptor
func (*FindDirectMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindDirectMessageRequest.ProtoReflect.Descriptor instead.
func (*FindDirectMessageRequest) GetName
func (x *FindDirectMessageRequest) GetName() string
func (*FindDirectMessageRequest) ProtoMessage
func (*FindDirectMessageRequest) ProtoMessage()
func (*FindDirectMessageRequest) ProtoReflect
func (x *FindDirectMessageRequest) ProtoReflect() protoreflect.Message
func (*FindDirectMessageRequest) Reset
func (x *FindDirectMessageRequest) Reset()
func (*FindDirectMessageRequest) String
func (x *FindDirectMessageRequest) String() string
GetAttachmentRequest
type GetAttachmentRequest struct {
// Required. Resource name of the attachment, in the form
// `spaces/{space}/messages/{message}/attachments/{attachment}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request to get an attachment.
func (*GetAttachmentRequest) Descriptor
func (*GetAttachmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttachmentRequest.ProtoReflect.Descriptor instead.
func (*GetAttachmentRequest) GetName
func (x *GetAttachmentRequest) GetName() string
func (*GetAttachmentRequest) ProtoMessage
func (*GetAttachmentRequest) ProtoMessage()
func (*GetAttachmentRequest) ProtoReflect
func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message
func (*GetAttachmentRequest) Reset
func (x *GetAttachmentRequest) Reset()
func (*GetAttachmentRequest) String
func (x *GetAttachmentRequest) String() string
GetMembershipRequest
type GetMembershipRequest struct {
// Required. Resource name of the membership to retrieve.
//
// To get the app's own membership [by using user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// you can optionally use `spaces/{space}/members/app`.
//
// Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
//
// When [authenticated as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// you can use the user's email as an alias for `{member}`. For example,
// `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
// email of the Google Chat user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// When `true`, the method runs using the user's Google Workspace
// administrator privileges.
//
// The calling user must be a Google Workspace administrator with the
// [manage chat and spaces conversations
// privilege](https://support.google.com/a/answer/13369245).
//
// Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly`
// [OAuth 2.0
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
//
// Getting app memberships in a space isn't supported when using admin access.
UseAdminAccess bool `protobuf:"varint,3,opt,name=use_admin_access,json=useAdminAccess,proto3" json:"use_admin_access,omitempty"`
// contains filtered or unexported fields
}
Request to get a membership of a space.
func (*GetMembershipRequest) Descriptor
func (*GetMembershipRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMembershipRequest.ProtoReflect.Descriptor instead.
func (*GetMembershipRequest) GetName
func (x *GetMembershipRequest) GetName() string
func (*GetMembershipRequest) GetUseAdminAccess
func (x *GetMembershipRequest) GetUseAdminAccess() bool
func (*GetMembershipRequest) ProtoMessage
func (*GetMembershipRequest) ProtoMessage()
func (*GetMembershipRequest) ProtoReflect
func (x *GetMembershipRequest) ProtoReflect() protoreflect.Message
func (*GetMembershipRequest) Reset
func (x *GetMembershipRequest) Reset()
func (*GetMembershipRequest) String
func (x *GetMembershipRequest) String() string
GetMessageRequest
type GetMessageRequest struct {
// Required. Resource name of the message.
//
// Format: `spaces/{space}/messages/{message}`
//
// If you've set a custom ID for your message, you can use the value from the
// `clientAssignedMessageId` field for `{message}`. For details, see [Name a
// message]
// (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request to get a message.
func (*GetMessageRequest) Descriptor
func (*GetMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageRequest.ProtoReflect.Descriptor instead.
func (*GetMessageRequest) GetName
func (x *GetMessageRequest) GetName() string
func (*GetMessageRequest) ProtoMessage
func (*GetMessageRequest) ProtoMessage()
func (*GetMessageRequest) ProtoReflect
func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
func (*GetMessageRequest) Reset
func (x *GetMessageRequest) Reset()
func (*GetMessageRequest) String
func (x *GetMessageRequest) String() string
GetSpaceEventRequest
type GetSpaceEventRequest struct {
// Required. The resource name of the space event.
//
// Format: `spaces/{space}/spaceEvents/{spaceEvent}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for getting a space event.
func (*GetSpaceEventRequest) Descriptor
func (*GetSpaceEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceEventRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceEventRequest) GetName
func (x *GetSpaceEventRequest) GetName() string
func (*GetSpaceEventRequest) ProtoMessage
func (*GetSpaceEventRequest) ProtoMessage()
func (*GetSpaceEventRequest) ProtoReflect
func (x *GetSpaceEventRequest) ProtoReflect() protoreflect.Message
func (*GetSpaceEventRequest) Reset
func (x *GetSpaceEventRequest) Reset()
func (*GetSpaceEventRequest) String
func (x *GetSpaceEventRequest) String() string
GetSpaceReadStateRequest
type GetSpaceReadStateRequest struct {
// Required. 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: