Package cloud.google.com/go/chat/apiv1/chatpb (v0.13.1)

Constants

ChatService_CreateMessage_FullMethodName, ChatService_ListMessages_FullMethodName, ChatService_ListMemberships_FullMethodName, ChatService_GetMembership_FullMethodName, ChatService_GetMessage_FullMethodName, ChatService_UpdateMessage_FullMethodName, ChatService_DeleteMessage_FullMethodName, ChatService_GetAttachment_FullMethodName, ChatService_UploadAttachment_FullMethodName, ChatService_ListSpaces_FullMethodName, ChatService_SearchSpaces_FullMethodName, ChatService_GetSpace_FullMethodName, ChatService_CreateSpace_FullMethodName, ChatService_SetUpSpace_FullMethodName, ChatService_UpdateSpace_FullMethodName, ChatService_DeleteSpace_FullMethodName, ChatService_CompleteImportSpace_FullMethodName, ChatService_FindDirectMessage_FullMethodName, ChatService_CreateMembership_FullMethodName, ChatService_UpdateMembership_FullMethodName, ChatService_DeleteMembership_FullMethodName, ChatService_CreateReaction_FullMethodName, ChatService_ListReactions_FullMethodName, ChatService_DeleteReaction_FullMethodName, ChatService_CreateCustomEmoji_FullMethodName, ChatService_GetCustomEmoji_FullMethodName, ChatService_ListCustomEmojis_FullMethodName, ChatService_DeleteCustomEmoji_FullMethodName, ChatService_GetSpaceReadState_FullMethodName, ChatService_UpdateSpaceReadState_FullMethodName, ChatService_GetThreadReadState_FullMethodName, ChatService_GetSpaceEvent_FullMethodName, ChatService_ListSpaceEvents_FullMethodName, ChatService_GetSpaceNotificationSetting_FullMethodName, ChatService_UpdateSpaceNotificationSetting_FullMethodName

const (
	ChatService_CreateMessage_FullMethodName                  = "/google.chat.v1.ChatService/CreateMessage"
	ChatService_ListMessages_FullMethodName                   = "/google.chat.v1.ChatService/ListMessages"
	ChatService_ListMemberships_FullMethodName                = "/google.chat.v1.ChatService/ListMemberships"
	ChatService_GetMembership_FullMethodName                  = "/google.chat.v1.ChatService/GetMembership"
	ChatService_GetMessage_FullMethodName                     = "/google.chat.v1.ChatService/GetMessage"
	ChatService_UpdateMessage_FullMethodName                  = "/google.chat.v1.ChatService/UpdateMessage"
	ChatService_DeleteMessage_FullMethodName                  = "/google.chat.v1.ChatService/DeleteMessage"
	ChatService_GetAttachment_FullMethodName                  = "/google.chat.v1.ChatService/GetAttachment"
	ChatService_UploadAttachment_FullMethodName               = "/google.chat.v1.ChatService/UploadAttachment"
	ChatService_ListSpaces_FullMethodName                     = "/google.chat.v1.ChatService/ListSpaces"
	ChatService_SearchSpaces_FullMethodName                   = "/google.chat.v1.ChatService/SearchSpaces"
	ChatService_GetSpace_FullMethodName                       = "/google.chat.v1.ChatService/GetSpace"
	ChatService_CreateSpace_FullMethodName                    = "/google.chat.v1.ChatService/CreateSpace"
	ChatService_SetUpSpace_FullMethodName                     = "/google.chat.v1.ChatService/SetUpSpace"
	ChatService_UpdateSpace_FullMethodName                    = "/google.chat.v1.ChatService/UpdateSpace"
	ChatService_DeleteSpace_FullMethodName                    = "/google.chat.v1.ChatService/DeleteSpace"
	ChatService_CompleteImportSpace_FullMethodName            = "/google.chat.v1.ChatService/CompleteImportSpace"
	ChatService_FindDirectMessage_FullMethodName              = "/google.chat.v1.ChatService/FindDirectMessage"
	ChatService_CreateMembership_FullMethodName               = "/google.chat.v1.ChatService/CreateMembership"
	ChatService_UpdateMembership_FullMethodName               = "/google.chat.v1.ChatService/UpdateMembership"
	ChatService_DeleteMembership_FullMethodName               = "/google.chat.v1.ChatService/DeleteMembership"
	ChatService_CreateReaction_FullMethodName                 = "/google.chat.v1.ChatService/CreateReaction"
	ChatService_ListReactions_FullMethodName                  = "/google.chat.v1.ChatService/ListReactions"
	ChatService_DeleteReaction_FullMethodName                 = "/google.chat.v1.ChatService/DeleteReaction"
	ChatService_CreateCustomEmoji_FullMethodName              = "/google.chat.v1.ChatService/CreateCustomEmoji"
	ChatService_GetCustomEmoji_FullMethodName                 = "/google.chat.v1.ChatService/GetCustomEmoji"
	ChatService_ListCustomEmojis_FullMethodName               = "/google.chat.v1.ChatService/ListCustomEmojis"
	ChatService_DeleteCustomEmoji_FullMethodName              = "/google.chat.v1.ChatService/DeleteCustomEmoji"
	ChatService_GetSpaceReadState_FullMethodName              = "/google.chat.v1.ChatService/GetSpaceReadState"
	ChatService_UpdateSpaceReadState_FullMethodName           = "/google.chat.v1.ChatService/UpdateSpaceReadState"
	ChatService_GetThreadReadState_FullMethodName             = "/google.chat.v1.ChatService/GetThreadReadState"
	ChatService_GetSpaceEvent_FullMethodName                  = "/google.chat.v1.ChatService/GetSpaceEvent"
	ChatService_ListSpaceEvents_FullMethodName                = "/google.chat.v1.ChatService/ListSpaceEvents"
	ChatService_GetSpaceNotificationSetting_FullMethodName    = "/google.chat.v1.ChatService/GetSpaceNotificationSetting"
	ChatService_UpdateSpaceNotificationSetting_FullMethodName = "/google.chat.v1.ChatService/UpdateSpaceNotificationSetting"
)

