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_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. The maximum message size,
// including text and cards, is 32,000 bytes. For an example, see [Send a
// message](https://developers.google.com/workspace/chat/create-messages).
//
// Calling this method requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
// and supports the following authentication types:
//
// - For text messages, user authentication or app authentication are
// supported.
// - For card messages, only app authentication is supported. (Only Chat apps
// can create card messages.)
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. For an example, see
// [List messages](/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 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 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.
//
// 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 human membership or app membership for the calling app. Creating
// memberships for other apps isn't supported. For an example, see
// [Invite or add a user or a Google Chat app to a
// space](https://developers.google.com/workspace/chat/create-members).
// 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).
//
// To specify the member to add, set the `membership.member.name` for the
// human or app member, or set the `membership.group_member.name` for the
// group member.
//
// - To add the calling app to a space or a direct message between two human
// users, use `users/app`. Unable to add other
// apps to the space.
//
// - 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 add or invite a Google group in a named space, 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 or invite the group to a named 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.
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.
//
// 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. The maximum message size,
// including text and cards, is 32,000 bytes. For an example, see [Send a
// message](https://developers.google.com/workspace/chat/create-messages).
//
// Calling this method requires
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
// and supports the following authentication types:
//
// - For text messages, user authentication or app authentication are
// supported.
// - For card messages, only app authentication is supported. (Only Chat apps
// can create card messages.)
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. For an example, see
// [List messages](/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 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 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.
//
// 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 human membership or app membership for the calling app. Creating
// memberships for other apps isn't supported. For an example, see
// [Invite or add a user or a Google Chat app to a
// space](https://developers.google.com/workspace/chat/create-members).
// 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).
//
// To specify the member to add, set the `membership.member.name` for the
// human or app member, or set the `membership.group_member.name` for the
// group member.
//
// - To add the calling app to a space or a direct message between two human
// users, use `users/app`. Unable to add other
// apps to the space.
//
// - 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 add or invite a Google group in a named space, 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 or invite the group to a named 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.
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.
//
// 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"`
// 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) 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` when creating a space,
// try a different `displayName`. An existing space within the Google
// Workspace organization might already use this display name.
//
// 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.
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"`
// 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) 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"`
// 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) 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"`
// 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) 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:
//
// - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`.
//
// - Their Workspace email address. For example,
// `users/user@example.com/spaces/{space}/spaceReadState`.
//
// - Their user id. For example,
// `users/123456789/spaces/{space}/spaceReadState`.
//
// Format: users/{user}/spaces/{space}/spaceReadState
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for GetSpaceReadState API.
func (*GetSpaceReadStateRequest) Descriptor
func (*GetSpaceReadStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceReadStateRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceReadStateRequest) GetName
func (x *GetSpaceReadStateRequest) GetName() string
func (*GetSpaceReadStateRequest) ProtoMessage
func (*GetSpaceReadStateRequest) ProtoMessage()
func (*GetSpaceReadStateRequest) ProtoReflect
func (x *GetSpaceReadStateRequest) ProtoReflect() protoreflect.Message
func (*GetSpaceReadStateRequest) Reset
func (x *GetSpaceReadStateRequest) Reset()
func (*GetSpaceReadStateRequest) String
func (x *GetSpaceReadStateRequest) String() string
GetSpaceRequest
type GetSpaceRequest struct {
// Required. Resource name of the space, in the form `spaces/{space}`.
//
// Format: `spaces/{space}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A request to return a single space.
func (*GetSpaceRequest) Descriptor
func (*GetSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceRequest) GetName
func (x *GetSpaceRequest) GetName() string
func (*GetSpaceRequest) ProtoMessage
func (*GetSpaceRequest) ProtoMessage()
func (*GetSpaceRequest) ProtoReflect
func (x *GetSpaceRequest) ProtoReflect() protoreflect.Message
func (*GetSpaceRequest) Reset
func (x *GetSpaceRequest) Reset()
func (*GetSpaceRequest) String
func (x *GetSpaceRequest) String() string
GetThreadReadStateRequest
type GetThreadReadStateRequest struct {
// Required. Resource name of the thread read state to retrieve.
//
// Only supports getting read state for the calling user.
//
// To refer to the calling user, set one of the following:
//
// - The `me` alias. For example,
// `users/me/spaces/{space}/threads/{thread}/threadReadState`.
//
// - Their Workspace email address. For example,
// `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
//
// - Their user id. For example,
// `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
//
// Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for GetThreadReadStateRequest API.
func (*GetThreadReadStateRequest) Descriptor
func (*GetThreadReadStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetThreadReadStateRequest.ProtoReflect.Descriptor instead.
func (*GetThreadReadStateRequest) GetName
func (x *GetThreadReadStateRequest) GetName() string
func (*GetThreadReadStateRequest) ProtoMessage
func (*GetThreadReadStateRequest) ProtoMessage()
func (*GetThreadReadStateRequest) ProtoReflect
func (x *GetThreadReadStateRequest) ProtoReflect() protoreflect.Message
func (*GetThreadReadStateRequest) Reset
func (x *GetThreadReadStateRequest) Reset()
func (*GetThreadReadStateRequest) String
func (x *GetThreadReadStateRequest) String() string
Group
type Group struct {
// Resource name for a Google Group.
//
// Represents a
// [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in
// Cloud Identity Groups API.
//
// Format: groups/{group}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A Google Group in Google Chat.
func (*Group) Descriptor
Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) GetName
func (*Group) ProtoMessage
func (*Group) ProtoMessage()
func (*Group) ProtoReflect
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) Reset
func (x *Group) Reset()
func (*Group) String
HistoryState
type HistoryState int32
The history state for messages and spaces. Specifies how long messages and conversation threads are kept after creation.
HistoryState_HISTORY_STATE_UNSPECIFIED, HistoryState_HISTORY_OFF, HistoryState_HISTORY_ON
const (
// Default value. Do not use.
HistoryState_HISTORY_STATE_UNSPECIFIED HistoryState = 0
// History off. [Messages and threads are kept for 24
// hours](https://support.google.com/chat/answer/7664687).
HistoryState_HISTORY_OFF HistoryState = 1
// History on. The organization's [Vault retention
// rules](https://support.google.com/vault/answer/7657597) specify for
// how long messages and threads are kept.
HistoryState_HISTORY_ON HistoryState = 2
)
func (HistoryState) Descriptor
func (HistoryState) Descriptor() protoreflect.EnumDescriptor
func (HistoryState) Enum
func (x HistoryState) Enum() *HistoryState
func (HistoryState) EnumDescriptor
func (HistoryState) EnumDescriptor() ([]byte, []int)
Deprecated: Use HistoryState.Descriptor instead.
func (HistoryState) Number
func (x HistoryState) Number() protoreflect.EnumNumber
func (HistoryState) String
func (x HistoryState) String() string
func (HistoryState) Type
func (HistoryState) Type() protoreflect.EnumType
ListMembershipsRequest
type ListMembershipsRequest struct {
// Required. The resource name of the space for which to fetch a membership
// list.
//
// Format: spaces/{space}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of memberships to return. The service might
// return fewer than this value.
//
// If unspecified, at most 100 memberships are returned.
//
// The maximum value is 1000. If you use a value more than 1000, it's
// automatically changed to 1000.
//
// Negative values return an `INVALID_ARGUMENT` error.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous call to list memberships.
// Provide this parameter to retrieve the subsequent page.
//
// When paginating, all other parameters provided should match the call that
// provided the page token. Passing different values to the other parameters
// might lead to unexpected results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A query filter.
//
// You can filter memberships by a member's role
// ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole))
// and type
// ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)).
//
// To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
//
// To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
// Preview: You can also filter for `member.type` using the `!=` operator.
//
// To filter by both role and type, use the `AND` operator. To filter by
// either role or type, use the `OR` operator.
//
// Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
// when `use_admin_access` is set to true. Other member type filters will be
// rejected.
//
// For example, the following queries are valid:
//
// ```
// role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
// member.type = "HUMAN" AND role = "ROLE_MANAGER"
//
// member.type != "BOT"
// ```
//
// The following queries are invalid:
//
// ```
// member.type = "HUMAN" AND member.type = "BOT"
// role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
// ```
//
// Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
// error.
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. When `true`, also returns memberships associated with a
// [Google Group][google.chat.v1.Membership.group_member], in
// addition to other types of memberships. If a
// [filter][google.chat.v1.ListMembershipsRequest.filter] is set,
// [Google Group][google.chat.v1.Membership.group_member]
// memberships that don't match the filter criteria aren't returned.
ShowGroups bool `protobuf:"varint,6,opt,name=show_groups,json=showGroups,proto3" json:"show_groups,omitempty"`
// Optional. When `true`, also returns memberships associated with
// [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in
// addition to other types of memberships. If a
// filter is set,
// [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships
// that don't match the filter criteria aren't returned.
//
// Currently requires [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
ShowInvited bool `protobuf:"varint,7,opt,name=show_invited,json=showInvited,proto3" json:"show_invited,omitempty"`
// contains filtered or unexported fields
}
Request message for listing memberships.
func (*ListMembershipsRequest) Descriptor
func (*ListMembershipsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMembershipsRequest.ProtoReflect.Descriptor instead.
func (*ListMembershipsRequest) GetFilter
func (x *ListMembershipsRequest) GetFilter() string
func (*ListMembershipsRequest) GetPageSize
func (x *ListMembershipsRequest) GetPageSize() int32
func (*ListMembershipsRequest) GetPageToken
func (x *ListMembershipsRequest) GetPageToken() string
func (*ListMembershipsRequest) GetParent
func (x *ListMembershipsRequest) GetParent() string
func (*ListMembershipsRequest) GetShowGroups
func (x *ListMembershipsRequest) GetShowGroups() bool
func (*ListMembershipsRequest) GetShowInvited
func (x *ListMembershipsRequest) GetShowInvited() bool
func (*ListMembershipsRequest) ProtoMessage
func (*ListMembershipsRequest) ProtoMessage()
func (*ListMembershipsRequest) ProtoReflect
func (x *ListMembershipsRequest) ProtoReflect() protoreflect.Message
func (*ListMembershipsRequest) Reset
func (x *ListMembershipsRequest) Reset()
func (*ListMembershipsRequest) String
func (x *ListMembershipsRequest) String() string
ListMembershipsResponse
type ListMembershipsResponse struct {
// Unordered list. List of memberships in the requested (or first) page.
Memberships []*Membership `protobuf:"bytes,1,rep,name=memberships,proto3" json:"memberships,omitempty"`
// A token that you can send as `pageToken` to retrieve the next page of
// results. If empty, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response to list memberships of the space.
func (*ListMembershipsResponse) Descriptor
func (*ListMembershipsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMembershipsResponse.ProtoReflect.Descriptor instead.
func (*ListMembershipsResponse) GetMemberships
func (x *ListMembershipsResponse) GetMemberships() []*Membership
func (*ListMembershipsResponse) GetNextPageToken
func (x *ListMembershipsResponse) GetNextPageToken() string
func (*ListMembershipsResponse) ProtoMessage
func (*ListMembershipsResponse) ProtoMessage()
func (*ListMembershipsResponse) ProtoReflect
func (x *ListMembershipsResponse) ProtoReflect() protoreflect.Message
func (*ListMembershipsResponse) Reset
func (x *ListMembershipsResponse) Reset()
func (*ListMembershipsResponse) String
func (x *ListMembershipsResponse) String() string
ListMessagesRequest
type ListMessagesRequest struct {
// Required. The resource name of the space to list messages from.
//
// Format: `spaces/{space}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of messages returned. The service might return fewer
// messages than this value.
//
// If unspecified, at most 25 are returned.
//
// The maximum value is 1000. If you use a value more than 1000, it's
// automatically changed to 1000.
//
// Negative values return an `INVALID_ARGUMENT` error.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional, if resuming from a previous query.
//
// A page token received from a previous list messages call. Provide this
// parameter to retrieve the subsequent page.
//
// When paginating, all other parameters provided should match the call that
// provided the page token. Passing different values to the other parameters
// might lead to unexpected results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A query filter.
//
// You can filter messages by date (`create_time`) and thread (`thread.name`).
//
// To filter messages by the date they were created, specify the `create_time`
// with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339)
// format and double quotation marks. For example,
// `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to
// list messages that were created after a timestamp, or the less than
// operator `<` to="" list="" messages="" that="" were="" created="" before="" a="" timestamp.="" to="" filter="" messages="" within="" a="" time="" interval,="" use="" the="" `and`="" operator="" between="" two="" timestamps.="" to="" filter="" by="" thread,="" specify="" the="" `thread.name`,="" formatted="" as="" `spaces/{space}/threads/{thread}`.="" you="" can="" only="" specify="" one="" `thread.name`="" per="" query.="" to="" filter="" by="" both="" thread="" and="" date,="" use="" the="" `and`="" operator="" in="" your="" query.="" for="" example,="" the="" following="" queries="" are="" valid:="" ```="" create_time=""> "2012-04-21T11:30:00-04:00"
//
// create_time > "2012-04-21T11:30:00-04:00" AND
//
// thread.name = spaces/AAAAAAAAAAA/threads/123
//
// create_time > "2012-04-21T11:30:00+00:00" AND
//
// create_time < "2013-01-01t00:00:00+00:00"="" and="" thread.name="spaces/AAAAAAAAAAA/threads/123" thread.name="spaces/AAAAAAAAAAA/threads/123" ```="" invalid="" queries="" are="" rejected="" by="" the="" server="" with="" an="" `invalid_argument`="" error.="" filter="">string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional, if resuming from a previous query.
//
// How the list of messages is ordered. Specify a value to order by an
// ordering operation. Valid ordering operation values are as follows:
//
// - `ASC` for ascending.
//
// - `DESC` for descending.
//
// The default ordering is `create_time ASC`.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Whether to include deleted messages. Deleted messages include deleted time
// and metadata about their deletion, but message content is unavailable.
ShowDeleted bool `protobuf:"varint,6,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// contains filtered or unexported fields
}
Lists messages in the specified space, that the user is a member of.
func (*ListMessagesRequest) Descriptor
func (*ListMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMessagesRequest.ProtoReflect.Descriptor instead.
func (*ListMessagesRequest) GetFilter
func (x *ListMessagesRequest) GetFilter() string
func (*ListMessagesRequest) GetOrderBy
func (x *ListMessagesRequest) GetOrderBy() string
func (*ListMessagesRequest) GetPageSize
func (x *ListMessagesRequest) GetPageSize() int32
func (*ListMessagesRequest) GetPageToken
func (x *ListMessagesRequest) GetPageToken() string
func (*ListMessagesRequest) GetParent
func (x *ListMessagesRequest) GetParent() string
func (*ListMessagesRequest) GetShowDeleted
func (x *ListMessagesRequest) GetShowDeleted() bool
func (*ListMessagesRequest) ProtoMessage
func (*ListMessagesRequest) ProtoMessage()
func (*ListMessagesRequest) ProtoReflect
func (x *ListMessagesRequest) ProtoReflect() protoreflect.Message
func (*ListMessagesRequest) Reset
func (x *ListMessagesRequest) Reset()
func (*ListMessagesRequest) String
func (x *ListMessagesRequest) String() string
ListMessagesResponse
type ListMessagesResponse struct {
// List of messages.
Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// You can send a token as `pageToken` to retrieve the next page of
// results. If empty, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for listing messages.
func (*ListMessagesResponse) Descriptor
func (*ListMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMessagesResponse.ProtoReflect.Descriptor instead.
func (*ListMessagesResponse) GetMessages
func (x *ListMessagesResponse) GetMessages() []*Message
func (*ListMessagesResponse) GetNextPageToken
func (x *ListMessagesResponse) GetNextPageToken() string
func (*ListMessagesResponse) ProtoMessage
func (*ListMessagesResponse) ProtoMessage()
func (*ListMessagesResponse) ProtoReflect
func (x *ListMessagesResponse) ProtoReflect() protoreflect.Message
func (*ListMessagesResponse) Reset
func (x *ListMessagesResponse) Reset()
func (*ListMessagesResponse) String
func (x *ListMessagesResponse) String() string
ListReactionsRequest
type ListReactionsRequest struct {
// Required. The message users reacted to.
//
// Format: `spaces/{space}/messages/{message}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of reactions returned. The service can return
// fewer reactions than this value. If unspecified, the default value is 25.
// The maximum value is 200; values above 200 are changed to 200.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. (If resuming from a previous query.)
//
// A page token received from a previous list reactions call. Provide this
// to retrieve the subsequent page.
//
// When paginating, the filter value should match the call that provided the
// page token. Passing a different value might lead to unexpected results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A query filter.
//
// You can filter reactions by
// [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji)
// (either `emoji.unicode` or `emoji.custom_emoji.uid`) and
// [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
// (`user.name`).
//
// To filter reactions for multiple emojis or users, join similar fields
// with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode =
// "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`.
//
// To filter reactions by emoji and user, use the `AND` operator, such as
// `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`.
//
// If your query uses both `AND` and `OR`, group them with parentheses.
//
// For example, the following queries are valid:
//
// ```
// user.name = "users/{user}"
// emoji.unicode = "🙂"
// emoji.custom_emoji.uid = "{uid}"
// emoji.unicode = "🙂" OR emoji.unicode = "👍"
// emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
// emoji.unicode = "🙂" AND user.name = "users/{user}"
// (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
// AND user.name = "users/{user}"
// ```
//
// The following queries are invalid:
//
// ```
// emoji.unicode = "🙂" AND emoji.unicode = "👍"
// emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
// emoji.unicode = "🙂" OR user.name = "users/{user}"
// emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
// user.name = "users/{user}"
// emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
// AND user.name = "users/{user}"
// ```
//
// Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
// error.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Lists reactions to a message.
func (*ListReactionsRequest) Descriptor
func (*ListReactionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReactionsRequest.ProtoReflect.Descriptor instead.
func (*ListReactionsRequest) GetFilter
func (x *ListReactionsRequest) GetFilter() string
func (*ListReactionsRequest) GetPageSize
func (x *ListReactionsRequest) GetPageSize() int32
func (*ListReactionsRequest) GetPageToken
func (x *ListReactionsRequest) GetPageToken() string
func (*ListReactionsRequest) GetParent
func (x *ListReactionsRequest) GetParent() string
func (*ListReactionsRequest) ProtoMessage
func (*ListReactionsRequest) ProtoMessage()
func (*ListReactionsRequest) ProtoReflect
func (x *ListReactionsRequest) ProtoReflect() protoreflect.Message
func (*ListReactionsRequest) Reset
func (x *ListReactionsRequest) Reset()
func (*ListReactionsRequest) String
func (x *ListReactionsRequest) String() string
ListReactionsResponse
type ListReactionsResponse struct {
// List of reactions in the requested (or first) page.
Reactions []*Reaction `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
// Continuation token to retrieve the next page of results. It's empty
// for the last page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response to a list reactions request.
func (*ListReactionsResponse) Descriptor
func (*ListReactionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReactionsResponse.ProtoReflect.Descriptor instead.
func (*ListReactionsResponse) GetNextPageToken
func (x *ListReactionsResponse) GetNextPageToken() string
func (*ListReactionsResponse) GetReactions
func (x *ListReactionsResponse) GetReactions() []*Reaction
func (*ListReactionsResponse) ProtoMessage
func (*ListReactionsResponse) ProtoMessage()
func (*ListReactionsResponse) ProtoReflect
func (x *ListReactionsResponse) ProtoReflect() protoreflect.Message
func (*ListReactionsResponse) Reset
func (x *ListReactionsResponse) Reset()
func (*ListReactionsResponse) String
func (x *ListReactionsResponse) String() string
ListSpaceEventsRequest
type ListSpaceEventsRequest struct {
// Required. Resource name of the [Google Chat
// space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
// where the events occurred.
//
// Format: `spaces/{space}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of space events returned. The service might
// return fewer than this value.
//
// Negative values return an `INVALID_ARGUMENT` error.
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous list space events call. Provide this
// to retrieve the subsequent page.
//
// When paginating, all other parameters provided to list space events must
// match the call that provided the page token. Passing different values to
// the other parameters might lead to unexpected results.
PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Required. A query filter.
//
// You must specify at least one event type (`event_type`)
// using the has `:` operator. To filter by multiple event types, use the `OR`
// operator. Omit batch event types in your filter. The request automatically
// returns any related batch events. For example, if you filter by new
// reactions
// (`google.workspace.chat.reaction.v1.created`), the server also returns
// batch new reactions events
// (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
// event types, see the [`SpaceEvents` reference
// documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
//
// Optionally, you can also filter by start time (`start_time`) and
// end time (`end_time`):
//
// * `start_time`: Exclusive timestamp from which to start listing space
// events.
//
// You can list events that occurred up to 28 days ago. If unspecified, lists
// space events from the past 28 days.
// - `end_time`: Inclusive timestamp until which space events are listed.
// If unspecified, lists events up to the time of the request.
//
// To specify a start or end time, use the equals `=` operator and format in
// [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
// `start_time` and `end_time`, use the `AND` operator.
//
// For example, the following queries are valid:
//
// ```
// start_time="2023-08-23T19:20:33+00:00" AND
// end_time="2023-08-23T19:21:54+00:00"
// ```
// ```
// start_time="2023-08-23T19:20:33+00:00" AND
// (event_types:"google.workspace.chat.space.v1.updated" OR
// event_types:"google.workspace.chat.message.v1.created")
// ```
//
// The following queries are invalid:
//
// ```
// start_time="2023-08-23T19:20:33+00:00" OR
// end_time="2023-08-23T19:21:54+00:00"
// ```
// ```
// event_types:"google.workspace.chat.space.v1.updated" AND
// event_types:"google.workspace.chat.message.v1.created"
// ```
//
// Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
// error.
Filter string `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Request message for listing space events.
func (*ListSpaceEventsRequest) Descriptor
func (*ListSpaceEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSpaceEventsRequest.ProtoReflect.Descriptor instead.
func (*ListSpaceEventsRequest) GetFilter
func (x *ListSpaceEventsRequest) GetFilter() string
func (*ListSpaceEventsRequest) GetPageSize
func (x *ListSpaceEventsRequest) GetPageSize() int32
func (*ListSpaceEventsRequest) GetPageToken
func (x *ListSpaceEventsRequest) GetPageToken() string
func (*ListSpaceEventsRequest) GetParent
func (x *ListSpaceEventsRequest) GetParent() string
func (*ListSpaceEventsRequest) ProtoMessage
func (*ListSpaceEventsRequest) ProtoMessage()
func (*ListSpaceEventsRequest) ProtoReflect
func (x *ListSpaceEventsRequest) ProtoReflect() protoreflect.Message
func (*ListSpaceEventsRequest) Reset
func (x *ListSpaceEventsRequest) Reset()
func (*ListSpaceEventsRequest) String
func (x *ListSpaceEventsRequest) String() string
ListSpaceEventsResponse
type ListSpaceEventsResponse struct {
// Results are returned in chronological order (oldest event first).
SpaceEvents []*SpaceEvent `protobuf:"bytes,1,rep,name=space_events,json=spaceEvents,proto3" json:"space_events,omitempty"`
// Continuation token used to fetch more events.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for listing space events.
func (*ListSpaceEventsResponse) Descriptor
func (*ListSpaceEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSpaceEventsResponse.ProtoReflect.Descriptor instead.
func (*ListSpaceEventsResponse) GetNextPageToken
func (x *ListSpaceEventsResponse) GetNextPageToken() string
func (*ListSpaceEventsResponse) GetSpaceEvents
func (x *ListSpaceEventsResponse) GetSpaceEvents() []*SpaceEvent
func (*ListSpaceEventsResponse) ProtoMessage
func (*ListSpaceEventsResponse) ProtoMessage()
func (*ListSpaceEventsResponse) ProtoReflect
func (x *ListSpaceEventsResponse) ProtoReflect() protoreflect.Message
func (*ListSpaceEventsResponse) Reset
func (x *ListSpaceEventsResponse) Reset()
func (*ListSpaceEventsResponse) String
func (x *ListSpaceEventsResponse) String() string
ListSpacesRequest
type ListSpacesRequest struct {
// Optional. The maximum number of spaces to return. The service might return
// fewer than this value.
//
// If unspecified, at most 100 spaces are returned.
//
// The maximum value is 1000. If you use a value more than 1000, it's
// automatically changed to 1000.
//
// Negative values return an `INVALID_ARGUMENT` error.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous list spaces call.
// Provide this parameter to retrieve the subsequent page.
//
// When paginating, the filter value should match the call that provided the
// page token. Passing a different value may lead to unexpected results.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A query filter.
//
// You can filter spaces by the space type
// ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)).
//
// To filter by space type, you must specify valid enum value, such as
// `SPACE` or `GROUP_CHAT` (the `space_type` can't be
// `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR`
// operator.
//
// For example, the following queries are valid:
//
// ```
// space_type = "SPACE"
// spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
// ```
//
// Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
// error.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
A request to list the spaces the caller is a member of.
func (*ListSpacesRequest) Descriptor
func (*ListSpacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSpacesRequest.ProtoReflect.Descriptor instead.
func (*ListSpacesRequest) GetFilter
func (x *ListSpacesRequest) GetFilter() string
func (*ListSpacesRequest) GetPageSize
func (x *ListSpacesRequest) GetPageSize() int32
func (*ListSpacesRequest) GetPageToken
func (x *ListSpacesRequest) GetPageToken() string
func (*ListSpacesRequest) ProtoMessage
func (*ListSpacesRequest) ProtoMessage()
func (*ListSpacesRequest) ProtoReflect
func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message
func (*ListSpacesRequest) Reset
func (x *ListSpacesRequest) Reset()
func (*ListSpacesRequest) String
func (x *ListSpacesRequest) String() string
ListSpacesResponse
type ListSpacesResponse struct {
// List of spaces in the requested (or first) page.
Spaces []*Space `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,omitempty"`
// You can send a token as `pageToken` to retrieve the next page of
// results. If empty, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for a list spaces request.
func (*ListSpacesResponse) Descriptor
func (*ListSpacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSpacesResponse.ProtoReflect.Descriptor instead.
func (*ListSpacesResponse) GetNextPageToken
func (x *ListSpacesResponse) GetNextPageToken() string
func (*ListSpacesResponse) GetSpaces
func (x *ListSpacesResponse) GetSpaces() []*Space
func (*ListSpacesResponse) ProtoMessage
func (*ListSpacesResponse) ProtoMessage()
func (*ListSpacesResponse) ProtoReflect
func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message
func (*ListSpacesResponse) Reset
func (x *ListSpacesResponse) Reset()
func (*ListSpacesResponse) String
func (x *ListSpacesResponse) String() string
MatchedUrl
type MatchedUrl struct {
// Output only. The URL that was matched.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
A matched URL in a Chat message. Chat apps can preview matched URLs. For more information, see Preview links.
func (*MatchedUrl) Descriptor
func (*MatchedUrl) Descriptor() ([]byte, []int)
Deprecated: Use MatchedUrl.ProtoReflect.Descriptor instead.
func (*MatchedUrl) GetUrl
func (x *MatchedUrl) GetUrl() string
func (*MatchedUrl) ProtoMessage
func (*MatchedUrl) ProtoMessage()
func (*MatchedUrl) ProtoReflect
func (x *MatchedUrl) ProtoReflect() protoreflect.Message
func (*MatchedUrl) Reset
func (x *MatchedUrl) Reset()
func (*MatchedUrl) String
func (x *MatchedUrl) String() string
Membership
type Membership struct {
// Resource name of the membership, assigned by the server.
//
// Format: `spaces/{space}/members/{member}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. State of the membership.
State Membership_MembershipState `protobuf:"varint,2,opt,name=state,proto3,enum=google.chat.v1.Membership_MembershipState" json:"state,omitempty"`
// Optional. User's role within a Chat space, which determines their permitted
// actions in the space.
//
// This field can only be used as input in `UpdateMembership`.
Role Membership_MembershipRole `protobuf:"varint,7,opt,name=role,proto3,enum=google.chat.v1.Membership_MembershipRole" json:"role,omitempty"`
// Member associated with this membership. Other member types might be
// supported in the future.
//
// Types that are assignable to MemberType:
//
// *Membership_Member
// *Membership_GroupMember
MemberType isMembership_MemberType `protobuf_oneof:"memberType"`
// Optional. Immutable. The creation time of the membership, such as when a
// member joined or was invited to join a space. This field is output only,
// except when used to import historical memberships in import mode spaces.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Optional. Immutable. The deletion time of the membership, such as when a
// member left or was removed from a space. This field is output only, except
// when used to import historical memberships in import mode spaces.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// contains filtered or unexported fields
}
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
func (*Membership) Descriptor
func (*Membership) Descriptor() ([]byte, []int)
Deprecated: Use Membership.ProtoReflect.Descriptor instead.
func (*Membership) GetCreateTime
func (x *Membership) GetCreateTime() *timestamppb.Timestamp
func (*Membership) GetDeleteTime
func (x *Membership) GetDeleteTime() *timestamppb.Timestamp
func (*Membership) GetGroupMember
func (x *Membership) GetGroupMember() *Group
func (*Membership) GetMember
func (x *Membership) GetMember() *User
func (*Membership) GetMemberType
func (m *Membership) GetMemberType() isMembership_MemberType
func (*Membership) GetName
func (x *Membership) GetName() string
func (*Membership) GetRole
func (x *Membership) GetRole() Membership_MembershipRole
func (*Membership) GetState
func (x *Membership) GetState() Membership_MembershipState
func (*Membership) ProtoMessage
func (*Membership) ProtoMessage()
func (*Membership) ProtoReflect
func (x *Membership) ProtoReflect() protoreflect.Message
func (*Membership) Reset
func (x *Membership) Reset()
func (*Membership) String
func (x *Membership) String() string
MembershipBatchCreatedEventData
type MembershipBatchCreatedEventData struct {
// A list of new memberships.
Memberships []*MembershipCreatedEventData `protobuf:"bytes,1,rep,name=memberships,proto3" json:"memberships,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
func (*MembershipBatchCreatedEventData) Descriptor
func (*MembershipBatchCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipBatchCreatedEventData.ProtoReflect.Descriptor instead.
func (*MembershipBatchCreatedEventData) GetMemberships
func (x *MembershipBatchCreatedEventData) GetMemberships() []*MembershipCreatedEventData
func (*MembershipBatchCreatedEventData) ProtoMessage
func (*MembershipBatchCreatedEventData) ProtoMessage()
func (*MembershipBatchCreatedEventData) ProtoReflect
func (x *MembershipBatchCreatedEventData) ProtoReflect() protoreflect.Message
func (*MembershipBatchCreatedEventData) Reset
func (x *MembershipBatchCreatedEventData) Reset()
func (*MembershipBatchCreatedEventData) String
func (x *MembershipBatchCreatedEventData) String() string
MembershipBatchDeletedEventData
type MembershipBatchDeletedEventData struct {
// A list of deleted memberships.
Memberships []*MembershipDeletedEventData `protobuf:"bytes,1,rep,name=memberships,proto3" json:"memberships,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
func (*MembershipBatchDeletedEventData) Descriptor
func (*MembershipBatchDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipBatchDeletedEventData.ProtoReflect.Descriptor instead.
func (*MembershipBatchDeletedEventData) GetMemberships
func (x *MembershipBatchDeletedEventData) GetMemberships() []*MembershipDeletedEventData
func (*MembershipBatchDeletedEventData) ProtoMessage
func (*MembershipBatchDeletedEventData) ProtoMessage()
func (*MembershipBatchDeletedEventData) ProtoReflect
func (x *MembershipBatchDeletedEventData) ProtoReflect() protoreflect.Message
func (*MembershipBatchDeletedEventData) Reset
func (x *MembershipBatchDeletedEventData) Reset()
func (*MembershipBatchDeletedEventData) String
func (x *MembershipBatchDeletedEventData) String() string
MembershipBatchUpdatedEventData
type MembershipBatchUpdatedEventData struct {
// A list of updated memberships.
Memberships []*MembershipUpdatedEventData `protobuf:"bytes,1,rep,name=memberships,proto3" json:"memberships,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
func (*MembershipBatchUpdatedEventData) Descriptor
func (*MembershipBatchUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipBatchUpdatedEventData.ProtoReflect.Descriptor instead.
func (*MembershipBatchUpdatedEventData) GetMemberships
func (x *MembershipBatchUpdatedEventData) GetMemberships() []*MembershipUpdatedEventData
func (*MembershipBatchUpdatedEventData) ProtoMessage
func (*MembershipBatchUpdatedEventData) ProtoMessage()
func (*MembershipBatchUpdatedEventData) ProtoReflect
func (x *MembershipBatchUpdatedEventData) ProtoReflect() protoreflect.Message
func (*MembershipBatchUpdatedEventData) Reset
func (x *MembershipBatchUpdatedEventData) Reset()
func (*MembershipBatchUpdatedEventData) String
func (x *MembershipBatchUpdatedEventData) String() string
MembershipCreatedEventData
type MembershipCreatedEventData struct {
// The new membership.
Membership *Membership `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"`
// contains filtered or unexported fields
}
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
.
func (*MembershipCreatedEventData) Descriptor
func (*MembershipCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipCreatedEventData.ProtoReflect.Descriptor instead.
func (*MembershipCreatedEventData) GetMembership
func (x *MembershipCreatedEventData) GetMembership() *Membership
func (*MembershipCreatedEventData) ProtoMessage
func (*MembershipCreatedEventData) ProtoMessage()
func (*MembershipCreatedEventData) ProtoReflect
func (x *MembershipCreatedEventData) ProtoReflect() protoreflect.Message
func (*MembershipCreatedEventData) Reset
func (x *MembershipCreatedEventData) Reset()
func (*MembershipCreatedEventData) String
func (x *MembershipCreatedEventData) String() string
MembershipDeletedEventData
type MembershipDeletedEventData struct {
// The deleted membership. Only the `name` and `state` fields are populated.
Membership *Membership `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"`
// contains filtered or unexported fields
}
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
func (*MembershipDeletedEventData) Descriptor
func (*MembershipDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipDeletedEventData.ProtoReflect.Descriptor instead.
func (*MembershipDeletedEventData) GetMembership
func (x *MembershipDeletedEventData) GetMembership() *Membership
func (*MembershipDeletedEventData) ProtoMessage
func (*MembershipDeletedEventData) ProtoMessage()
func (*MembershipDeletedEventData) ProtoReflect
func (x *MembershipDeletedEventData) ProtoReflect() protoreflect.Message
func (*MembershipDeletedEventData) Reset
func (x *MembershipDeletedEventData) Reset()
func (*MembershipDeletedEventData) String
func (x *MembershipDeletedEventData) String() string
MembershipUpdatedEventData
type MembershipUpdatedEventData struct {
// The updated membership.
Membership *Membership `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"`
// contains filtered or unexported fields
}
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
func (*MembershipUpdatedEventData) Descriptor
func (*MembershipUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MembershipUpdatedEventData.ProtoReflect.Descriptor instead.
func (*MembershipUpdatedEventData) GetMembership
func (x *MembershipUpdatedEventData) GetMembership() *Membership
func (*MembershipUpdatedEventData) ProtoMessage
func (*MembershipUpdatedEventData) ProtoMessage()
func (*MembershipUpdatedEventData) ProtoReflect
func (x *MembershipUpdatedEventData) ProtoReflect() protoreflect.Message
func (*MembershipUpdatedEventData) Reset
func (x *MembershipUpdatedEventData) Reset()
func (*MembershipUpdatedEventData) String
func (x *MembershipUpdatedEventData) String() string
Membership_GroupMember
type Membership_GroupMember struct {
// The Google Group the membership corresponds to.
GroupMember *Group `protobuf:"bytes,5,opt,name=group_member,json=groupMember,proto3,oneof"`
}
Membership_Member
type Membership_Member struct {
// The Google Chat user or app the membership corresponds to.
// If your Chat app [authenticates as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// the output populates the
// [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
// `name` and `type`.
Member *User `protobuf:"bytes,3,opt,name=member,proto3,oneof"`
}
Membership_MembershipRole
type Membership_MembershipRole int32
Represents a user's permitted actions in a Chat space. More enum values might be added in the future.
Membership_MEMBERSHIP_ROLE_UNSPECIFIED, Membership_ROLE_MEMBER, Membership_ROLE_MANAGER
const (
// Default value. For [users][google.chat.v1.Membership.member]: they
// aren't a member of the space, but can be invited. For
// [Google Groups][google.chat.v1.Membership.group_member]: they're always
//
// assigned this role (other enum values might be used in the future).
Membership_MEMBERSHIP_ROLE_UNSPECIFIED Membership_MembershipRole = 0
// A member of the space. The user has basic permissions, like sending
// messages to the space. In 1:1 and unnamed group conversations, everyone
// has this role.
Membership_ROLE_MEMBER Membership_MembershipRole = 1
// A space manager. The user has all basic permissions plus administrative
// permissions that let them manage the space, like adding or removing
// members. Only supported in
// [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
Membership_ROLE_MANAGER Membership_MembershipRole = 2
)
func (Membership_MembershipRole) Descriptor
func (Membership_MembershipRole) Descriptor() protoreflect.EnumDescriptor
func (Membership_MembershipRole) Enum
func (x Membership_MembershipRole) Enum() *Membership_MembershipRole
func (Membership_MembershipRole) EnumDescriptor
func (Membership_MembershipRole) EnumDescriptor() ([]byte, []int)
Deprecated: Use Membership_MembershipRole.Descriptor instead.
func (Membership_MembershipRole) Number
func (x Membership_MembershipRole) Number() protoreflect.EnumNumber
func (Membership_MembershipRole) String
func (x Membership_MembershipRole) String() string
func (Membership_MembershipRole) Type
func (Membership_MembershipRole) Type() protoreflect.EnumType
Membership_MembershipState
type Membership_MembershipState int32
Specifies the member's relationship with a space. Other membership states might be supported in the future.
Membership_MEMBERSHIP_STATE_UNSPECIFIED, Membership_JOINED, Membership_INVITED, Membership_NOT_A_MEMBER
const (
// Default value. Don't use.
Membership_MEMBERSHIP_STATE_UNSPECIFIED Membership_MembershipState = 0
// The user is added to the space, and can participate in the space.
Membership_JOINED Membership_MembershipState = 1
// The user is invited to join the space, but hasn't joined it.
Membership_INVITED Membership_MembershipState = 2
// The user doesn't belong to the space and doesn't have a pending
// invitation to join the space.
Membership_NOT_A_MEMBER Membership_MembershipState = 3
)
func (Membership_MembershipState) Descriptor
func (Membership_MembershipState) Descriptor() protoreflect.EnumDescriptor
func (Membership_MembershipState) Enum
func (x Membership_MembershipState) Enum() *Membership_MembershipState
func (Membership_MembershipState) EnumDescriptor
func (Membership_MembershipState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Membership_MembershipState.Descriptor instead.
func (Membership_MembershipState) Number
func (x Membership_MembershipState) Number() protoreflect.EnumNumber
func (Membership_MembershipState) String
func (x Membership_MembershipState) String() string
func (Membership_MembershipState) Type
func (Membership_MembershipState) Type() protoreflect.EnumType
Message
type Message struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Sender *User `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
FormattedText string `protobuf:"bytes,43,opt,name=formatted_text,json=formattedText,proto3" json:"formatted_text,omitempty"`
Cards []*ContextualAddOnMarkup_Card `protobuf:"bytes,5,rep,name=cards,proto3" json:"cards,omitempty"`
CardsV2 []*CardWithId `protobuf:"bytes,22,rep,name=cards_v2,json=cardsV2,proto3" json:"cards_v2,omitempty"`
Annotations []*Annotation `protobuf:"bytes,10,rep,name=annotations,proto3" json:"annotations,omitempty"`
Thread *Thread `protobuf:"bytes,11,opt,name=thread,proto3" json:"thread,omitempty"`
Space *Space `protobuf:"bytes,12,opt,name=space,proto3" json:"space,omitempty"`
FallbackText string `protobuf:"bytes,13,opt,name=fallback_text,json=fallbackText,proto3" json:"fallback_text,omitempty"`
ActionResponse *ActionResponse `protobuf:"bytes,14,opt,name=action_response,json=actionResponse,proto3" json:"action_response,omitempty"`
ArgumentText string `protobuf:"bytes,15,opt,name=argument_text,json=argumentText,proto3" json:"argument_text,omitempty"`
SlashCommand *SlashCommand `protobuf:"bytes,17,opt,name=slash_command,json=slashCommand,proto3" json:"slash_command,omitempty"`
Attachment []*Attachment `protobuf:"bytes,18,rep,name=attachment,proto3" json:"attachment,omitempty"`
MatchedUrl *MatchedUrl `protobuf:"bytes,20,opt,name=matched_url,json=matchedUrl,proto3" json:"matched_url,omitempty"`
ThreadReply bool `protobuf:"varint,25,opt,name=thread_reply,json=threadReply,proto3" json:"thread_reply,omitempty"`
ClientAssignedMessageId string "" /* 135 byte string literal not displayed */
EmojiReactionSummaries []*EmojiReactionSummary "" /* 130 byte string literal not displayed */
PrivateMessageViewer *User `protobuf:"bytes,36,opt,name=private_message_viewer,json=privateMessageViewer,proto3" json:"private_message_viewer,omitempty"`
DeletionMetadata *DeletionMetadata `protobuf:"bytes,38,opt,name=deletion_metadata,json=deletionMetadata,proto3" json:"deletion_metadata,omitempty"`
QuotedMessageMetadata *QuotedMessageMetadata "" /* 127 byte string literal not displayed */
AttachedGifs []*AttachedGif `protobuf:"bytes,42,rep,name=attached_gifs,json=attachedGifs,proto3" json:"attached_gifs,omitempty"`
AccessoryWidgets []*AccessoryWidget `protobuf:"bytes,44,rep,name=accessory_widgets,json=accessoryWidgets,proto3" json:"accessory_widgets,omitempty"`
}
A message in a Google Chat space.
func (*Message) Descriptor
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) GetAccessoryWidgets
func (x *Message) GetAccessoryWidgets() []*AccessoryWidget
func (*Message) GetActionResponse
func (x *Message) GetActionResponse() *ActionResponse
func (*Message) GetAnnotations
func (x *Message) GetAnnotations() []*Annotation
func (*Message) GetArgumentText
func (*Message) GetAttachedGifs
func (x *Message) GetAttachedGifs() []*AttachedGif
func (*Message) GetAttachment
func (x *Message) GetAttachment() []*Attachment
func (*Message) GetCards
func (x *Message) GetCards() []*ContextualAddOnMarkup_Card
Deprecated: Marked as deprecated in google/chat/v1/message.proto.
func (*Message) GetCardsV2
func (x *Message) GetCardsV2() []*CardWithId
func (*Message) GetClientAssignedMessageId
func (*Message) GetCreateTime
func (x *Message) GetCreateTime() *timestamppb.Timestamp
func (*Message) GetDeleteTime
func (x *Message) GetDeleteTime() *timestamppb.Timestamp
func (*Message) GetDeletionMetadata
func (x *Message) GetDeletionMetadata() *DeletionMetadata
func (*Message) GetEmojiReactionSummaries
func (x *Message) GetEmojiReactionSummaries() []*EmojiReactionSummary
func (*Message) GetFallbackText
func (*Message) GetFormattedText
func (*Message) GetLastUpdateTime
func (x *Message) GetLastUpdateTime() *timestamppb.Timestamp
func (*Message) GetMatchedUrl
func (x *Message) GetMatchedUrl() *MatchedUrl
func (*Message) GetName
func (*Message) GetPrivateMessageViewer
func (*Message) GetQuotedMessageMetadata
func (x *Message) GetQuotedMessageMetadata() *QuotedMessageMetadata
func (*Message) GetSender
func (*Message) GetSlashCommand
func (x *Message) GetSlashCommand() *SlashCommand
func (*Message) GetSpace
func (*Message) GetText
func (*Message) GetThread
func (*Message) GetThreadReply
func (*Message) ProtoMessage
func (*Message) ProtoMessage()
func (*Message) ProtoReflect
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Reset
func (x *Message) Reset()
func (*Message) String
MessageBatchCreatedEventData
type MessageBatchCreatedEventData struct {
// A list of new messages.
Messages []*MessageCreatedEventData `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
func (*MessageBatchCreatedEventData) Descriptor
func (*MessageBatchCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageBatchCreatedEventData.ProtoReflect.Descriptor instead.
func (*MessageBatchCreatedEventData) GetMessages
func (x *MessageBatchCreatedEventData) GetMessages() []*MessageCreatedEventData
func (*MessageBatchCreatedEventData) ProtoMessage
func (*MessageBatchCreatedEventData) ProtoMessage()
func (*MessageBatchCreatedEventData) ProtoReflect
func (x *MessageBatchCreatedEventData) ProtoReflect() protoreflect.Message
func (*MessageBatchCreatedEventData) Reset
func (x *MessageBatchCreatedEventData) Reset()
func (*MessageBatchCreatedEventData) String
func (x *MessageBatchCreatedEventData) String() string
MessageBatchDeletedEventData
type MessageBatchDeletedEventData struct {
// A list of deleted messages.
Messages []*MessageDeletedEventData `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
func (*MessageBatchDeletedEventData) Descriptor
func (*MessageBatchDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageBatchDeletedEventData.ProtoReflect.Descriptor instead.
func (*MessageBatchDeletedEventData) GetMessages
func (x *MessageBatchDeletedEventData) GetMessages() []*MessageDeletedEventData
func (*MessageBatchDeletedEventData) ProtoMessage
func (*MessageBatchDeletedEventData) ProtoMessage()
func (*MessageBatchDeletedEventData) ProtoReflect
func (x *MessageBatchDeletedEventData) ProtoReflect() protoreflect.Message
func (*MessageBatchDeletedEventData) Reset
func (x *MessageBatchDeletedEventData) Reset()
func (*MessageBatchDeletedEventData) String
func (x *MessageBatchDeletedEventData) String() string
MessageBatchUpdatedEventData
type MessageBatchUpdatedEventData struct {
// A list of updated messages.
Messages []*MessageUpdatedEventData `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
func (*MessageBatchUpdatedEventData) Descriptor
func (*MessageBatchUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageBatchUpdatedEventData.ProtoReflect.Descriptor instead.
func (*MessageBatchUpdatedEventData) GetMessages
func (x *MessageBatchUpdatedEventData) GetMessages() []*MessageUpdatedEventData
func (*MessageBatchUpdatedEventData) ProtoMessage
func (*MessageBatchUpdatedEventData) ProtoMessage()
func (*MessageBatchUpdatedEventData) ProtoReflect
func (x *MessageBatchUpdatedEventData) ProtoReflect() protoreflect.Message
func (*MessageBatchUpdatedEventData) Reset
func (x *MessageBatchUpdatedEventData) Reset()
func (*MessageBatchUpdatedEventData) String
func (x *MessageBatchUpdatedEventData) String() string
MessageCreatedEventData
type MessageCreatedEventData struct {
// The new message.
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
func (*MessageCreatedEventData) Descriptor
func (*MessageCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageCreatedEventData.ProtoReflect.Descriptor instead.
func (*MessageCreatedEventData) GetMessage
func (x *MessageCreatedEventData) GetMessage() *Message
func (*MessageCreatedEventData) ProtoMessage
func (*MessageCreatedEventData) ProtoMessage()
func (*MessageCreatedEventData) ProtoReflect
func (x *MessageCreatedEventData) ProtoReflect() protoreflect.Message
func (*MessageCreatedEventData) Reset
func (x *MessageCreatedEventData) Reset()
func (*MessageCreatedEventData) String
func (x *MessageCreatedEventData) String() string
MessageDeletedEventData
type MessageDeletedEventData struct {
// The deleted message. Only the `name`, `createTime`, `deleteTime`, and
// `deletionMetadata` fields are populated.
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
func (*MessageDeletedEventData) Descriptor
func (*MessageDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageDeletedEventData.ProtoReflect.Descriptor instead.
func (*MessageDeletedEventData) GetMessage
func (x *MessageDeletedEventData) GetMessage() *Message
func (*MessageDeletedEventData) ProtoMessage
func (*MessageDeletedEventData) ProtoMessage()
func (*MessageDeletedEventData) ProtoReflect
func (x *MessageDeletedEventData) ProtoReflect() protoreflect.Message
func (*MessageDeletedEventData) Reset
func (x *MessageDeletedEventData) Reset()
func (*MessageDeletedEventData) String
func (x *MessageDeletedEventData) String() string
MessageUpdatedEventData
type MessageUpdatedEventData struct {
// The updated message.
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
func (*MessageUpdatedEventData) Descriptor
func (*MessageUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use MessageUpdatedEventData.ProtoReflect.Descriptor instead.
func (*MessageUpdatedEventData) GetMessage
func (x *MessageUpdatedEventData) GetMessage() *Message
func (*MessageUpdatedEventData) ProtoMessage
func (*MessageUpdatedEventData) ProtoMessage()
func (*MessageUpdatedEventData) ProtoReflect
func (x *MessageUpdatedEventData) ProtoReflect() protoreflect.Message
func (*MessageUpdatedEventData) Reset
func (x *MessageUpdatedEventData) Reset()
func (*MessageUpdatedEventData) String
func (x *MessageUpdatedEventData) String() string
QuotedMessageMetadata
type QuotedMessageMetadata struct {
// Output only. Resource name of the quoted message.
//
// Format: `spaces/{space}/messages/{message}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The timestamp when the quoted message was created or when the
// quoted message was last updated.
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
// contains filtered or unexported fields
}
Information about a quoted message.
func (*QuotedMessageMetadata) Descriptor
func (*QuotedMessageMetadata) Descriptor() ([]byte, []int)
Deprecated: Use QuotedMessageMetadata.ProtoReflect.Descriptor instead.
func (*QuotedMessageMetadata) GetLastUpdateTime
func (x *QuotedMessageMetadata) GetLastUpdateTime() *timestamppb.Timestamp
func (*QuotedMessageMetadata) GetName
func (x *QuotedMessageMetadata) GetName() string
func (*QuotedMessageMetadata) ProtoMessage
func (*QuotedMessageMetadata) ProtoMessage()
func (*QuotedMessageMetadata) ProtoReflect
func (x *QuotedMessageMetadata) ProtoReflect() protoreflect.Message
func (*QuotedMessageMetadata) Reset
func (x *QuotedMessageMetadata) Reset()
func (*QuotedMessageMetadata) String
func (x *QuotedMessageMetadata) String() string
Reaction
type Reaction struct {
// The resource name of the reaction.
//
// Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The user who created the reaction.
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
// The emoji used in the reaction.
Emoji *Emoji `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"`
// contains filtered or unexported fields
}
A reaction to a message.
func (*Reaction) Descriptor
Deprecated: Use Reaction.ProtoReflect.Descriptor instead.
func (*Reaction) GetEmoji
func (*Reaction) GetName
func (*Reaction) GetUser
func (*Reaction) ProtoMessage
func (*Reaction) ProtoMessage()
func (*Reaction) ProtoReflect
func (x *Reaction) ProtoReflect() protoreflect.Message
func (*Reaction) Reset
func (x *Reaction) Reset()
func (*Reaction) String
ReactionBatchCreatedEventData
type ReactionBatchCreatedEventData struct {
// A list of new reactions.
Reactions []*ReactionCreatedEventData `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
func (*ReactionBatchCreatedEventData) Descriptor
func (*ReactionBatchCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use ReactionBatchCreatedEventData.ProtoReflect.Descriptor instead.
func (*ReactionBatchCreatedEventData) GetReactions
func (x *ReactionBatchCreatedEventData) GetReactions() []*ReactionCreatedEventData
func (*ReactionBatchCreatedEventData) ProtoMessage
func (*ReactionBatchCreatedEventData) ProtoMessage()
func (*ReactionBatchCreatedEventData) ProtoReflect
func (x *ReactionBatchCreatedEventData) ProtoReflect() protoreflect.Message
func (*ReactionBatchCreatedEventData) Reset
func (x *ReactionBatchCreatedEventData) Reset()
func (*ReactionBatchCreatedEventData) String
func (x *ReactionBatchCreatedEventData) String() string
ReactionBatchDeletedEventData
type ReactionBatchDeletedEventData struct {
// A list of deleted reactions.
Reactions []*ReactionDeletedEventData `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
func (*ReactionBatchDeletedEventData) Descriptor
func (*ReactionBatchDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use ReactionBatchDeletedEventData.ProtoReflect.Descriptor instead.
func (*ReactionBatchDeletedEventData) GetReactions
func (x *ReactionBatchDeletedEventData) GetReactions() []*ReactionDeletedEventData
func (*ReactionBatchDeletedEventData) ProtoMessage
func (*ReactionBatchDeletedEventData) ProtoMessage()
func (*ReactionBatchDeletedEventData) ProtoReflect
func (x *ReactionBatchDeletedEventData) ProtoReflect() protoreflect.Message
func (*ReactionBatchDeletedEventData) Reset
func (x *ReactionBatchDeletedEventData) Reset()
func (*ReactionBatchDeletedEventData) String
func (x *ReactionBatchDeletedEventData) String() string
ReactionCreatedEventData
type ReactionCreatedEventData struct {
// The new reaction.
Reaction *Reaction `protobuf:"bytes,1,opt,name=reaction,proto3" json:"reaction,omitempty"`
// contains filtered or unexported fields
}
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
func (*ReactionCreatedEventData) Descriptor
func (*ReactionCreatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use ReactionCreatedEventData.ProtoReflect.Descriptor instead.
func (*ReactionCreatedEventData) GetReaction
func (x *ReactionCreatedEventData) GetReaction() *Reaction
func (*ReactionCreatedEventData) ProtoMessage
func (*ReactionCreatedEventData) ProtoMessage()
func (*ReactionCreatedEventData) ProtoReflect
func (x *ReactionCreatedEventData) ProtoReflect() protoreflect.Message
func (*ReactionCreatedEventData) Reset
func (x *ReactionCreatedEventData) Reset()
func (*ReactionCreatedEventData) String
func (x *ReactionCreatedEventData) String() string
ReactionDeletedEventData
type ReactionDeletedEventData struct {
// The deleted reaction.
Reaction *Reaction `protobuf:"bytes,1,opt,name=reaction,proto3" json:"reaction,omitempty"`
// contains filtered or unexported fields
}
Event payload for a deleted reaction.
Type: google.workspace.chat.reaction.v1.deleted
func (*ReactionDeletedEventData) Descriptor
func (*ReactionDeletedEventData) Descriptor() ([]byte, []int)
Deprecated: Use ReactionDeletedEventData.ProtoReflect.Descriptor instead.
func (*ReactionDeletedEventData) GetReaction
func (x *ReactionDeletedEventData) GetReaction() *Reaction
func (*ReactionDeletedEventData) ProtoMessage
func (*ReactionDeletedEventData) ProtoMessage()
func (*ReactionDeletedEventData) ProtoReflect
func (x *ReactionDeletedEventData) ProtoReflect() protoreflect.Message
func (*ReactionDeletedEventData) Reset
func (x *ReactionDeletedEventData) Reset()
func (*ReactionDeletedEventData) String
func (x *ReactionDeletedEventData) String() string
RichLinkMetadata
type RichLinkMetadata struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
RichLinkType RichLinkMetadata_RichLinkType "" /* 150 byte string literal not displayed */
Data isRichLinkMetadata_Data `protobuf_oneof:"data"`
}
A rich link to a resource.
func (*RichLinkMetadata) Descriptor
func (*RichLinkMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RichLinkMetadata.ProtoReflect.Descriptor instead.
func (*RichLinkMetadata) GetChatSpaceLinkData
func (x *RichLinkMetadata) GetChatSpaceLinkData() *ChatSpaceLinkData
func (*RichLinkMetadata) GetData
func (m *RichLinkMetadata) GetData() isRichLinkMetadata_Data
func (*RichLinkMetadata) GetDriveLinkData
func (x *RichLinkMetadata) GetDriveLinkData() *DriveLinkData
func (*RichLinkMetadata) GetRichLinkType
func (x *RichLinkMetadata) GetRichLinkType() RichLinkMetadata_RichLinkType
func (*RichLinkMetadata) GetUri
func (x *RichLinkMetadata) GetUri() string
func (*RichLinkMetadata) ProtoMessage
func (*RichLinkMetadata) ProtoMessage()
func (*RichLinkMetadata) ProtoReflect
func (x *RichLinkMetadata) ProtoReflect() protoreflect.Message
func (*RichLinkMetadata) Reset
func (x *RichLinkMetadata) Reset()
func (*RichLinkMetadata) String
func (x *RichLinkMetadata) String() string
RichLinkMetadata_ChatSpaceLinkData
type RichLinkMetadata_ChatSpaceLinkData struct {
// Data for a chat space link.
ChatSpaceLinkData *ChatSpaceLinkData `protobuf:"bytes,4,opt,name=chat_space_link_data,json=chatSpaceLinkData,proto3,oneof"`
}
RichLinkMetadata_DriveLinkData
type RichLinkMetadata_DriveLinkData struct {
// Data for a drive link.
DriveLinkData *DriveLinkData `protobuf:"bytes,3,opt,name=drive_link_data,json=driveLinkData,proto3,oneof"`
}
RichLinkMetadata_RichLinkType
type RichLinkMetadata_RichLinkType int32
The rich link type. More types might be added in the future.
RichLinkMetadata_RICH_LINK_TYPE_UNSPECIFIED, RichLinkMetadata_DRIVE_FILE, RichLinkMetadata_CHAT_SPACE
const (
// Default value for the enum. Don't use.
RichLinkMetadata_RICH_LINK_TYPE_UNSPECIFIED RichLinkMetadata_RichLinkType = 0
// A Google Drive rich link type.
RichLinkMetadata_DRIVE_FILE RichLinkMetadata_RichLinkType = 1
// A Chat space rich link type. For example, a space smart chip.
RichLinkMetadata_CHAT_SPACE RichLinkMetadata_RichLinkType = 2
)
func (RichLinkMetadata_RichLinkType) Descriptor
func (RichLinkMetadata_RichLinkType) Descriptor() protoreflect.EnumDescriptor
func (RichLinkMetadata_RichLinkType) Enum
func (x RichLinkMetadata_RichLinkType) Enum() *RichLinkMetadata_RichLinkType
func (RichLinkMetadata_RichLinkType) EnumDescriptor
func (RichLinkMetadata_RichLinkType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RichLinkMetadata_RichLinkType.Descriptor instead.
func (RichLinkMetadata_RichLinkType) Number
func (x RichLinkMetadata_RichLinkType) Number() protoreflect.EnumNumber
func (RichLinkMetadata_RichLinkType) String
func (x RichLinkMetadata_RichLinkType) String() string
func (RichLinkMetadata_RichLinkType) Type
func (RichLinkMetadata_RichLinkType) Type() protoreflect.EnumType
SetUpSpaceRequest
type SetUpSpaceRequest struct {
// Required. The `Space.spaceType` field is required.
//
// To create a space, set `Space.spaceType` to `SPACE` and set
// `Space.displayName`. 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.
//
// To create a group chat, set `Space.spaceType` to
// `GROUP_CHAT`. Don't set `Space.displayName`.
//
// To create a 1:1 conversation between humans,
// set `Space.spaceType` to `DIRECT_MESSAGE` and set
// `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or
// `Space.spaceDetails`.
//
// To create an 1:1 conversation between a human and the calling Chat app, set
// `Space.spaceType` to `DIRECT_MESSAGE` and
// `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or
// `Space.spaceDetails`.
//
// If a `DIRECT_MESSAGE` space already exists, that space is returned instead
// of creating a new space.
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"`
// Optional. The Google Chat users or groups to invite to join the space. Omit
// the calling user, as they are added automatically.
//
// The set currently allows up to 20 memberships (in addition to the caller).
//
// For human membership, the `Membership.member` field must contain a `user`
// with `name` populated (format: `users/{user}`) and `type` set to
// `User.Type.HUMAN`. You can only add human users when setting up a space
// (adding Chat apps is only supported for direct message setup with the
// calling app). You can also add members using the user's email as an alias
// for {user}. For example, the `user.name` can be `users/example@gmail.com`.
// To invite Gmail users or users from external Google Workspace domains,
// user's email must be used for `{user}`.
//
// For Google group membership, the `Membership.group_member` field must
// contain a `group` with `name` populated (format `groups/{group}`). You
// can only add Google groups when setting `Space.spaceType` to `SPACE`.
//
// Optional when setting `Space.spaceType` to `SPACE`.
//
// Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at
// least two memberships.
//
// Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human
// user, along with exactly one membership.
//
// Must be empty when creating a 1:1 conversation between a human and the
// calling Chat app (when setting `Space.spaceType` to
// `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
Memberships []*Membership `protobuf:"bytes,4,rep,name=memberships,proto3" json:"memberships,omitempty"`
// contains filtered or unexported fields
}
Request to create a space and add specified users to it.
func (*SetUpSpaceRequest) Descriptor
func (*SetUpSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetUpSpaceRequest.ProtoReflect.Descriptor instead.
func (*SetUpSpaceRequest) GetMemberships
func (x *SetUpSpaceRequest) GetMemberships() []*Membership
func (*SetUpSpaceRequest) GetRequestId
func (x *SetUpSpaceRequest) GetRequestId() string
func (*SetUpSpaceRequest) GetSpace
func (x *SetUpSpaceRequest) GetSpace() *Space
func (*SetUpSpaceRequest) ProtoMessage
func (*SetUpSpaceRequest) ProtoMessage()
func (*SetUpSpaceRequest) ProtoReflect
func (x *SetUpSpaceRequest) ProtoReflect() protoreflect.Message
func (*SetUpSpaceRequest) Reset
func (x *SetUpSpaceRequest) Reset()
func (*SetUpSpaceRequest) String
func (x *SetUpSpaceRequest) String() string
SlashCommand
type SlashCommand struct {
// The ID of the slash command invoked.
CommandId int64 `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
// contains filtered or unexported fields
}
A slash command in Google Chat.
func (*SlashCommand) Descriptor
func (*SlashCommand) Descriptor() ([]byte, []int)
Deprecated: Use SlashCommand.ProtoReflect.Descriptor instead.
func (*SlashCommand) GetCommandId
func (x *SlashCommand) GetCommandId() int64
func (*SlashCommand) ProtoMessage
func (*SlashCommand) ProtoMessage()
func (*SlashCommand) ProtoReflect
func (x *SlashCommand) ProtoReflect() protoreflect.Message
func (*SlashCommand) Reset
func (x *SlashCommand) Reset()
func (*SlashCommand) String
func (x *SlashCommand) String() string
SlashCommandMetadata
type SlashCommandMetadata struct {
// The Chat app whose command was invoked.
Bot *User `protobuf:"bytes,1,opt,name=bot,proto3" json:"bot,omitempty"`
// The type of slash command.
Type SlashCommandMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.chat.v1.SlashCommandMetadata_Type" json:"type,omitempty"`
// The name of the invoked slash command.
CommandName string `protobuf:"bytes,3,opt,name=command_name,json=commandName,proto3" json:"command_name,omitempty"`
// The command ID of the invoked slash command.
CommandId int64 `protobuf:"varint,4,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
// Indicates whether the slash command is for a dialog.
TriggersDialog bool `protobuf:"varint,5,opt,name=triggers_dialog,json=triggersDialog,proto3" json:"triggers_dialog,omitempty"`
// contains filtered or unexported fields
}
Annotation metadata for slash commands (/).
func (*SlashCommandMetadata) Descriptor
func (*SlashCommandMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SlashCommandMetadata.ProtoReflect.Descriptor instead.
func (*SlashCommandMetadata) GetBot
func (x *SlashCommandMetadata) GetBot() *User
func (*SlashCommandMetadata) GetCommandId
func (x *SlashCommandMetadata) GetCommandId() int64
func (*SlashCommandMetadata) GetCommandName
func (x *SlashCommandMetadata) GetCommandName() string
func (*SlashCommandMetadata) GetTriggersDialog
func (x *SlashCommandMetadata) GetTriggersDialog() bool
func (*SlashCommandMetadata) GetType
func (x *SlashCommandMetadata) GetType() SlashCommandMetadata_Type
func (*SlashCommandMetadata) ProtoMessage
func (*SlashCommandMetadata) ProtoMessage()
func (*SlashCommandMetadata) ProtoReflect
func (x *SlashCommandMetadata) ProtoReflect() protoreflect.Message
func (*SlashCommandMetadata) Reset
func (x *SlashCommandMetadata) Reset()
func (*SlashCommandMetadata) String
func (x *SlashCommandMetadata) String() string
SlashCommandMetadata_Type
type SlashCommandMetadata_Type int32
SlashCommandMetadata_TYPE_UNSPECIFIED, SlashCommandMetadata_ADD, SlashCommandMetadata_INVOKE
const (
// Default value for the enum. Don't use.
SlashCommandMetadata_TYPE_UNSPECIFIED SlashCommandMetadata_Type = 0
// Add Chat app to space.
SlashCommandMetadata_ADD SlashCommandMetadata_Type = 1
// Invoke slash command in space.
SlashCommandMetadata_INVOKE SlashCommandMetadata_Type = 2
)
func (SlashCommandMetadata_Type) Descriptor
func (SlashCommandMetadata_Type) Descriptor() protoreflect.EnumDescriptor
func (SlashCommandMetadata_Type) Enum
func (x SlashCommandMetadata_Type) Enum() *SlashCommandMetadata_Type
func (SlashCommandMetadata_Type) EnumDescriptor
func (SlashCommandMetadata_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use SlashCommandMetadata_Type.Descriptor instead.
func (SlashCommandMetadata_Type) Number
func (x SlashCommandMetadata_Type) Number() protoreflect.EnumNumber
func (SlashCommandMetadata_Type) String
func (x SlashCommandMetadata_Type) String() string
func (SlashCommandMetadata_Type) Type
func (SlashCommandMetadata_Type) Type() protoreflect.EnumType
Space
type Space struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type Space_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.chat.v1.Space_Type" json:"type,omitempty"`
SpaceType Space_SpaceType `protobuf:"varint,10,opt,name=space_type,json=spaceType,proto3,enum=google.chat.v1.Space_SpaceType" json:"space_type,omitempty"`
SingleUserBotDm bool `protobuf:"varint,4,opt,name=single_user_bot_dm,json=singleUserBotDm,proto3" json:"single_user_bot_dm,omitempty"`
Threaded bool `protobuf:"varint,5,opt,name=threaded,proto3" json:"threaded,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
ExternalUserAllowed bool `protobuf:"varint,8,opt,name=external_user_allowed,json=externalUserAllowed,proto3" json:"external_user_allowed,omitempty"`
SpaceThreadingState Space_SpaceThreadingState "" /* 167 byte string literal not displayed */
SpaceDetails *Space_SpaceDetails `protobuf:"bytes,11,opt,name=space_details,json=spaceDetails,proto3" json:"space_details,omitempty"`
SpaceHistoryState HistoryState "" /* 149 byte string literal not displayed */
ImportMode bool `protobuf:"varint,16,opt,name=import_mode,json=importMode,proto3" json:"import_mode,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
AdminInstalled bool `protobuf:"varint,19,opt,name=admin_installed,json=adminInstalled,proto3" json:"admin_installed,omitempty"`
AccessSettings *Space_AccessSettings `protobuf:"bytes,23,opt,name=access_settings,json=accessSettings,proto3" json:"access_settings,omitempty"`
SpaceUri string `protobuf:"bytes,25,opt,name=space_uri,json=spaceUri,proto3" json:"space_uri,omitempty"`
}
A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.
func (*Space) Descriptor
Deprecated: Use Space.ProtoReflect.Descriptor instead.
func (*Space) GetAccessSettings
func (x *Space) GetAccessSettings() *Space_AccessSettings
func (*Space) GetAdminInstalled
func (*Space) GetCreateTime
func (x *Space) GetCreateTime() *timestamppb.Timestamp
func (*Space) GetDisplayName
func (*Space) GetExternalUserAllowed
func (*Space) GetImportMode
func (*Space) GetName
func (*Space) GetSingleUserBotDm
func (*Space) GetSpaceDetails
func (x *Space) GetSpaceDetails() *Space_SpaceDetails
func (*Space) GetSpaceHistoryState
func (x *Space) GetSpaceHistoryState() HistoryState
func (*Space) GetSpaceThreadingState
func (x *Space) GetSpaceThreadingState() Space_SpaceThreadingState
func (*Space) GetSpaceType
func (x *Space) GetSpaceType() Space_SpaceType
func (*Space) GetSpaceUri
func (*Space) GetThreaded
Deprecated: Marked as deprecated in google/chat/v1/space.proto.
func (*Space) GetType
func (x *Space) GetType() Space_Type
Deprecated: Marked as deprecated in google/chat/v1/space.proto.
func (*Space) ProtoMessage
func (*Space) ProtoMessage()
func (*Space) ProtoReflect
func (x *Space) ProtoReflect() protoreflect.Message
func (*Space) Reset
func (x *Space) Reset()
func (*Space) String
SpaceBatchUpdatedEventData
type SpaceBatchUpdatedEventData struct {
// A list of updated spaces.
Spaces []*SpaceUpdatedEventData `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,omitempty"`
// contains filtered or unexported fields
}
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
func (*SpaceBatchUpdatedEventData) Descriptor
func (*SpaceBatchUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use SpaceBatchUpdatedEventData.ProtoReflect.Descriptor instead.
func (*SpaceBatchUpdatedEventData) GetSpaces
func (x *SpaceBatchUpdatedEventData) GetSpaces() []*SpaceUpdatedEventData
func (*SpaceBatchUpdatedEventData) ProtoMessage
func (*SpaceBatchUpdatedEventData) ProtoMessage()
func (*SpaceBatchUpdatedEventData) ProtoReflect
func (x *SpaceBatchUpdatedEventData) ProtoReflect() protoreflect.Message
func (*SpaceBatchUpdatedEventData) Reset
func (x *SpaceBatchUpdatedEventData) Reset()
func (*SpaceBatchUpdatedEventData) String
func (x *SpaceBatchUpdatedEventData) String() string
SpaceEvent
type SpaceEvent struct {
// Resource name of the space event.
//
// Format: `spaces/{space}/spaceEvents/{spaceEvent}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Time when the event occurred.
EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// Type of space event. Each event type has a batch version, which
// represents multiple instances of the event type that occur in a short
// period of time. For `spaceEvents.list()` requests, omit batch event types
// in your query filter. By default, the server returns both event type and
// its batch version.
//
// Supported event types for
// [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
//
// - New message: `google.workspace.chat.message.v1.created`
// - Updated message: `google.workspace.chat.message.v1.updated`
// - Deleted message: `google.workspace.chat.message.v1.deleted`
// - Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
// - Multiple updated messages:
// `google.workspace.chat.message.v1.batchUpdated`
// - Multiple deleted messages:
// `google.workspace.chat.message.v1.batchDeleted`
//
// Supported event types for
// [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
//
// - New membership: `google.workspace.chat.membership.v1.created`
// - Updated membership: `google.workspace.chat.membership.v1.updated`
// - Deleted membership: `google.workspace.chat.membership.v1.deleted`
// - Multiple new memberships:
// `google.workspace.chat.membership.v1.batchCreated`
// - Multiple updated memberships:
// `google.workspace.chat.membership.v1.batchUpdated`
// - Multiple deleted memberships:
// `google.workspace.chat.membership.v1.batchDeleted`
//
// Supported event types for
// [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
//
// - New reaction: `google.workspace.chat.reaction.v1.created`
// - Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
// - Multiple new reactions:
// `google.workspace.chat.reaction.v1.batchCreated`
// - Multiple deleted reactions:
// `google.workspace.chat.reaction.v1.batchDeleted`
//
// Supported event types about the
// [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
//
// - Updated space: `google.workspace.chat.space.v1.updated`
// - Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
EventType string `protobuf:"bytes,6,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
// Types that are assignable to Payload:
//
// *SpaceEvent_MessageCreatedEventData
// *SpaceEvent_MessageUpdatedEventData
// *SpaceEvent_MessageDeletedEventData
// *SpaceEvent_MessageBatchCreatedEventData
// *SpaceEvent_MessageBatchUpdatedEventData
// *SpaceEvent_MessageBatchDeletedEventData
// *SpaceEvent_SpaceUpdatedEventData
// *SpaceEvent_SpaceBatchUpdatedEventData
// *SpaceEvent_MembershipCreatedEventData
// *SpaceEvent_MembershipUpdatedEventData
// *SpaceEvent_MembershipDeletedEventData
// *SpaceEvent_MembershipBatchCreatedEventData
// *SpaceEvent_MembershipBatchUpdatedEventData
// *SpaceEvent_MembershipBatchDeletedEventData
// *SpaceEvent_ReactionCreatedEventData
// *SpaceEvent_ReactionDeletedEventData
// *SpaceEvent_ReactionBatchCreatedEventData
// *SpaceEvent_ReactionBatchDeletedEventData
Payload isSpaceEvent_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat.
func (*SpaceEvent) Descriptor
func (*SpaceEvent) Descriptor() ([]byte, []int)
Deprecated: Use SpaceEvent.ProtoReflect.Descriptor instead.
func (*SpaceEvent) GetEventTime
func (x *SpaceEvent) GetEventTime() *timestamppb.Timestamp
func (*SpaceEvent) GetEventType
func (x *SpaceEvent) GetEventType() string
func (*SpaceEvent) GetMembershipBatchCreatedEventData
func (x *SpaceEvent) GetMembershipBatchCreatedEventData() *MembershipBatchCreatedEventData
func (*SpaceEvent) GetMembershipBatchDeletedEventData
func (x *SpaceEvent) GetMembershipBatchDeletedEventData() *MembershipBatchDeletedEventData
func (*SpaceEvent) GetMembershipBatchUpdatedEventData
func (x *SpaceEvent) GetMembershipBatchUpdatedEventData() *MembershipBatchUpdatedEventData
func (*SpaceEvent) GetMembershipCreatedEventData
func (x *SpaceEvent) GetMembershipCreatedEventData() *MembershipCreatedEventData
func (*SpaceEvent) GetMembershipDeletedEventData
func (x *SpaceEvent) GetMembershipDeletedEventData() *MembershipDeletedEventData
func (*SpaceEvent) GetMembershipUpdatedEventData
func (x *SpaceEvent) GetMembershipUpdatedEventData() *MembershipUpdatedEventData
func (*SpaceEvent) GetMessageBatchCreatedEventData
func (x *SpaceEvent) GetMessageBatchCreatedEventData() *MessageBatchCreatedEventData
func (*SpaceEvent) GetMessageBatchDeletedEventData
func (x *SpaceEvent) GetMessageBatchDeletedEventData() *MessageBatchDeletedEventData
func (*SpaceEvent) GetMessageBatchUpdatedEventData
func (x *SpaceEvent) GetMessageBatchUpdatedEventData() *MessageBatchUpdatedEventData
func (*SpaceEvent) GetMessageCreatedEventData
func (x *SpaceEvent) GetMessageCreatedEventData() *MessageCreatedEventData
func (*SpaceEvent) GetMessageDeletedEventData
func (x *SpaceEvent) GetMessageDeletedEventData() *MessageDeletedEventData
func (*SpaceEvent) GetMessageUpdatedEventData
func (x *SpaceEvent) GetMessageUpdatedEventData() *MessageUpdatedEventData
func (*SpaceEvent) GetName
func (x *SpaceEvent) GetName() string
func (*SpaceEvent) GetPayload
func (m *SpaceEvent) GetPayload() isSpaceEvent_Payload
func (*SpaceEvent) GetReactionBatchCreatedEventData
func (x *SpaceEvent) GetReactionBatchCreatedEventData() *ReactionBatchCreatedEventData
func (*SpaceEvent) GetReactionBatchDeletedEventData
func (x *SpaceEvent) GetReactionBatchDeletedEventData() *ReactionBatchDeletedEventData
func (*SpaceEvent) GetReactionCreatedEventData
func (x *SpaceEvent) GetReactionCreatedEventData() *ReactionCreatedEventData
func (*SpaceEvent) GetReactionDeletedEventData
func (x *SpaceEvent) GetReactionDeletedEventData() *ReactionDeletedEventData
func (*SpaceEvent) GetSpaceBatchUpdatedEventData
func (x *SpaceEvent) GetSpaceBatchUpdatedEventData() *SpaceBatchUpdatedEventData
func (*SpaceEvent) GetSpaceUpdatedEventData
func (x *SpaceEvent) GetSpaceUpdatedEventData() *SpaceUpdatedEventData
func (*SpaceEvent) ProtoMessage
func (*SpaceEvent) ProtoMessage()
func (*SpaceEvent) ProtoReflect
func (x *SpaceEvent) ProtoReflect() protoreflect.Message
func (*SpaceEvent) Reset
func (x *SpaceEvent) Reset()
func (*SpaceEvent) String
func (x *SpaceEvent) String() string
SpaceEvent_MembershipBatchCreatedEventData
type SpaceEvent_MembershipBatchCreatedEventData struct {
// Event payload for multiple new memberships.
//
// Event type: `google.workspace.chat.membership.v1.batchCreated`
MembershipBatchCreatedEventData *MembershipBatchCreatedEventData `protobuf:"bytes,31,opt,name=membership_batch_created_event_data,json=membershipBatchCreatedEventData,proto3,oneof"`
}
SpaceEvent_MembershipBatchDeletedEventData
type SpaceEvent_MembershipBatchDeletedEventData struct {
// Event payload for multiple deleted memberships.
//
// Event type: `google.workspace.chat.membership.v1.batchDeleted`
MembershipBatchDeletedEventData *MembershipBatchDeletedEventData `protobuf:"bytes,33,opt,name=membership_batch_deleted_event_data,json=membershipBatchDeletedEventData,proto3,oneof"`
}
SpaceEvent_MembershipBatchUpdatedEventData
type SpaceEvent_MembershipBatchUpdatedEventData struct {
// Event payload for multiple updated memberships.
//
// Event type: `google.workspace.chat.membership.v1.batchUpdated`
MembershipBatchUpdatedEventData *MembershipBatchUpdatedEventData `protobuf:"bytes,32,opt,name=membership_batch_updated_event_data,json=membershipBatchUpdatedEventData,proto3,oneof"`
}
SpaceEvent_MembershipCreatedEventData
type SpaceEvent_MembershipCreatedEventData struct {
// Event payload for a new membership.
//
// Event type: `google.workspace.chat.membership.v1.created`
MembershipCreatedEventData *MembershipCreatedEventData `protobuf:"bytes,17,opt,name=membership_created_event_data,json=membershipCreatedEventData,proto3,oneof"`
}
SpaceEvent_MembershipDeletedEventData
type SpaceEvent_MembershipDeletedEventData struct {
// Event payload for a deleted membership.
//
// Event type: `google.workspace.chat.membership.v1.deleted`
MembershipDeletedEventData *MembershipDeletedEventData `protobuf:"bytes,219,opt,name=membership_deleted_event_data,json=membershipDeletedEventData,proto3,oneof"`
}
SpaceEvent_MembershipUpdatedEventData
type SpaceEvent_MembershipUpdatedEventData struct {
// Event payload for an updated membership.
//
// Event type: `google.workspace.chat.membership.v1.updated`
MembershipUpdatedEventData *MembershipUpdatedEventData `protobuf:"bytes,18,opt,name=membership_updated_event_data,json=membershipUpdatedEventData,proto3,oneof"`
}
SpaceEvent_MessageBatchCreatedEventData
type SpaceEvent_MessageBatchCreatedEventData struct {
// Event payload for multiple new messages.
//
// Event type: `google.workspace.chat.message.v1.batchCreated`
MessageBatchCreatedEventData *MessageBatchCreatedEventData `protobuf:"bytes,26,opt,name=message_batch_created_event_data,json=messageBatchCreatedEventData,proto3,oneof"`
}
SpaceEvent_MessageBatchDeletedEventData
type SpaceEvent_MessageBatchDeletedEventData struct {
// Event payload for multiple deleted messages.
//
// Event type: `google.workspace.chat.message.v1.batchDeleted`
MessageBatchDeletedEventData *MessageBatchDeletedEventData `protobuf:"bytes,28,opt,name=message_batch_deleted_event_data,json=messageBatchDeletedEventData,proto3,oneof"`
}
SpaceEvent_MessageBatchUpdatedEventData
type SpaceEvent_MessageBatchUpdatedEventData struct {
// Event payload for multiple updated messages.
//
// Event type: `google.workspace.chat.message.v1.batchUpdated`
MessageBatchUpdatedEventData *MessageBatchUpdatedEventData `protobuf:"bytes,27,opt,name=message_batch_updated_event_data,json=messageBatchUpdatedEventData,proto3,oneof"`
}
SpaceEvent_MessageCreatedEventData
type SpaceEvent_MessageCreatedEventData struct {
// Event payload for a new message.
//
// Event type: `google.workspace.chat.message.v1.created`
MessageCreatedEventData *MessageCreatedEventData `protobuf:"bytes,12,opt,name=message_created_event_data,json=messageCreatedEventData,proto3,oneof"`
}
SpaceEvent_MessageDeletedEventData
type SpaceEvent_MessageDeletedEventData struct {
// Event payload for a deleted message.
//
// Event type: `google.workspace.chat.message.v1.deleted`
MessageDeletedEventData *MessageDeletedEventData `protobuf:"bytes,14,opt,name=message_deleted_event_data,json=messageDeletedEventData,proto3,oneof"`
}
SpaceEvent_MessageUpdatedEventData
type SpaceEvent_MessageUpdatedEventData struct {
// Event payload for an updated message.
//
// Event type: `google.workspace.chat.message.v1.updated`
MessageUpdatedEventData *MessageUpdatedEventData `protobuf:"bytes,13,opt,name=message_updated_event_data,json=messageUpdatedEventData,proto3,oneof"`
}
SpaceEvent_ReactionBatchCreatedEventData
type SpaceEvent_ReactionBatchCreatedEventData struct {
// Event payload for multiple new reactions.
//
// Event type: `google.workspace.chat.reaction.v1.batchCreated`
ReactionBatchCreatedEventData *ReactionBatchCreatedEventData `protobuf:"bytes,34,opt,name=reaction_batch_created_event_data,json=reactionBatchCreatedEventData,proto3,oneof"`
}
SpaceEvent_ReactionBatchDeletedEventData
type SpaceEvent_ReactionBatchDeletedEventData struct {
// Event payload for multiple deleted reactions.
//
// Event type: `google.workspace.chat.reaction.v1.batchDeleted`
ReactionBatchDeletedEventData *ReactionBatchDeletedEventData `protobuf:"bytes,35,opt,name=reaction_batch_deleted_event_data,json=reactionBatchDeletedEventData,proto3,oneof"`
}
SpaceEvent_ReactionCreatedEventData
type SpaceEvent_ReactionCreatedEventData struct {
// Event payload for a new reaction.
//
// Event type: `google.workspace.chat.reaction.v1.created`
ReactionCreatedEventData *ReactionCreatedEventData `protobuf:"bytes,21,opt,name=reaction_created_event_data,json=reactionCreatedEventData,proto3,oneof"`
}
SpaceEvent_ReactionDeletedEventData
type SpaceEvent_ReactionDeletedEventData struct {
// Event payload for a deleted reaction.
//
// Event type: `google.workspace.chat.reaction.v1.deleted`
ReactionDeletedEventData *ReactionDeletedEventData `protobuf:"bytes,22,opt,name=reaction_deleted_event_data,json=reactionDeletedEventData,proto3,oneof"`
}
SpaceEvent_SpaceBatchUpdatedEventData
type SpaceEvent_SpaceBatchUpdatedEventData struct {
// Event payload for multiple updates to a space.
//
// Event type: `google.workspace.chat.space.v1.batchUpdated`
SpaceBatchUpdatedEventData *SpaceBatchUpdatedEventData `protobuf:"bytes,29,opt,name=space_batch_updated_event_data,json=spaceBatchUpdatedEventData,proto3,oneof"`
}
SpaceEvent_SpaceUpdatedEventData
type SpaceEvent_SpaceUpdatedEventData struct {
// Event payload for a space update.
//
// Event type: `google.workspace.chat.space.v1.updated`
SpaceUpdatedEventData *SpaceUpdatedEventData `protobuf:"bytes,15,opt,name=space_updated_event_data,json=spaceUpdatedEventData,proto3,oneof"`
}
SpaceReadState
type SpaceReadState struct {
// Resource name of the space read state.
//
// Format: `users/{user}/spaces/{space}/spaceReadState`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The time when the user's space read state was updated. Usually
// this corresponds with either the timestamp of the last read message, or a
// timestamp specified by the user to mark the last read position in a space.
LastReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_read_time,json=lastReadTime,proto3" json:"last_read_time,omitempty"`
// contains filtered or unexported fields
}
A user's read state within a space, used to identify read and unread messages.
func (*SpaceReadState) Descriptor
func (*SpaceReadState) Descriptor() ([]byte, []int)
Deprecated: Use SpaceReadState.ProtoReflect.Descriptor instead.
func (*SpaceReadState) GetLastReadTime
func (x *SpaceReadState) GetLastReadTime() *timestamppb.Timestamp
func (*SpaceReadState) GetName
func (x *SpaceReadState) GetName() string
func (*SpaceReadState) ProtoMessage
func (*SpaceReadState) ProtoMessage()
func (*SpaceReadState) ProtoReflect
func (x *SpaceReadState) ProtoReflect() protoreflect.Message
func (*SpaceReadState) Reset
func (x *SpaceReadState) Reset()
func (*SpaceReadState) String
func (x *SpaceReadState) String() string
SpaceUpdatedEventData
type SpaceUpdatedEventData struct {
// The updated space.
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
// contains filtered or unexported fields
}
Event payload for an updated space.
Event type: google.workspace.chat.space.v1.updated
func (*SpaceUpdatedEventData) Descriptor
func (*SpaceUpdatedEventData) Descriptor() ([]byte, []int)
Deprecated: Use SpaceUpdatedEventData.ProtoReflect.Descriptor instead.
func (*SpaceUpdatedEventData) GetSpace
func (x *SpaceUpdatedEventData) GetSpace() *Space
func (*SpaceUpdatedEventData) ProtoMessage
func (*SpaceUpdatedEventData) ProtoMessage()
func (*SpaceUpdatedEventData) ProtoReflect
func (x *SpaceUpdatedEventData) ProtoReflect() protoreflect.Message
func (*SpaceUpdatedEventData) Reset
func (x *SpaceUpdatedEventData) Reset()
func (*SpaceUpdatedEventData) String
func (x *SpaceUpdatedEventData) String() string
Space_AccessSettings
type Space_AccessSettings struct {
AccessState Space_AccessSettings_AccessState "" /* 148 byte string literal not displayed */
Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"`
}
Represents the access setting of the space.
func (*Space_AccessSettings) Descriptor
func (*Space_AccessSettings) Descriptor() ([]byte, []int)
Deprecated: Use Space_AccessSettings.ProtoReflect.Descriptor instead.
func (*Space_AccessSettings) GetAccessState
func (x *Space_AccessSettings) GetAccessState() Space_AccessSettings_AccessState
func (*Space_AccessSettings) GetAudience
func (x *Space_AccessSettings) GetAudience() string
func (*Space_AccessSettings) ProtoMessage
func (*Space_AccessSettings) ProtoMessage()
func (*Space_AccessSettings) ProtoReflect
func (x *Space_AccessSettings) ProtoReflect() protoreflect.Message
func (*Space_AccessSettings) Reset
func (x *Space_AccessSettings) Reset()
func (*Space_AccessSettings) String
func (x *Space_AccessSettings) String() string
Space_AccessSettings_AccessState
type Space_AccessSettings_AccessState int32
Represents the access state of the space.
Space_AccessSettings_ACCESS_STATE_UNSPECIFIED, Space_AccessSettings_PRIVATE, Space_AccessSettings_DISCOVERABLE
const (
// Access state is unknown or not supported in this API.
Space_AccessSettings_ACCESS_STATE_UNSPECIFIED Space_AccessSettings_AccessState = 0
// Space is discoverable by added or invited members or groups.
Space_AccessSettings_PRIVATE Space_AccessSettings_AccessState = 1
// Space is discoverable by the selected [target
// audience](https://support.google.com/a/answer/9934697), as well as
// added or invited members or groups.
Space_AccessSettings_DISCOVERABLE Space_AccessSettings_AccessState = 2
)
func (Space_AccessSettings_AccessState) Descriptor
func (Space_AccessSettings_AccessState) Descriptor() protoreflect.EnumDescriptor
func (Space_AccessSettings_AccessState) Enum
func (x Space_AccessSettings_AccessState) Enum() *Space_AccessSettings_AccessState
func (Space_AccessSettings_AccessState) EnumDescriptor
func (Space_AccessSettings_AccessState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Space_AccessSettings_AccessState.Descriptor instead.
func (Space_AccessSettings_AccessState) Number
func (x Space_AccessSettings_AccessState) Number() protoreflect.EnumNumber
func (Space_AccessSettings_AccessState) String
func (x Space_AccessSettings_AccessState) String() string
func (Space_AccessSettings_AccessState) Type
func (Space_AccessSettings_AccessState) Type() protoreflect.EnumType
Space_SpaceDetails
type Space_SpaceDetails struct {
// Optional. A description of the space. For example, describe the space's
// discussion topic, functional purpose, or participants.
//
// Supports up to 150 characters.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The space's rules, expectations, and etiquette.
//
// Supports up to 5,000 characters.
Guidelines string `protobuf:"bytes,2,opt,name=guidelines,proto3" json:"guidelines,omitempty"`
// contains filtered or unexported fields
}
Details about the space including description and rules.
func (*Space_SpaceDetails) Descriptor
func (*Space_SpaceDetails) Descriptor() ([]byte, []int)
Deprecated: Use Space_SpaceDetails.ProtoReflect.Descriptor instead.
func (*Space_SpaceDetails) GetDescription
func (x *Space_SpaceDetails) GetDescription() string
func (*Space_SpaceDetails) GetGuidelines
func (x *Space_SpaceDetails) GetGuidelines() string
func (*Space_SpaceDetails) ProtoMessage
func (*Space_SpaceDetails) ProtoMessage()
func (*Space_SpaceDetails) ProtoReflect
func (x *Space_SpaceDetails) ProtoReflect() protoreflect.Message
func (*Space_SpaceDetails) Reset
func (x *Space_SpaceDetails) Reset()
func (*Space_SpaceDetails) String
func (x *Space_SpaceDetails) String() string
Space_SpaceThreadingState
type Space_SpaceThreadingState int32
Specifies the type of threading state in the Chat space.
Space_SPACE_THREADING_STATE_UNSPECIFIED, Space_THREADED_MESSAGES, Space_GROUPED_MESSAGES, Space_UNTHREADED_MESSAGES
const (
// Reserved.
Space_SPACE_THREADING_STATE_UNSPECIFIED Space_SpaceThreadingState = 0
// Named spaces that support message threads. When users respond to a
// message, they can reply in-thread, which keeps their response in the
// context of the original message.
Space_THREADED_MESSAGES Space_SpaceThreadingState = 2
// Named spaces where the conversation is organized by topic. Topics and
// their replies are grouped together.
Space_GROUPED_MESSAGES Space_SpaceThreadingState = 3
// Direct messages (DMs) between two people and group conversations between
// 3 or more people.
Space_UNTHREADED_MESSAGES Space_SpaceThreadingState = 4
)
func (Space_SpaceThreadingState) Descriptor
func (Space_SpaceThreadingState) Descriptor() protoreflect.EnumDescriptor
func (Space_SpaceThreadingState) Enum
func (x Space_SpaceThreadingState) Enum() *Space_SpaceThreadingState
func (Space_SpaceThreadingState) EnumDescriptor
func (Space_SpaceThreadingState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Space_SpaceThreadingState.Descriptor instead.
func (Space_SpaceThreadingState) Number
func (x Space_SpaceThreadingState) Number() protoreflect.EnumNumber
func (Space_SpaceThreadingState) String
func (x Space_SpaceThreadingState) String() string
func (Space_SpaceThreadingState) Type
func (Space_SpaceThreadingState) Type() protoreflect.EnumType
Space_SpaceType
type Space_SpaceType int32
The type of space. Required when creating or updating a space. Output only for other usage.
Space_SPACE_TYPE_UNSPECIFIED, Space_SPACE, Space_GROUP_CHAT, Space_DIRECT_MESSAGE
const (
// Reserved.
Space_SPACE_TYPE_UNSPECIFIED Space_SpaceType = 0
// A place where people send messages, share files, and collaborate.
// A `SPACE` can include Chat apps.
Space_SPACE Space_SpaceType = 1
// Group conversations between 3 or more people.
// A `GROUP_CHAT` can include Chat apps.
Space_GROUP_CHAT Space_SpaceType = 2
// 1:1 messages between two humans or a human and a Chat app.
Space_DIRECT_MESSAGE Space_SpaceType = 3
)
func (Space_SpaceType) Descriptor
func (Space_SpaceType) Descriptor() protoreflect.EnumDescriptor
func (Space_SpaceType) Enum
func (x Space_SpaceType) Enum() *Space_SpaceType
func (Space_SpaceType) EnumDescriptor
func (Space_SpaceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Space_SpaceType.Descriptor instead.
func (Space_SpaceType) Number
func (x Space_SpaceType) Number() protoreflect.EnumNumber
func (Space_SpaceType) String
func (x Space_SpaceType) String() string
func (Space_SpaceType) Type
func (Space_SpaceType) Type() protoreflect.EnumType
Space_Type
type Space_Type int32
Deprecated: Use SpaceType
instead.
Space_TYPE_UNSPECIFIED, Space_ROOM, Space_DM
const (
// Reserved.
Space_TYPE_UNSPECIFIED Space_Type = 0
// Conversations between two or more humans.
Space_ROOM Space_Type = 1
// 1:1 Direct Message between a human and a Chat app, where all messages are
// flat. Note that this doesn't include direct messages between two humans.
Space_DM Space_Type = 2
)
func (Space_Type) Descriptor
func (Space_Type) Descriptor() protoreflect.EnumDescriptor
func (Space_Type) Enum
func (x Space_Type) Enum() *Space_Type
func (Space_Type) EnumDescriptor
func (Space_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Space_Type.Descriptor instead.
func (Space_Type) Number
func (x Space_Type) Number() protoreflect.EnumNumber
func (Space_Type) String
func (x Space_Type) String() string
func (Space_Type) Type
func (Space_Type) Type() protoreflect.EnumType
Thread
type Thread struct {
// Output only. Resource name of the thread.
//
// Example: `spaces/{space}/threads/{thread}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Input for creating or updating a thread. Otherwise, output only.
// ID for the thread. Supports up to 4000 characters.
//
// This ID is unique to the Chat app that sets it. For example, if
// multiple Chat apps create a message using the same thread key,
// the messages are posted in different threads. To reply in a
// thread created by a person or another Chat app, specify the thread `name`
// field instead.
ThreadKey string `protobuf:"bytes,3,opt,name=thread_key,json=threadKey,proto3" json:"thread_key,omitempty"`
// contains filtered or unexported fields
}
A thread in a Google Chat space. For example usage, see Start or reply to a message thread.
If you specify a thread when creating a message, you can set the
messageReplyOption
field to determine what happens if no matching thread is found.
func (*Thread) Descriptor
Deprecated: Use Thread.ProtoReflect.Descriptor instead.
func (*Thread) GetName
func (*Thread) GetThreadKey
func (*Thread) ProtoMessage
func (*Thread) ProtoMessage()
func (*Thread) ProtoReflect
func (x *Thread) ProtoReflect() protoreflect.Message
func (*Thread) Reset
func (x *Thread) Reset()
func (*Thread) String
ThreadReadState
type ThreadReadState struct {
// Resource name of the thread read state.
//
// Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The time when the user's thread read state was updated. Usually this
// corresponds with the timestamp of the last read message in a thread.
LastReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_read_time,json=lastReadTime,proto3" json:"last_read_time,omitempty"`
// contains filtered or unexported fields
}
A user's read state within a thread, used to identify read and unread messages.
func (*ThreadReadState) Descriptor
func (*ThreadReadState) Descriptor() ([]byte, []int)
Deprecated: Use ThreadReadState.ProtoReflect.Descriptor instead.
func (*ThreadReadState) GetLastReadTime
func (x *ThreadReadState) GetLastReadTime() *timestamppb.Timestamp
func (*ThreadReadState) GetName
func (x *ThreadReadState) GetName() string
func (*ThreadReadState) ProtoMessage
func (*ThreadReadState) ProtoMessage()
func (*ThreadReadState) ProtoReflect
func (x *ThreadReadState) ProtoReflect() protoreflect.Message
func (*ThreadReadState) Reset
func (x *ThreadReadState) Reset()
func (*ThreadReadState) String
func (x *ThreadReadState) String() string
UnimplementedChatServiceServer
type UnimplementedChatServiceServer struct {
}
UnimplementedChatServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatServiceServer) CompleteImportSpace
func (*UnimplementedChatServiceServer) CompleteImportSpace(context.Context, *CompleteImportSpaceRequest) (*CompleteImportSpaceResponse, error)
func (*UnimplementedChatServiceServer) CreateMembership
func (*UnimplementedChatServiceServer) CreateMembership(context.Context, *CreateMembershipRequest) (*Membership, error)
func (*UnimplementedChatServiceServer) CreateMessage
func (*UnimplementedChatServiceServer) CreateMessage(context.Context, *CreateMessageRequest) (*Message, error)
func (*UnimplementedChatServiceServer) CreateReaction
func (*UnimplementedChatServiceServer) CreateReaction(context.Context, *CreateReactionRequest) (*Reaction, error)
func (*UnimplementedChatServiceServer) CreateSpace
func (*UnimplementedChatServiceServer) CreateSpace(context.Context, *CreateSpaceRequest) (*Space, error)
func (*UnimplementedChatServiceServer) DeleteMembership
func (*UnimplementedChatServiceServer) DeleteMembership(context.Context, *DeleteMembershipRequest) (*Membership, error)
func (*UnimplementedChatServiceServer) DeleteMessage
func (*UnimplementedChatServiceServer) DeleteMessage(context.Context, *DeleteMessageRequest) (*emptypb.Empty, error)
func (*UnimplementedChatServiceServer) DeleteReaction
func (*UnimplementedChatServiceServer) DeleteReaction(context.Context, *DeleteReactionRequest) (*emptypb.Empty, error)
func (*UnimplementedChatServiceServer) DeleteSpace
func (*UnimplementedChatServiceServer) DeleteSpace(context.Context, *DeleteSpaceRequest) (*emptypb.Empty, error)
func (*UnimplementedChatServiceServer) FindDirectMessage
func (*UnimplementedChatServiceServer) FindDirectMessage(context.Context, *FindDirectMessageRequest) (*Space, error)
func (*UnimplementedChatServiceServer) GetAttachment
func (*UnimplementedChatServiceServer) GetAttachment(context.Context, *GetAttachmentRequest) (*Attachment, error)
func (*UnimplementedChatServiceServer) GetMembership
func (*UnimplementedChatServiceServer) GetMembership(context.Context, *GetMembershipRequest) (*Membership, error)
func (*UnimplementedChatServiceServer) GetMessage
func (*UnimplementedChatServiceServer) GetMessage(context.Context, *GetMessageRequest) (*Message, error)
func (*UnimplementedChatServiceServer) GetSpace
func (*UnimplementedChatServiceServer) GetSpace(context.Context, *GetSpaceRequest) (*Space, error)
func (*UnimplementedChatServiceServer) GetSpaceEvent
func (*UnimplementedChatServiceServer) GetSpaceEvent(context.Context, *GetSpaceEventRequest) (*SpaceEvent, error)
func (*UnimplementedChatServiceServer) GetSpaceReadState
func (*UnimplementedChatServiceServer) GetSpaceReadState(context.Context, *GetSpaceReadStateRequest) (*SpaceReadState, error)
func (*UnimplementedChatServiceServer) GetThreadReadState
func (*UnimplementedChatServiceServer) GetThreadReadState(context.Context, *GetThreadReadStateRequest) (*ThreadReadState, error)
func (*UnimplementedChatServiceServer) ListMemberships
func (*UnimplementedChatServiceServer) ListMemberships(context.Context, *ListMembershipsRequest) (*ListMembershipsResponse, error)
func (*UnimplementedChatServiceServer) ListMessages
func (*UnimplementedChatServiceServer) ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
func (*UnimplementedChatServiceServer) ListReactions
func (*UnimplementedChatServiceServer) ListReactions(context.Context, *ListReactionsRequest) (*ListReactionsResponse, error)
func (*UnimplementedChatServiceServer) ListSpaceEvents
func (*UnimplementedChatServiceServer) ListSpaceEvents(context.Context, *ListSpaceEventsRequest) (*ListSpaceEventsResponse, error)
func (*UnimplementedChatServiceServer) ListSpaces
func (*UnimplementedChatServiceServer) ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
func (*UnimplementedChatServiceServer) SetUpSpace
func (*UnimplementedChatServiceServer) SetUpSpace(context.Context, *SetUpSpaceRequest) (*Space, error)
func (*UnimplementedChatServiceServer) UpdateMembership
func (*UnimplementedChatServiceServer) UpdateMembership(context.Context, *UpdateMembershipRequest) (*Membership, error)
func (*UnimplementedChatServiceServer) UpdateMessage
func (*UnimplementedChatServiceServer) UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, error)
func (*UnimplementedChatServiceServer) UpdateSpace
func (*UnimplementedChatServiceServer) UpdateSpace(context.Context, *UpdateSpaceRequest) (*Space, error)
func (*UnimplementedChatServiceServer) UpdateSpaceReadState
func (*UnimplementedChatServiceServer) UpdateSpaceReadState(context.Context, *UpdateSpaceReadStateRequest) (*SpaceReadState, error)
func (*UnimplementedChatServiceServer) UploadAttachment
func (*UnimplementedChatServiceServer) UploadAttachment(context.Context, *UploadAttachmentRequest) (*UploadAttachmentResponse, error)
UpdateMembershipRequest
type UpdateMembershipRequest struct {
// Required. The membership to update. Only fields specified by `update_mask`
// are updated.
Membership *Membership `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"`
// Required. The field paths to update. Separate multiple values with commas
// or use `*` to update all field paths.
//
// Currently supported field paths:
//
// - `role`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for updating a membership.
func (*UpdateMembershipRequest) Descriptor
func (*UpdateMembershipRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMembershipRequest.ProtoReflect.Descriptor instead.
func (*UpdateMembershipRequest) GetMembership
func (x *UpdateMembershipRequest) GetMembership() *Membership
func (*UpdateMembershipRequest) GetUpdateMask
func (x *UpdateMembershipRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateMembershipRequest) ProtoMessage
func (*UpdateMembershipRequest) ProtoMessage()
func (*UpdateMembershipRequest) ProtoReflect
func (x *UpdateMembershipRequest) ProtoReflect() protoreflect.Message
func (*UpdateMembershipRequest) Reset
func (x *UpdateMembershipRequest) Reset()
func (*UpdateMembershipRequest) String
func (x *UpdateMembershipRequest) String() string
UpdateMessageRequest
type UpdateMessageRequest struct {
// Required. Message with fields updated.
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Required. The field paths to update. Separate multiple values with commas
// or use `*` to update all field paths.
//
// Currently supported field paths:
//
// - `text`
//
// - `attachment`
//
// - `cards` (Requires [app
// authentication](/chat/api/guides/auth/service-accounts).)
//
// - `cards_v2` (Requires [app
// authentication](/chat/api/guides/auth/service-accounts).)
//
// - `accessory_widgets` (Requires [app
// authentication](/chat/api/guides/auth/service-accounts).)
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Optional. If `true` and the message isn't found, a new message is created
// and `updateMask` is ignored. The specified message ID must be
// [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message)
// or the request fails.
AllowMissing bool `protobuf:"varint,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
// contains filtered or unexported fields
}
Request to update a message.
func (*UpdateMessageRequest) Descriptor
func (*UpdateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMessageRequest.ProtoReflect.Descriptor instead.
func (*UpdateMessageRequest) GetAllowMissing
func (x *UpdateMessageRequest) GetAllowMissing() bool
func (*UpdateMessageRequest) GetMessage
func (x *UpdateMessageRequest) GetMessage() *Message
func (*UpdateMessageRequest) GetUpdateMask
func (x *UpdateMessageRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateMessageRequest) ProtoMessage
func (*UpdateMessageRequest) ProtoMessage()
func (*UpdateMessageRequest) ProtoReflect
func (x *UpdateMessageRequest) ProtoReflect() protoreflect.Message
func (*UpdateMessageRequest) Reset
func (x *UpdateMessageRequest) Reset()
func (*UpdateMessageRequest) String
func (x *UpdateMessageRequest) String() string
UpdateSpaceReadStateRequest
type UpdateSpaceReadStateRequest struct {
// Required. The space read state and fields to update.
//
// Only supports updating read state for the calling user.
//
// To refer to the calling user, set one of the following:
//
// - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`.
//
// - Their Workspace email address. For example,
// `users/user@example.com/spaces/{space}/spaceReadState`.
//
// - Their user id. For example,
// `users/123456789/spaces/{space}/spaceReadState`.
//
// Format: users/{user}/spaces/{space}/spaceReadState
SpaceReadState *SpaceReadState `protobuf:"bytes,1,opt,name=space_read_state,json=spaceReadState,proto3" json:"space_read_state,omitempty"`
// Required. The field paths to update. Currently supported field paths:
//
// - `last_read_time`
//
// When the `last_read_time` is before the latest message create time, the
// space appears as unread in the UI.
//
// To mark the space as read, set `last_read_time` to any value later (larger)
// than the latest message create time. The `last_read_time` is coerced to
// match the latest message create time. Note that the space read state only
// affects the read state of messages that are visible in the space's
// top-level conversation. Replies in threads are unaffected by this
// timestamp, and instead rely on the thread read state.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for UpdateSpaceReadState API.
func (*UpdateSpaceReadStateRequest) Descriptor
func (*UpdateSpaceReadStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpaceReadStateRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpaceReadStateRequest) GetSpaceReadState
func (x *UpdateSpaceReadStateRequest) GetSpaceReadState() *SpaceReadState
func (*UpdateSpaceReadStateRequest) GetUpdateMask
func (x *UpdateSpaceReadStateRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateSpaceReadStateRequest) ProtoMessage
func (*UpdateSpaceReadStateRequest) ProtoMessage()
func (*UpdateSpaceReadStateRequest) ProtoReflect
func (x *UpdateSpaceReadStateRequest) ProtoReflect() protoreflect.Message
func (*UpdateSpaceReadStateRequest) Reset
func (x *UpdateSpaceReadStateRequest) Reset()
func (*UpdateSpaceReadStateRequest) String
func (x *UpdateSpaceReadStateRequest) String() string
UpdateSpaceRequest
type UpdateSpaceRequest struct {
// Required. Space with fields to be updated. `Space.name` must be
// populated in the form of `spaces/{space}`. Only fields
// specified by `update_mask` are updated.
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
// Required. The updated field paths, comma separated if there are
// multiple.
//
// Currently supported field paths:
//
// - `display_name` (Only supports changing the display name of a space with
// the `SPACE` type, or when also including the `space_type` mask to change a
// `GROUP_CHAT` space type to `SPACE`. Trying to update the display name of a
// `GROUP_CHAT` or a `DIRECT_MESSAGE` space results in an invalid argument
// error. If you receive the error message `ALREADY_EXISTS` when updating the
// `displayName`, try a different `displayName`. An existing space within the
// Google Workspace organization might already use this display name.)
//
// - `space_type` (Only supports changing a `GROUP_CHAT` space type to
// `SPACE`. Include `display_name` together
// with `space_type` in the update mask and ensure that the specified space
// has a non-empty display name and the `SPACE` space type. Including the
// `space_type` mask and the `SPACE` type in the specified space when updating
// the display name is optional if the existing space already has the `SPACE`
// type. Trying to update the space type in other ways results in an invalid
// argument error).
// `space_type` is not supported with admin access.
//
// - `space_details`
//
// - `space_history_state` (Supports [turning history on or off for the
// space](https://support.google.com/chat/answer/7664687) if [the organization
// allows users to change their history
// setting](https://support.google.com/a/answer/7664184).
// Warning: mutually exclusive with all other field paths.)
// `space_history_state` is not supported with admin access.
//
// - `access_settings.audience` (Supports changing the [access
// setting](https://support.google.com/chat/answer/11971020) of who can
// discover the space, join the space, and preview the messages in space. If
// no audience is specified in the access setting, the space's access setting
// is updated to private. Warning: mutually exclusive with all other field
// paths.)
// `access_settings.audience` is not supported with admin access.
//
// - Developer Preview: Supports changing the [permission
// settings](https://support.google.com/chat/answer/13340792) of a space,
// supported field paths
// include: `permission_settings.manage_members_and_groups`,
// `permission_settings.modify_space_details`,
// `permission_settings.toggle_history`,
// `permission_settings.use_at_mention_all`,
// `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
// `permission_settings.reply_messages`
//
// (Warning: mutually exclusive with all other non-permission settings field
//
// paths). `permission_settings` is not supported with admin access.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
A request to update a single space.
func (*UpdateSpaceRequest) Descriptor
func (*UpdateSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpaceRequest) GetSpace
func (x *UpdateSpaceRequest) GetSpace() *Space
func (*UpdateSpaceRequest) GetUpdateMask
func (x *UpdateSpaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateSpaceRequest) ProtoMessage
func (*UpdateSpaceRequest) ProtoMessage()
func (*UpdateSpaceRequest) ProtoReflect
func (x *UpdateSpaceRequest) ProtoReflect() protoreflect.Message
func (*UpdateSpaceRequest) Reset
func (x *UpdateSpaceRequest) Reset()
func (*UpdateSpaceRequest) String
func (x *UpdateSpaceRequest) String() string
UploadAttachmentRequest
type UploadAttachmentRequest struct {
// Required. Resource name of the Chat space in which the attachment is
// uploaded. Format "spaces/{space}".
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The filename of the attachment, including the file extension.
Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
// contains filtered or unexported fields
}
Request to upload an attachment.
func (*UploadAttachmentRequest) Descriptor
func (*UploadAttachmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadAttachmentRequest.ProtoReflect.Descriptor instead.
func (*UploadAttachmentRequest) GetFilename
func (x *UploadAttachmentRequest) GetFilename() string
func (*UploadAttachmentRequest) GetParent
func (x *UploadAttachmentRequest) GetParent() string
func (*UploadAttachmentRequest) ProtoMessage
func (*UploadAttachmentRequest) ProtoMessage()
func (*UploadAttachmentRequest) ProtoReflect
func (x *UploadAttachmentRequest) ProtoReflect() protoreflect.Message
func (*UploadAttachmentRequest) Reset
func (x *UploadAttachmentRequest) Reset()
func (*UploadAttachmentRequest) String
func (x *UploadAttachmentRequest) String() string
UploadAttachmentResponse
type UploadAttachmentResponse struct {
// Reference to the uploaded attachment.
AttachmentDataRef *AttachmentDataRef `protobuf:"bytes,1,opt,name=attachment_data_ref,json=attachmentDataRef,proto3" json:"attachment_data_ref,omitempty"`
// contains filtered or unexported fields
}
Response of uploading an attachment.
func (*UploadAttachmentResponse) Descriptor
func (*UploadAttachmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadAttachmentResponse.ProtoReflect.Descriptor instead.
func (*UploadAttachmentResponse) GetAttachmentDataRef
func (x *UploadAttachmentResponse) GetAttachmentDataRef() *AttachmentDataRef
func (*UploadAttachmentResponse) ProtoMessage
func (*UploadAttachmentResponse) ProtoMessage()
func (*UploadAttachmentResponse) ProtoReflect
func (x *UploadAttachmentResponse) ProtoReflect() protoreflect.Message
func (*UploadAttachmentResponse) Reset
func (x *UploadAttachmentResponse) Reset()
func (*UploadAttachmentResponse) String
func (x *UploadAttachmentResponse) String() string
User
type User struct {
// Resource name for a Google Chat [user][google.chat.v1.User].
//
// Format: `users/{user}`. `users/app` can be used as an alias for the calling
// app [bot][google.chat.v1.User.Type.BOT] user.
//
// For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same
// user identifier as:
//
// - the `id` for the
// [Person](https://developers.google.com/people/api/rest/v1/people) in the
// People API. For example, `users/123456789` in Chat API represents the same
// person as the `123456789` Person profile ID in People API.
//
// - the `id` for a
// [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
// in the Admin SDK Directory API.
//
// - the user's email address can be used as an alias for `{user}` in API
// requests. For example, if the People API Person profile ID for
// `user@example.com` is `123456789`, you can use `users/user@example.com` as
// an alias to reference `users/123456789`. Only the canonical resource name
// (for example `users/123456789`) will be returned from the API.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The user's display name.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Unique identifier of the user's Google Workspace domain.
DomainId string `protobuf:"bytes,6,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
// User type.
Type User_Type `protobuf:"varint,5,opt,name=type,proto3,enum=google.chat.v1.User_Type" json:"type,omitempty"`
// Output only. When `true`, the user is deleted or their profile is not
// visible.
IsAnonymous bool `protobuf:"varint,7,opt,name=is_anonymous,json=isAnonymous,proto3" json:"is_anonymous,omitempty"`
// contains filtered or unexported fields
}
A user in Google Chat.
When returned as an output from a request, if your Chat app authenticates as
a
user,
the output for a User
resource only populates the user's name
and type
.
func (*User) Descriptor
Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) GetDisplayName
func (*User) GetDomainId
func (*User) GetIsAnonymous
func (*User) GetName
func (*User) GetType
func (*User) ProtoMessage
func (*User) ProtoMessage()
func (*User) ProtoReflect
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Reset
func (x *User) Reset()
func (*User) String
UserMentionMetadata
type UserMentionMetadata struct {
// The user mentioned.
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// The type of user mention.
Type UserMentionMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.chat.v1.UserMentionMetadata_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}
Annotation metadata for user mentions (@).
func (*UserMentionMetadata) Descriptor
func (*UserMentionMetadata) Descriptor() ([]byte, []int)
Deprecated: Use UserMentionMetadata.ProtoReflect.Descriptor instead.
func (*UserMentionMetadata) GetType
func (x *UserMentionMetadata) GetType() UserMentionMetadata_Type
func (*UserMentionMetadata) GetUser
func (x *UserMentionMetadata) GetUser() *User
func (*UserMentionMetadata) ProtoMessage
func (*UserMentionMetadata) ProtoMessage()
func (*UserMentionMetadata) ProtoReflect
func (x *UserMentionMetadata) ProtoReflect() protoreflect.Message
func (*UserMentionMetadata) Reset
func (x *UserMentionMetadata) Reset()
func (*UserMentionMetadata) String
func (x *UserMentionMetadata) String() string
UserMentionMetadata_Type
type UserMentionMetadata_Type int32
UserMentionMetadata_TYPE_UNSPECIFIED, UserMentionMetadata_ADD, UserMentionMetadata_MENTION
const (
// Default value for the enum. Don't use.
UserMentionMetadata_TYPE_UNSPECIFIED UserMentionMetadata_Type = 0
// Add user to space.
UserMentionMetadata_ADD UserMentionMetadata_Type = 1
// Mention user in space.
UserMentionMetadata_MENTION UserMentionMetadata_Type = 2
)
func (UserMentionMetadata_Type) Descriptor
func (UserMentionMetadata_Type) Descriptor() protoreflect.EnumDescriptor
func (UserMentionMetadata_Type) Enum
func (x UserMentionMetadata_Type) Enum() *UserMentionMetadata_Type
func (UserMentionMetadata_Type) EnumDescriptor
func (UserMentionMetadata_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserMentionMetadata_Type.Descriptor instead.
func (UserMentionMetadata_Type) Number
func (x UserMentionMetadata_Type) Number() protoreflect.EnumNumber
func (UserMentionMetadata_Type) String
func (x UserMentionMetadata_Type) String() string
func (UserMentionMetadata_Type) Type
func (UserMentionMetadata_Type) Type() protoreflect.EnumType
User_Type
type User_Type int32
User_TYPE_UNSPECIFIED, User_HUMAN, User_BOT
const (
// Default value for the enum. DO NOT USE.
User_TYPE_UNSPECIFIED User_Type = 0
// Human user.
User_HUMAN User_Type = 1
// Chat app user.
User_BOT User_Type = 2
)
func (User_Type) Descriptor
func (User_Type) Descriptor() protoreflect.EnumDescriptor
func (User_Type) Enum
func (User_Type) EnumDescriptor
Deprecated: Use User_Type.Descriptor instead.
func (User_Type) Number
func (x User_Type) Number() protoreflect.EnumNumber
func (User_Type) String
func (User_Type) Type
func (User_Type) Type() protoreflect.EnumType
WidgetMarkup
type WidgetMarkup struct {
// A `WidgetMarkup` can only have one of the following items. You can use
// multiple `WidgetMarkup` fields to display more items.
//
// Types that are assignable to Data:
//
// *WidgetMarkup_TextParagraph_
// *WidgetMarkup_Image_
// *WidgetMarkup_KeyValue_
Data isWidgetMarkup_Data `protobuf_oneof:"data"`
// A list of buttons. Buttons is also `oneof data` and only one of these
// fields should be set.
Buttons []*WidgetMarkup_Button `protobuf:"bytes,6,rep,name=buttons,proto3" json:"buttons,omitempty"`
// contains filtered or unexported fields
}
A widget is a UI element that presents text and images.
func (*WidgetMarkup) Descriptor
func (*WidgetMarkup) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup.ProtoReflect.Descriptor instead.
func (*WidgetMarkup) GetButtons
func (x *WidgetMarkup) GetButtons() []*WidgetMarkup_Button
func (*WidgetMarkup) GetData
func (m *WidgetMarkup) GetData() isWidgetMarkup_Data
func (*WidgetMarkup) GetImage
func (x *WidgetMarkup) GetImage() *WidgetMarkup_Image
func (*WidgetMarkup) GetKeyValue
func (x *WidgetMarkup) GetKeyValue() *WidgetMarkup_KeyValue
func (*WidgetMarkup) GetTextParagraph
func (x *WidgetMarkup) GetTextParagraph() *WidgetMarkup_TextParagraph
func (*WidgetMarkup) ProtoMessage
func (*WidgetMarkup) ProtoMessage()
func (*WidgetMarkup) ProtoReflect
func (x *WidgetMarkup) ProtoReflect() protoreflect.Message
func (*WidgetMarkup) Reset
func (x *WidgetMarkup) Reset()
func (*WidgetMarkup) String
func (x *WidgetMarkup) String() string
WidgetMarkup_Button
type WidgetMarkup_Button struct {
// Types that are assignable to Type:
//
// *WidgetMarkup_Button_TextButton
// *WidgetMarkup_Button_ImageButton
Type isWidgetMarkup_Button_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
A button. Can be a text button or an image button.
func (*WidgetMarkup_Button) Descriptor
func (*WidgetMarkup_Button) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_Button.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_Button) GetImageButton
func (x *WidgetMarkup_Button) GetImageButton() *WidgetMarkup_ImageButton
func (*WidgetMarkup_Button) GetTextButton
func (x *WidgetMarkup_Button) GetTextButton() *WidgetMarkup_TextButton
func (*WidgetMarkup_Button) GetType
func (m *WidgetMarkup_Button) GetType() isWidgetMarkup_Button_Type
func (*WidgetMarkup_Button) ProtoMessage
func (*WidgetMarkup_Button) ProtoMessage()
func (*WidgetMarkup_Button) ProtoReflect
func (x *WidgetMarkup_Button) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_Button) Reset
func (x *WidgetMarkup_Button) Reset()
func (*WidgetMarkup_Button) String
func (x *WidgetMarkup_Button) String() string
WidgetMarkup_Button_ImageButton
type WidgetMarkup_Button_ImageButton struct {
// A button with image and `onclick` action.
ImageButton *WidgetMarkup_ImageButton `protobuf:"bytes,2,opt,name=image_button,json=imageButton,proto3,oneof"`
}
WidgetMarkup_Button_TextButton
type WidgetMarkup_Button_TextButton struct {
// A button with text and `onclick` action.
TextButton *WidgetMarkup_TextButton `protobuf:"bytes,1,opt,name=text_button,json=textButton,proto3,oneof"`
}
WidgetMarkup_FormAction
type WidgetMarkup_FormAction struct {
// The method name is used to identify which part of the form triggered the
// form submission. This information is echoed back to the Chat app as part
// of the card click event. You can use the same method name for several
// elements that trigger a common behavior.
ActionMethodName string `protobuf:"bytes,1,opt,name=action_method_name,json=actionMethodName,proto3" json:"action_method_name,omitempty"`
// List of action parameters.
Parameters []*WidgetMarkup_FormAction_ActionParameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"`
// contains filtered or unexported fields
}
A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.
func (*WidgetMarkup_FormAction) Descriptor
func (*WidgetMarkup_FormAction) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_FormAction.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_FormAction) GetActionMethodName
func (x *WidgetMarkup_FormAction) GetActionMethodName() string
func (*WidgetMarkup_FormAction) GetParameters
func (x *WidgetMarkup_FormAction) GetParameters() []*WidgetMarkup_FormAction_ActionParameter
func (*WidgetMarkup_FormAction) ProtoMessage
func (*WidgetMarkup_FormAction) ProtoMessage()
func (*WidgetMarkup_FormAction) ProtoReflect
func (x *WidgetMarkup_FormAction) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_FormAction) Reset
func (x *WidgetMarkup_FormAction) Reset()
func (*WidgetMarkup_FormAction) String
func (x *WidgetMarkup_FormAction) String() string
WidgetMarkup_FormAction_ActionParameter
type WidgetMarkup_FormAction_ActionParameter struct {
// The name of the parameter for the action script.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The value of the parameter.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
List of string parameters to supply when the action method is invoked.
For example, consider three snooze buttons: snooze now, snooze one day,
snooze next week. You might use action method = snooze()
, passing the
snooze type and snooze time in the list of string parameters.
func (*WidgetMarkup_FormAction_ActionParameter) Descriptor
func (*WidgetMarkup_FormAction_ActionParameter) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_FormAction_ActionParameter.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_FormAction_ActionParameter) GetKey
func (x *WidgetMarkup_FormAction_ActionParameter) GetKey() string
func (*WidgetMarkup_FormAction_ActionParameter) GetValue
func (x *WidgetMarkup_FormAction_ActionParameter) GetValue() string
func (*WidgetMarkup_FormAction_ActionParameter) ProtoMessage
func (*WidgetMarkup_FormAction_ActionParameter) ProtoMessage()
func (*WidgetMarkup_FormAction_ActionParameter) ProtoReflect
func (x *WidgetMarkup_FormAction_ActionParameter) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_FormAction_ActionParameter) Reset
func (x *WidgetMarkup_FormAction_ActionParameter) Reset()
func (*WidgetMarkup_FormAction_ActionParameter) String
func (x *WidgetMarkup_FormAction_ActionParameter) String() string
WidgetMarkup_Icon
type WidgetMarkup_Icon int32
The set of supported icons.
WidgetMarkup_ICON_UNSPECIFIED, WidgetMarkup_AIRPLANE, WidgetMarkup_BOOKMARK, WidgetMarkup_BUS, WidgetMarkup_CAR, WidgetMarkup_CLOCK, WidgetMarkup_CONFIRMATION_NUMBER_ICON, WidgetMarkup_DOLLAR, WidgetMarkup_DESCRIPTION, WidgetMarkup_EMAIL, WidgetMarkup_EVENT_PERFORMER, WidgetMarkup_EVENT_SEAT, WidgetMarkup_FLIGHT_ARRIVAL, WidgetMarkup_FLIGHT_DEPARTURE, WidgetMarkup_HOTEL, WidgetMarkup_HOTEL_ROOM_TYPE, WidgetMarkup_INVITE, WidgetMarkup_MAP_PIN, WidgetMarkup_MEMBERSHIP, WidgetMarkup_MULTIPLE_PEOPLE, WidgetMarkup_OFFER, WidgetMarkup_PERSON, WidgetMarkup_PHONE, WidgetMarkup_RESTAURANT_ICON, WidgetMarkup_SHOPPING_CART, WidgetMarkup_STAR, WidgetMarkup_STORE, WidgetMarkup_TICKET, WidgetMarkup_TRAIN, WidgetMarkup_VIDEO_CAMERA, WidgetMarkup_VIDEO_PLAY
const (
WidgetMarkup_ICON_UNSPECIFIED WidgetMarkup_Icon = 0
WidgetMarkup_AIRPLANE WidgetMarkup_Icon = 1
WidgetMarkup_BOOKMARK WidgetMarkup_Icon = 26
WidgetMarkup_BUS WidgetMarkup_Icon = 25
WidgetMarkup_CAR WidgetMarkup_Icon = 9
WidgetMarkup_CLOCK WidgetMarkup_Icon = 2
WidgetMarkup_CONFIRMATION_NUMBER_ICON WidgetMarkup_Icon = 12
WidgetMarkup_DOLLAR WidgetMarkup_Icon = 14
WidgetMarkup_DESCRIPTION WidgetMarkup_Icon = 27
WidgetMarkup_EMAIL WidgetMarkup_Icon = 10
WidgetMarkup_EVENT_PERFORMER WidgetMarkup_Icon = 20
WidgetMarkup_EVENT_SEAT WidgetMarkup_Icon = 21
WidgetMarkup_FLIGHT_ARRIVAL WidgetMarkup_Icon = 16
WidgetMarkup_FLIGHT_DEPARTURE WidgetMarkup_Icon = 15
WidgetMarkup_HOTEL WidgetMarkup_Icon = 6
WidgetMarkup_HOTEL_ROOM_TYPE WidgetMarkup_Icon = 17
WidgetMarkup_INVITE WidgetMarkup_Icon = 19
WidgetMarkup_MAP_PIN WidgetMarkup_Icon = 3
WidgetMarkup_MEMBERSHIP WidgetMarkup_Icon = 24
WidgetMarkup_MULTIPLE_PEOPLE WidgetMarkup_Icon = 18
WidgetMarkup_OFFER WidgetMarkup_Icon = 30
WidgetMarkup_PERSON WidgetMarkup_Icon = 11
WidgetMarkup_PHONE WidgetMarkup_Icon = 13
WidgetMarkup_RESTAURANT_ICON WidgetMarkup_Icon = 7
WidgetMarkup_SHOPPING_CART WidgetMarkup_Icon = 8
WidgetMarkup_STAR WidgetMarkup_Icon = 5
WidgetMarkup_STORE WidgetMarkup_Icon = 22
WidgetMarkup_TICKET WidgetMarkup_Icon = 4
WidgetMarkup_TRAIN WidgetMarkup_Icon = 23
WidgetMarkup_VIDEO_CAMERA WidgetMarkup_Icon = 28
WidgetMarkup_VIDEO_PLAY WidgetMarkup_Icon = 29
)
func (WidgetMarkup_Icon) Descriptor
func (WidgetMarkup_Icon) Descriptor() protoreflect.EnumDescriptor
func (WidgetMarkup_Icon) Enum
func (x WidgetMarkup_Icon) Enum() *WidgetMarkup_Icon
func (WidgetMarkup_Icon) EnumDescriptor
func (WidgetMarkup_Icon) EnumDescriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_Icon.Descriptor instead.
func (WidgetMarkup_Icon) Number
func (x WidgetMarkup_Icon) Number() protoreflect.EnumNumber
func (WidgetMarkup_Icon) String
func (x WidgetMarkup_Icon) String() string
func (WidgetMarkup_Icon) Type
func (WidgetMarkup_Icon) Type() protoreflect.EnumType
WidgetMarkup_Image
type WidgetMarkup_Image struct {
// The URL of the image.
ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
// The `onclick` action.
OnClick *WidgetMarkup_OnClick `protobuf:"bytes,2,opt,name=on_click,json=onClick,proto3" json:"on_click,omitempty"`
// The aspect ratio of this image (width and height). This field lets you
// reserve the right height for the image while waiting for it to load.
// It's not meant to override the built-in aspect ratio of the image.
// If unset, the server fills it by prefetching the image.
AspectRatio float64 `protobuf:"fixed64,3,opt,name=aspect_ratio,json=aspectRatio,proto3" json:"aspect_ratio,omitempty"`
// contains filtered or unexported fields
}
An image that's specified by a URL and can have an onclick
action.
func (*WidgetMarkup_Image) Descriptor
func (*WidgetMarkup_Image) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_Image.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_Image) GetAspectRatio
func (x *WidgetMarkup_Image) GetAspectRatio() float64
func (*WidgetMarkup_Image) GetImageUrl
func (x *WidgetMarkup_Image) GetImageUrl() string
func (*WidgetMarkup_Image) GetOnClick
func (x *WidgetMarkup_Image) GetOnClick() *WidgetMarkup_OnClick
func (*WidgetMarkup_Image) ProtoMessage
func (*WidgetMarkup_Image) ProtoMessage()
func (*WidgetMarkup_Image) ProtoReflect
func (x *WidgetMarkup_Image) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_Image) Reset
func (x *WidgetMarkup_Image) Reset()
func (*WidgetMarkup_Image) String
func (x *WidgetMarkup_Image) String() string
WidgetMarkup_ImageButton
type WidgetMarkup_ImageButton struct {
// The icon can be specified by an `Icon` `enum` or a URL.
//
// Types that are assignable to Icons:
//
// *WidgetMarkup_ImageButton_Icon
// *WidgetMarkup_ImageButton_IconUrl
Icons isWidgetMarkup_ImageButton_Icons `protobuf_oneof:"icons"`
// The `onclick` action.
OnClick *WidgetMarkup_OnClick `protobuf:"bytes,2,opt,name=on_click,json=onClick,proto3" json:"on_click,omitempty"`
// The name of this `image_button` that's used for accessibility.
// Default value is provided if this name isn't specified.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
An image button with an onclick
action.
func (*WidgetMarkup_ImageButton) Descriptor
func (*WidgetMarkup_ImageButton) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_ImageButton.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_ImageButton) GetIcon
func (x *WidgetMarkup_ImageButton) GetIcon() WidgetMarkup_Icon
func (*WidgetMarkup_ImageButton) GetIconUrl
func (x *WidgetMarkup_ImageButton) GetIconUrl() string
func (*WidgetMarkup_ImageButton) GetIcons
func (m *WidgetMarkup_ImageButton) GetIcons() isWidgetMarkup_ImageButton_Icons
func (*WidgetMarkup_ImageButton) GetName
func (x *WidgetMarkup_ImageButton) GetName() string
func (*WidgetMarkup_ImageButton) GetOnClick
func (x *WidgetMarkup_ImageButton) GetOnClick() *WidgetMarkup_OnClick
func (*WidgetMarkup_ImageButton) ProtoMessage
func (*WidgetMarkup_ImageButton) ProtoMessage()
func (*WidgetMarkup_ImageButton) ProtoReflect
func (x *WidgetMarkup_ImageButton) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_ImageButton) Reset
func (x *WidgetMarkup_ImageButton) Reset()
func (*WidgetMarkup_ImageButton) String
func (x *WidgetMarkup_ImageButton) String() string
WidgetMarkup_ImageButton_Icon
type WidgetMarkup_ImageButton_Icon struct {
// The icon specified by an `enum` that indices to an icon provided by
// Chat API.
Icon WidgetMarkup_Icon `protobuf:"varint,1,opt,name=icon,proto3,enum=google.chat.v1.WidgetMarkup_Icon,oneof"`
}
WidgetMarkup_ImageButton_IconUrl
type WidgetMarkup_ImageButton_IconUrl struct {
// The icon specified by a URL.
IconUrl string `protobuf:"bytes,3,opt,name=icon_url,json=iconUrl,proto3,oneof"`
}
WidgetMarkup_Image_
type WidgetMarkup_Image_ struct {
// Display an image in this widget.
Image *WidgetMarkup_Image `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}
WidgetMarkup_KeyValue
type WidgetMarkup_KeyValue struct {
// At least one of icons, `top_label` and `bottom_label` must be defined.
//
// Types that are assignable to Icons:
//
// *WidgetMarkup_KeyValue_Icon
// *WidgetMarkup_KeyValue_IconUrl
Icons isWidgetMarkup_KeyValue_Icons `protobuf_oneof:"icons"`
// The text of the top label. Formatted text 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).
TopLabel string `protobuf:"bytes,3,opt,name=top_label,json=topLabel,proto3" json:"top_label,omitempty"`
// The text of the content. Formatted text supported and always required.
// 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).
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
// If the content should be multiline.
ContentMultiline bool `protobuf:"varint,9,opt,name=content_multiline,json=contentMultiline,proto3" json:"content_multiline,omitempty"`
// The text of the bottom label. Formatted text 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).
BottomLabel string `protobuf:"bytes,5,opt,name=bottom_label,json=bottomLabel,proto3" json:"bottom_label,omitempty"`
// The `onclick` action. Only the top label, bottom label, and content
// region are clickable.
OnClick *WidgetMarkup_OnClick `protobuf:"bytes,6,opt,name=on_click,json=onClick,proto3" json:"on_click,omitempty"`
// A control widget. You can set either `button` or `switch_widget`,
// but not both.
//
// Types that are assignable to Control:
//
// *WidgetMarkup_KeyValue_Button
Control isWidgetMarkup_KeyValue_Control `protobuf_oneof:"control"`
// contains filtered or unexported fields
}
A UI element contains a key (label) and a value (content). This
element can also contain some actions such as onclick
button.
func (*WidgetMarkup_KeyValue) Descriptor
func (*WidgetMarkup_KeyValue) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_KeyValue.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_KeyValue) GetBottomLabel
func (x *WidgetMarkup_KeyValue) GetBottomLabel() string
func (*WidgetMarkup_KeyValue) GetButton
func (x *WidgetMarkup_KeyValue) GetButton() *WidgetMarkup_Button
func (*WidgetMarkup_KeyValue) GetContent
func (x *WidgetMarkup_KeyValue) GetContent() string
func (*WidgetMarkup_KeyValue) GetContentMultiline
func (x *WidgetMarkup_KeyValue) GetContentMultiline() bool
func (*WidgetMarkup_KeyValue) GetControl
func (m *WidgetMarkup_KeyValue) GetControl() isWidgetMarkup_KeyValue_Control
func (*WidgetMarkup_KeyValue) GetIcon
func (x *WidgetMarkup_KeyValue) GetIcon() WidgetMarkup_Icon
func (*WidgetMarkup_KeyValue) GetIconUrl
func (x *WidgetMarkup_KeyValue) GetIconUrl() string
func (*WidgetMarkup_KeyValue) GetIcons
func (m *WidgetMarkup_KeyValue) GetIcons() isWidgetMarkup_KeyValue_Icons
func (*WidgetMarkup_KeyValue) GetOnClick
func (x *WidgetMarkup_KeyValue) GetOnClick() *WidgetMarkup_OnClick
func (*WidgetMarkup_KeyValue) GetTopLabel
func (x *WidgetMarkup_KeyValue) GetTopLabel() string
func (*WidgetMarkup_KeyValue) ProtoMessage
func (*WidgetMarkup_KeyValue) ProtoMessage()
func (*WidgetMarkup_KeyValue) ProtoReflect
func (x *WidgetMarkup_KeyValue) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_KeyValue) Reset
func (x *WidgetMarkup_KeyValue) Reset()
func (*WidgetMarkup_KeyValue) String
func (x *WidgetMarkup_KeyValue) String() string
WidgetMarkup_KeyValue_
type WidgetMarkup_KeyValue_ struct {
// Display a key value item in this widget.
KeyValue *WidgetMarkup_KeyValue `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3,oneof"`
}
WidgetMarkup_KeyValue_Button
type WidgetMarkup_KeyValue_Button struct {
// A button that can be clicked to trigger an action.
Button *WidgetMarkup_Button `protobuf:"bytes,7,opt,name=button,proto3,oneof"`
}
WidgetMarkup_KeyValue_Icon
type WidgetMarkup_KeyValue_Icon struct {
// An enum value that's replaced by the Chat API with the
// corresponding icon image.
Icon WidgetMarkup_Icon `protobuf:"varint,1,opt,name=icon,proto3,enum=google.chat.v1.WidgetMarkup_Icon,oneof"`
}
WidgetMarkup_KeyValue_IconUrl
type WidgetMarkup_KeyValue_IconUrl struct {
// The icon specified by a URL.
IconUrl string `protobuf:"bytes,2,opt,name=icon_url,json=iconUrl,proto3,oneof"`
}
WidgetMarkup_OnClick
type WidgetMarkup_OnClick struct {
// Types that are assignable to Data:
//
// *WidgetMarkup_OnClick_Action
// *WidgetMarkup_OnClick_OpenLink
Data isWidgetMarkup_OnClick_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
An onclick
action (for example, open a link).
func (*WidgetMarkup_OnClick) Descriptor
func (*WidgetMarkup_OnClick) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_OnClick.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_OnClick) GetAction
func (x *WidgetMarkup_OnClick) GetAction() *WidgetMarkup_FormAction
func (*WidgetMarkup_OnClick) GetData
func (m *WidgetMarkup_OnClick) GetData() isWidgetMarkup_OnClick_Data
func (*WidgetMarkup_OnClick) GetOpenLink
func (x *WidgetMarkup_OnClick) GetOpenLink() *WidgetMarkup_OpenLink
func (*WidgetMarkup_OnClick) ProtoMessage
func (*WidgetMarkup_OnClick) ProtoMessage()
func (*WidgetMarkup_OnClick) ProtoReflect
func (x *WidgetMarkup_OnClick) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_OnClick) Reset
func (x *WidgetMarkup_OnClick) Reset()
func (*WidgetMarkup_OnClick) String
func (x *WidgetMarkup_OnClick) String() string
WidgetMarkup_OnClick_Action
type WidgetMarkup_OnClick_Action struct {
// A form action is triggered by this `onclick` action if specified.
Action *WidgetMarkup_FormAction `protobuf:"bytes,1,opt,name=action,proto3,oneof"`
}
WidgetMarkup_OnClick_OpenLink
type WidgetMarkup_OnClick_OpenLink struct {
// This `onclick` action triggers an open link action if specified.
OpenLink *WidgetMarkup_OpenLink `protobuf:"bytes,2,opt,name=open_link,json=openLink,proto3,oneof"`
}
WidgetMarkup_OpenLink
type WidgetMarkup_OpenLink struct {
// The URL to open.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
A link that opens a new window.
func (*WidgetMarkup_OpenLink) Descriptor
func (*WidgetMarkup_OpenLink) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_OpenLink.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_OpenLink) GetUrl
func (x *WidgetMarkup_OpenLink) GetUrl() string
func (*WidgetMarkup_OpenLink) ProtoMessage
func (*WidgetMarkup_OpenLink) ProtoMessage()
func (*WidgetMarkup_OpenLink) ProtoReflect
func (x *WidgetMarkup_OpenLink) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_OpenLink) Reset
func (x *WidgetMarkup_OpenLink) Reset()
func (*WidgetMarkup_OpenLink) String
func (x *WidgetMarkup_OpenLink) String() string
WidgetMarkup_TextButton
type WidgetMarkup_TextButton struct {
// The text of the button.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// The `onclick` action of the button.
OnClick *WidgetMarkup_OnClick `protobuf:"bytes,2,opt,name=on_click,json=onClick,proto3" json:"on_click,omitempty"`
// contains filtered or unexported fields
}
A button with text and onclick
action.
func (*WidgetMarkup_TextButton) Descriptor
func (*WidgetMarkup_TextButton) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_TextButton.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_TextButton) GetOnClick
func (x *WidgetMarkup_TextButton) GetOnClick() *WidgetMarkup_OnClick
func (*WidgetMarkup_TextButton) GetText
func (x *WidgetMarkup_TextButton) GetText() string
func (*WidgetMarkup_TextButton) ProtoMessage
func (*WidgetMarkup_TextButton) ProtoMessage()
func (*WidgetMarkup_TextButton) ProtoReflect
func (x *WidgetMarkup_TextButton) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_TextButton) Reset
func (x *WidgetMarkup_TextButton) Reset()
func (*WidgetMarkup_TextButton) String
func (x *WidgetMarkup_TextButton) String() string
WidgetMarkup_TextParagraph
type WidgetMarkup_TextParagraph struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
func (*WidgetMarkup_TextParagraph) Descriptor
func (*WidgetMarkup_TextParagraph) Descriptor() ([]byte, []int)
Deprecated: Use WidgetMarkup_TextParagraph.ProtoReflect.Descriptor instead.
func (*WidgetMarkup_TextParagraph) GetText
func (x *WidgetMarkup_TextParagraph) GetText() string
func (*WidgetMarkup_TextParagraph) ProtoMessage
func (*WidgetMarkup_TextParagraph) ProtoMessage()
func (*WidgetMarkup_TextParagraph) ProtoReflect
func (x *WidgetMarkup_TextParagraph) ProtoReflect() protoreflect.Message
func (*WidgetMarkup_TextParagraph) Reset
func (x *WidgetMarkup_TextParagraph) Reset()
func (*WidgetMarkup_TextParagraph) String
func (x *WidgetMarkup_TextParagraph) String() string
WidgetMarkup_TextParagraph_
type WidgetMarkup_TextParagraph_ struct {
// Display a text paragraph in this widget.
TextParagraph *WidgetMarkup_TextParagraph `protobuf:"bytes,1,opt,name=text_paragraph,json=textParagraph,proto3,oneof"`
}