Variables

AnnotationType_name, AnnotationType_value

var (
	AnnotationType_name = map[int32]string{
		0: "ANNOTATION_TYPE_UNSPECIFIED",
		1: "USER_MENTION",
		2: "SLASH_COMMAND",
		3: "RICH_LINK",
		4: "CUSTOM_EMOJI",
	}
	AnnotationType_value = map[string]int32{
		"ANNOTATION_TYPE_UNSPECIFIED": 0,
		"USER_MENTION":                1,
		"SLASH_COMMAND":               2,
		"RICH_LINK":                   3,
		"CUSTOM_EMOJI":                4,
	}
)

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",
		7: "SPACE_MEMBER",
	}
	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,
		"SPACE_MEMBER":              7,
	}
)

Enum value maps for DeletionMetadata_DeletionType.

HistoryState_name, HistoryState_value

var (
	HistoryState_name = map[int32]string{
		0: "HISTORY_STATE_UNSPECIFIED",
		1: "HISTORY_OFF",
		2: "HISTORY_ON",
	}
	HistoryState_value = map[string]int32{
		"HISTORY_STATE_UNSPECIFIED": 0,
		"HISTORY_OFF":               1,
		"HISTORY_ON":                2,
	}
)

Enum value maps for HistoryState.

Membership_MembershipState_name, Membership_MembershipState_value

var (
	Membership_MembershipState_name = map[int32]string{
		0: "MEMBERSHIP_STATE_UNSPECIFIED",
		1: "JOINED",
		2: "INVITED",
		3: "NOT_A_MEMBER",
	}
	Membership_MembershipState_value = map[string]int32{
		"MEMBERSHIP_STATE_UNSPECIFIED": 0,
		"JOINED":                       1,
		"INVITED":                      2,
		"NOT_A_MEMBER":                 3,
	}
)

Enum value maps for Membership_MembershipState.

Membership_MembershipRole_name, Membership_MembershipRole_value

var (
	Membership_MembershipRole_name = map[int32]string{
		0: "MEMBERSHIP_ROLE_UNSPECIFIED",
		1: "ROLE_MEMBER",
		2: "ROLE_MANAGER",
	}
	Membership_MembershipRole_value = map[string]int32{
		"MEMBERSHIP_ROLE_UNSPECIFIED": 0,
		"ROLE_MEMBER":                 1,
		"ROLE_MANAGER":                2,
	}
)

Enum value maps for Membership_MembershipRole.

ActionResponse_ResponseType_name, ActionResponse_ResponseType_value

var (
	ActionResponse_ResponseType_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "NEW_MESSAGE",
		2: "UPDATE_MESSAGE",
		6: "UPDATE_USER_MESSAGE_CARDS",
		3: "REQUEST_CONFIG",
		4: "DIALOG",
		7: "UPDATE_WIDGET",
	}
	ActionResponse_ResponseType_value = map[string]int32{
		"TYPE_UNSPECIFIED":          0,
		"NEW_MESSAGE":               1,
		"UPDATE_MESSAGE":            2,
		"UPDATE_USER_MESSAGE_CARDS": 6,
		"REQUEST_CONFIG":            3,
		"DIALOG":                    4,
		"UPDATE_WIDGET":             7,
	}
)

Enum value maps for ActionResponse_ResponseType.

CreateMessageRequest_MessageReplyOption_name, CreateMessageRequest_MessageReplyOption_value

var (
	CreateMessageRequest_MessageReplyOption_name = map[int32]string{
		0: "MESSAGE_REPLY_OPTION_UNSPECIFIED",
		1: "REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD",
		2: "REPLY_MESSAGE_OR_FAIL",
	}
	CreateMessageRequest_MessageReplyOption_value = map[string]int32{
		"MESSAGE_REPLY_OPTION_UNSPECIFIED":     0,
		"REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD": 1,
		"REPLY_MESSAGE_OR_FAIL":                2,
	}
)

Enum value maps for CreateMessageRequest_MessageReplyOption.

Space_Type_name, Space_Type_value

var (
	Space_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "ROOM",
		2: "DM",
	}
	Space_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"ROOM":             1,
		"DM":               2,
	}
)

Enum value maps for Space_Type.

Space_SpaceType_name, Space_SpaceType_value

var (
	Space_SpaceType_name = map[int32]string{
		0: "SPACE_TYPE_UNSPECIFIED",
		1: "SPACE",
		2: "GROUP_CHAT",
		3: "DIRECT_MESSAGE",
	}
	Space_SpaceType_value = map[string]int32{
		"SPACE_TYPE_UNSPECIFIED": 0,
		"SPACE":                  1,
		"GROUP_CHAT":             2,
		"DIRECT_MESSAGE":         3,
	}
)

Enum value maps for Space_SpaceType.

Space_SpaceThreadingState_name, Space_SpaceThreadingState_value

var (
	Space_SpaceThreadingState_name = map[int32]string{
		0: "SPACE_THREADING_STATE_UNSPECIFIED",
		2: "THREADED_MESSAGES",
		3: "GROUPED_MESSAGES",
		4: "UNTHREADED_MESSAGES",
	}
	Space_SpaceThreadingState_value = map[string]int32{
		"SPACE_THREADING_STATE_UNSPECIFIED": 0,
		"THREADED_MESSAGES":                 2,
		"GROUPED_MESSAGES":                  3,
		"UNTHREADED_MESSAGES":               4,
	}
)

Enum value maps for Space_SpaceThreadingState.

Space_PredefinedPermissionSettings_name, Space_PredefinedPermissionSettings_value

var (
	Space_PredefinedPermissionSettings_name = map[int32]string{
		0: "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED",
		1: "COLLABORATION_SPACE",
		2: "ANNOUNCEMENT_SPACE",
	}
	Space_PredefinedPermissionSettings_value = map[string]int32{
		"PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED": 0,
		"COLLABORATION_SPACE":                        1,
		"ANNOUNCEMENT_SPACE":                         2,
	}
)

Enum value maps for Space_PredefinedPermissionSettings.

Space_AccessSettings_AccessState_name, Space_AccessSettings_AccessState_value

var (
	Space_AccessSettings_AccessState_name = map[int32]string{
		0: "ACCESS_STATE_UNSPECIFIED",
		1: "PRIVATE",
		2: "DISCOVERABLE",
	}
	Space_AccessSettings_AccessState_value = map[string]int32{
		"ACCESS_STATE_UNSPECIFIED": 0,
		"PRIVATE":                  1,
		"DISCOVERABLE":             2,
	}
)

Enum value maps for Space_AccessSettings_AccessState.

SpaceNotificationSetting_NotificationSetting_name, SpaceNotificationSetting_NotificationSetting_value

var (
	SpaceNotificationSetting_NotificationSetting_name = map[int32]string{
		0: "NOTIFICATION_SETTING_UNSPECIFIED",
		1: "ALL",
		2: "MAIN_CONVERSATIONS",
		3: "FOR_YOU",
		4: "OFF",
	}
	SpaceNotificationSetting_NotificationSetting_value = map[string]int32{
		"NOTIFICATION_SETTING_UNSPECIFIED": 0,
		"ALL":                              1,
		"MAIN_CONVERSATIONS":               2,
		"FOR_YOU":                          3,
		"OFF":                              4,
	}
)

Enum value maps for SpaceNotificationSetting_NotificationSetting.

SpaceNotificationSetting_MuteSetting_name, SpaceNotificationSetting_MuteSetting_value

var (
	SpaceNotificationSetting_MuteSetting_name = map[int32]string{
		0: "MUTE_SETTING_UNSPECIFIED",
		1: "UNMUTED",
		2: "MUTED",
	}
	SpaceNotificationSetting_MuteSetting_value = map[string]int32{
		"MUTE_SETTING_UNSPECIFIED": 0,
		"UNMUTED":                  1,
		"MUTED":                    2,
	}
)

Enum value maps for SpaceNotificationSetting_MuteSetting.

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.

ChatService_ServiceDesc

var ChatService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.chat.v1.ChatService",
	HandlerType: (*ChatServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMessage",
			Handler:    _ChatService_CreateMessage_Handler,
		},
		{
			MethodName: "ListMessages",
			Handler:    _ChatService_ListMessages_Handler,
		},
		{
			MethodName: "ListMemberships",
			Handler:    _ChatService_ListMemberships_Handler,
		},
		{
			MethodName: "GetMembership",
			Handler:    _ChatService_GetMembership_Handler,
		},
		{
			MethodName: "GetMessage",
			Handler:    _ChatService_GetMessage_Handler,
		},
		{
			MethodName: "UpdateMessage",
			Handler:    _ChatService_UpdateMessage_Handler,
		},
		{
			MethodName: "DeleteMessage",
			Handler:    _ChatService_DeleteMessage_Handler,
		},
		{
			MethodName: "GetAttachment",
			Handler:    _ChatService_GetAttachment_Handler,
		},
		{
			MethodName: "UploadAttachment",
			Handler:    _ChatService_UploadAttachment_Handler,
		},
		{
			MethodName: "ListSpaces",
			Handler:    _ChatService_ListSpaces_Handler,
		},
		{
			MethodName: "SearchSpaces",
			Handler:    _ChatService_SearchSpaces_Handler,
		},
		{
			MethodName: "GetSpace",
			Handler:    _ChatService_GetSpace_Handler,
		},
		{
			MethodName: "CreateSpace",
			Handler:    _ChatService_CreateSpace_Handler,
		},
		{
			MethodName: "SetUpSpace",
			Handler:    _ChatService_SetUpSpace_Handler,
		},
		{
			MethodName: "UpdateSpace",
			Handler:    _ChatService_UpdateSpace_Handler,
		},
		{
			MethodName: "DeleteSpace",
			Handler:    _ChatService_DeleteSpace_Handler,
		},
		{
			MethodName: "CompleteImportSpace",
			Handler:    _ChatService_CompleteImportSpace_Handler,
		},
		{
			MethodName: "FindDirectMessage",
			Handler:    _ChatService_FindDirectMessage_Handler,
		},
		{
			MethodName: "CreateMembership",
			Handler:    _ChatService_CreateMembership_Handler,
		},
		{
			MethodName: "UpdateMembership",
			Handler:    _ChatService_UpdateMembership_Handler,
		},
		{
			MethodName: "DeleteMembership",
			Handler:    _ChatService_DeleteMembership_Handler,
		},
		{
			MethodName: "CreateReaction",
			Handler:    _ChatService_CreateReaction_Handler,
		},
		{
			MethodName: "ListReactions",
			Handler:    _ChatService_ListReactions_Handler,
		},
		{
			MethodName: "DeleteReaction",
			Handler:    _ChatService_DeleteReaction_Handler,
		},
		{
			MethodName: "CreateCustomEmoji",
			Handler:    _ChatService_CreateCustomEmoji_Handler,
		},
		{
			MethodName: "GetCustomEmoji",
			Handler:    _ChatService_GetCustomEmoji_Handler,
		},
		{
			MethodName: "ListCustomEmojis",
			Handler:    _ChatService_ListCustomEmojis_Handler,
		},
		{
			MethodName: "DeleteCustomEmoji",
			Handler:    _ChatService_DeleteCustomEmoji_Handler,
		},
		{
			MethodName: "GetSpaceReadState",
			Handler:    _ChatService_GetSpaceReadState_Handler,
		},
		{
			MethodName: "UpdateSpaceReadState",
			Handler:    _ChatService_UpdateSpaceReadState_Handler,
		},
		{
			MethodName: "GetThreadReadState",
			Handler:    _ChatService_GetThreadReadState_Handler,
		},
		{
			MethodName: "GetSpaceEvent",
			Handler:    _ChatService_GetSpaceEvent_Handler,
		},
		{
			MethodName: "ListSpaceEvents",
			Handler:    _ChatService_ListSpaceEvents_Handler,
		},
		{
			MethodName: "GetSpaceNotificationSetting",
			Handler:    _ChatService_GetSpaceNotificationSetting_Handler,
		},
		{
			MethodName: "UpdateSpaceNotificationSetting",
			Handler:    _ChatService_UpdateSpaceNotificationSetting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/chat/v1/chat_service.proto",
}

ChatService_ServiceDesc is the grpc.ServiceDesc for ChatService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

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_notification_setting_proto

var File_google_chat_v1_space_notification_setting_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.ServiceRegistrar, 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 (*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) Enum

func (ActionResponse_ResponseType) EnumDescriptor

func (ActionResponse_ResponseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionResponse_ResponseType.Descriptor instead.

func (ActionResponse_ResponseType) Number

func (ActionResponse_ResponseType) String

func (ActionResponse_ResponseType) Type

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 (*ActionResponse_SelectionItems) ProtoMessage

func (*ActionResponse_SelectionItems) ProtoMessage()

func (*ActionResponse_SelectionItems) ProtoReflect

func (*ActionResponse_SelectionItems) Reset

func (x *ActionResponse_SelectionItems) Reset()

func (*ActionResponse_SelectionItems) 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
}

For selectionInput widgets, returns autocomplete suggestions for a multiselect menu.

func (*ActionResponse_UpdatedWidget) Descriptor

func (*ActionResponse_UpdatedWidget) Descriptor() ([]byte, []int)

Deprecated: Use ActionResponse_UpdatedWidget.ProtoReflect.Descriptor instead.

func (*ActionResponse_UpdatedWidget) GetSuggestions

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 (*ActionResponse_UpdatedWidget) Reset

func (x *ActionResponse_UpdatedWidget) Reset()

func (*ActionResponse_UpdatedWidget) 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
	//	*Annotation_CustomEmojiMetadata
	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) GetCustomEmojiMetadata

func (x *Annotation) GetCustomEmojiMetadata() *CustomEmojiMetadata

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.

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
	// A custom emoji annotation.
	AnnotationType_CUSTOM_EMOJI AnnotationType = 4
)

func (AnnotationType) Descriptor

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 (AnnotationType) String

func (x AnnotationType) String() string

func (AnnotationType) Type

Annotation_CustomEmojiMetadata

type Annotation_CustomEmojiMetadata struct {
	// The metadata for a custom emoji.
	CustomEmojiMetadata *CustomEmojiMetadata `protobuf:"bytes,7,opt,name=custom_emoji_metadata,json=customEmojiMetadata,proto3,oneof"`
}

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 {

	// Optional. 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 {

	// Optional. 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"`
	// Optional. 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 {
	// Optional. A reference to the attachment data. This field is used to
	// create or update messages with attachments, or 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) Enum

func (Attachment_Source) EnumDescriptor

func (Attachment_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use Attachment_Source.Descriptor instead.

func (Attachment_Source) Number

func (Attachment_Source) String

func (x Attachment_Source) String() string

func (Attachment_Source) Type

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.

Card builder

func (*CardWithId) Descriptor

func (*CardWithId) Descriptor() ([]byte, []int)

Deprecated: Use CardWithId.ProtoReflect.Descriptor instead.

func (*CardWithId) GetCard

func (x *CardWithId) GetCard() *v1.Card

func (*CardWithId) GetCardId

func (x *CardWithId) GetCardId() string

func (*CardWithId) ProtoMessage

func (*CardWithId) ProtoMessage()

func (*CardWithId) ProtoReflect

func (x *CardWithId) ProtoReflect() protoreflect.Message

func (*CardWithId) Reset

func (x *CardWithId) Reset()

func (*CardWithId) String

func (x *CardWithId) String() string

ChatServiceClient

type ChatServiceClient interface {
	// Creates a message in a Google Chat space. For an example, see [Send a
	// message](https://developers.google.com/workspace/chat/create-messages).
	//
	// The `create()` method requires either [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// or [app
	// authentication](https://developers.google.com/workspace/chat/authorize-import).
	// Chat attributes the message sender differently depending on the type of
	// authentication that you use in your request.
	//
	// The following image shows how Chat attributes a message when you use app
	// authentication. Chat displays the Chat app as the message
	// sender. The content of the message can contain text (`text`), cards
	// (`cardsV2`), and accessory widgets (`accessoryWidgets`).
	//
	// ![Message sent with app
	// authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg)
	//
	// The following image shows how Chat attributes a message when you use user
	// authentication. Chat displays the user as the message sender and attributes
	// the Chat app to the message by displaying its name. The content of message
	// can only contain text (`text`).
	//
	// ![Message sent with user
	// authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
	//
	// The maximum message size, including the message contents, is 32,000 bytes.
	//
	// For
	// [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
	// requests, the response doesn't contain the full message. The response only
	// populates the `name` and `thread.name` fields in addition to the
	// information that was in the request.
	CreateMessage(ctx context.Context, in *CreateMessageRequest, opts ...grpc.CallOption) (*Message, error)
	// Lists messages in a space that the caller is a member of, including
	// messages from blocked members and spaces. If you list messages from a
	// space with no messages, the response is an empty object. When using a
	// REST/HTTP interface, the response contains an empty JSON object, `{}`.
	// For an example, see
	// [List
	// messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	ListMessages(ctx context.Context, in *ListMessagesRequest, opts ...grpc.CallOption) (*ListMessagesResponse, error)
	// Lists memberships in a space. For an example, see [List users and Google
	// Chat apps in a
	// space](https://developers.google.com/workspace/chat/list-members). Listing
	// memberships with [app
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// lists memberships in spaces that the Chat app has
	// access to, but excludes Chat app memberships,
	// including its own. Listing memberships with
	// [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// lists memberships in spaces that the authenticated user has access to.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	//
	// To list all named spaces by Google Workspace organization, use the
	// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
	// method using Workspace administrator privileges instead.
	ListSpaces(ctx context.Context, in *ListSpacesRequest, opts ...grpc.CallOption) (*ListSpacesResponse, error)
	// Returns a list of spaces in a Google Workspace organization based on an
	// administrator's search.
	//
	// Requires [user
	// authentication with administrator
	// privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
	// In the request, set `use_admin_access` to `true`.
	SearchSpaces(ctx context.Context, in *SearchSpacesRequest, opts ...grpc.CallOption) (*SearchSpacesResponse, error)
	// Returns details about a space. For an example, see
	// [Get details about a
	// space](https://developers.google.com/workspace/chat/get-spaces).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	GetSpace(ctx context.Context, in *GetSpaceRequest, opts ...grpc.CallOption) (*Space, error)
	// Creates a space with no members. Can be used to create a named space, or a
	// group chat in `Import mode`. 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.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	//
	// When authenticating as an app, the `space.customer` field must be set in
	// the request.
	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 `[email protected]` is `123456789`,
	// you can add the user to the space by setting the `membership.member.name`
	// to `users/[email protected]` 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 `[email protected]`, 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.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// 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 [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.
	//
	// 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.
	//
	// // Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	FindDirectMessage(ctx context.Context, in *FindDirectMessageRequest, opts ...grpc.CallOption) (*Space, error)
	// Creates a membership for the calling Chat app, a user, or a Google Group.
	// Creating memberships for other Chat apps isn't supported.
	// When creating a membership, if the specified member has their auto-accept
	// policy turned off, then they're invited, and must accept the space
	// invitation before joining. Otherwise, creating a membership adds the member
	// directly to the specified space.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	//
	// For example usage, see:
	//
	// - [Invite or add a user to a
	// space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
	//
	// - [Invite or add a Google Group to a
	// space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
	//
	// - [Add the Chat app to a
	// space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
	CreateMembership(ctx context.Context, in *CreateMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
	// Updates a membership. For an example, see [Update a user's membership in
	// a space](https://developers.google.com/workspace/chat/update-members).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	DeleteMembership(ctx context.Context, in *DeleteMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
	// Creates a reaction and adds it to a message. 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. 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)
	// Creates a custom emoji.
	//
	// Custom emojis are only available for Google Workspace accounts, and the
	// administrator must turn custom emojis on for the organization. For more
	// information, see [Learn about custom emojis in Google
	// Chat](https://support.google.com/chat/answer/12800149) and
	// [Manage custom emoji
	// permissions](https://support.google.com/a/answer/12850085).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	CreateCustomEmoji(ctx context.Context, in *CreateCustomEmojiRequest, opts ...grpc.CallOption) (*CustomEmoji, error)
	// Returns details about a custom emoji.
	//
	// Custom emojis are only available for Google Workspace accounts, and the
	// administrator must turn custom emojis on for the organization. For more
	// information, see [Learn about custom emojis in Google
	// Chat](https://support.google.com/chat/answer/12800149) and
	// [Manage custom emoji
	// permissions](https://support.google.com/a/answer/12850085).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	GetCustomEmoji(ctx context.Context, in *GetCustomEmojiRequest, opts ...grpc.CallOption) (*CustomEmoji, error)
	// Lists custom emojis visible to the authenticated user.
	//
	// Custom emojis are only available for Google Workspace accounts, and the
	// administrator must turn custom emojis on for the organization. For more
	// information, see [Learn about custom emojis in Google
	// Chat](https://support.google.com/chat/answer/12800149) and
	// [Manage custom emoji
	// permissions](https://support.google.com/a/answer/12850085).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	ListCustomEmojis(ctx context.Context, in *ListCustomEmojisRequest, opts ...grpc.CallOption) (*ListCustomEmojisResponse, error)
	// Deletes a custom emoji. By default, users can only delete custom emoji they
	// created. [Emoji managers](https://support.google.com/a/answer/12850085)
	// assigned by the administrator can delete any custom emoji in the
	// organization. See [Learn about custom emojis in Google
	// Chat](https://support.google.com/chat/answer/12800149).
	//
	// Custom emojis are only available for Google Workspace accounts, and the
	// administrator must turn custom emojis on for the organization. For more
	// information, see [Learn about custom emojis in Google
	// Chat](https://support.google.com/chat/answer/12800149) and
	// [Manage custom emoji
	// permissions](https://support.google.com/a/answer/12850085).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	DeleteCustomEmoji(ctx context.Context, in *DeleteCustomEmojiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Returns details about a user's read state within a space, used to identify
	// read and unread messages. For an example, see [Get details about a user's
	// space read
	// state](https://developers.google.com/workspace/chat/get-space-read-state).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	GetSpaceReadState(ctx context.Context, in *GetSpaceReadStateRequest, opts ...grpc.CallOption) (*SpaceReadState, error)
	// Updates a user's read state within a space, used to identify read and
	// unread messages. For an example, see [Update a user's space read
	// state](https://developers.google.com/workspace/chat/update-space-read-state).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	UpdateSpaceReadState(ctx context.Context, in *UpdateSpaceReadStateRequest, opts ...grpc.CallOption) (*SpaceReadState, error)
	// Returns details about a user's read state within a thread, used to identify
	// read and unread messages. For an example, see [Get details about a user's
	// thread read
	// state](https://developers.google.com/workspace/chat/get-thread-read-state).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	GetThreadReadState(ctx context.Context, in *GetThreadReadStateRequest, opts ...grpc.CallOption) (*ThreadReadState, error)
	// Returns an event from a Google Chat space. The [event
	// payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
	// contains the most recent version of the resource that changed. For example,
	// if you request an event about a new message but the message was later
	// updated, the server returns the updated `Message` resource in the event
	// payload.
	//
	// Note: The `permissionSettings` field is not returned in the Space
	// object of the Space event data for this request.
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	// To get an event, the authenticated user must be a member of the space.
	//
	// For an example, see [Get details about an
	// event from a Google Chat
	// space](https://developers.google.com/workspace/chat/get-space-event).
	GetSpaceEvent(ctx context.Context, in *GetSpaceEventRequest, opts ...grpc.CallOption) (*SpaceEvent, error)
	// Lists events from a Google Chat space. For each event, the
	// [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
	// contains the most recent version of the Chat resource. For example, if you
	// list events about new space members, the server returns `Membership`
	// resources that contain the latest membership details. If new members were
	// removed during the requested period, the event payload contains an empty
	// `Membership` resource.
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	// To list events, the authenticated user must be a member of the space.
	//
	// For an example, see [List events from a Google Chat
	// space](https://developers.google.com/workspace/chat/list-space-events).
	ListSpaceEvents(ctx context.Context, in *ListSpaceEventsRequest, opts ...grpc.CallOption) (*ListSpaceEventsResponse, error)
	// Gets the space notification setting. For an example, see [Get the
	// caller's space notification
	// setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	GetSpaceNotificationSetting(ctx context.Context, in *GetSpaceNotificationSettingRequest, opts ...grpc.CallOption) (*SpaceNotificationSetting, error)
	// Updates the space notification setting. For an example, see [Update
	// the caller's space notification
	// setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	UpdateSpaceNotificationSetting(ctx context.Context, in *UpdateSpaceNotificationSettingRequest, opts ...grpc.CallOption) (*SpaceNotificationSetting, error)
}

ChatServiceClient is the client API for ChatService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewChatServiceClient

func NewChatServiceClient(cc grpc.ClientConnInterface) ChatServiceClient

ChatServiceServer

type ChatServiceServer interface {
	// Creates a message in a Google Chat space. For an example, see [Send a
	// message](https://developers.google.com/workspace/chat/create-messages).
	//
	// The `create()` method requires either [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// or [app
	// authentication](https://developers.google.com/workspace/chat/authorize-import).
	// Chat attributes the message sender differently depending on the type of
	// authentication that you use in your request.
	//
	// The following image shows how Chat attributes a message when you use app
	// authentication. Chat displays the Chat app as the message
	// sender. The content of the message can contain text (`text`), cards
	// (`cardsV2`), and accessory widgets (`accessoryWidgets`).
	//
	// ![Message sent with app
	// authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg)
	//
	// The following image shows how Chat attributes a message when you use user
	// authentication. Chat displays the user as the message sender and attributes
	// the Chat app to the message by displaying its name. The content of message
	// can only contain text (`text`).
	//
	// ![Message sent with user
	// authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
	//
	// The maximum message size, including the message contents, is 32,000 bytes.
	//
	// For
	// [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
	// requests, the response doesn't contain the full message. The response only
	// populates the `name` and `thread.name` fields in addition to the
	// information that was in the request.
	CreateMessage(context.Context, *CreateMessageRequest) (*Message, error)
	// Lists messages in a space that the caller is a member of, including
	// messages from blocked members and spaces. If you list messages from a
	// space with no messages, the response is an empty object. When using a
	// REST/HTTP interface, the response contains an empty JSON object, `{}`.
	// For an example, see
	// [List
	// messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
	//
	// Requires [user
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
	ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
	// Lists memberships in a space. For an example, see [List users and Google
	// Chat apps in a
	// space](https://developers.google.com/workspace/chat/list-members). Listing
	// memberships with [app
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// lists memberships in spaces that the Chat app has
	// access to, but excludes Chat app memberships,
	// including its own. Listing memberships with
	// [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// lists memberships in spaces that the authenticated user has access to.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	//
	// To list all named spaces by Google Workspace organization, use the
	// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
	// method using Workspace administrator privileges instead.
	ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
	// Returns a list of spaces in a Google Workspace organization based on an
	// administrator's search.
	//
	// Requires [user
	// authentication with administrator
	// privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
	// In the request, set `use_admin_access` to `true`.
	SearchSpaces(context.Context, *SearchSpacesRequest) (*SearchSpacesResponse, error)
	// Returns details about a space. For an example, see
	// [Get details about a
	// space](https://developers.google.com/workspace/chat/get-spaces).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	GetSpace(context.Context, *GetSpaceRequest) (*Space, error)
	// Creates a space with no members. Can be used to create a named space, or a
	// group chat in `Import mode`. 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.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	//
	// When authenticating as an app, the `space.customer` field must be set in
	// the request.
	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 `[email protected]` is `123456789`,
	// you can add the user to the space by setting the `membership.member.name`
	// to `users/[email protected]` 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 `[email protected]`, 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.
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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).
	//
	// Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
	// in [Developer Preview](https://developers.google.com/workspace/preview)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// You can authenticate and authorize this method with administrator
	// privileges by setting the `use_admin_access` field in the request.
	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](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	// 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 [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.
	//
	// 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.
	//
	// // Supports the following types of
	// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
	//
	// - [App
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
	//
	// - [User
	// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	FindDirectMessage(context.Context, *FindDirectMessageRequest) (*Space,