chatpb

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	RichLinkMetadata_RichLinkType_name = map[int32]string{
		0: "RICH_LINK_TYPE_UNSPECIFIED",
		1: "DRIVE_FILE",
	}
	RichLinkMetadata_RichLinkType_value = map[string]int32{
		"RICH_LINK_TYPE_UNSPECIFIED": 0,
		"DRIVE_FILE":                 1,
	}
)

Enum value maps for RichLinkMetadata_RichLinkType.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_google_chat_v1_action_status_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_annotation_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_attachment_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_chat_service_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_contextual_addon_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_deletion_metadata_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_group_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_history_state_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_matched_url_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_membership_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_message_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_reaction_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_slash_command_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_space_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_space_read_state_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_space_setup_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_thread_read_state_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_user_proto protoreflect.FileDescriptor
View Source
var File_google_chat_v1_widgets_proto protoreflect.FileDescriptor

Functions

func RegisterChatServiceServer

func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)

Types

type 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](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).

func (*AccessoryWidget) Descriptor deprecated

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

type AccessoryWidget_ButtonList

type AccessoryWidget_ButtonList struct {
	// A list of buttons.
	ButtonList *v1.ButtonList `protobuf:"bytes,1,opt,name=button_list,json=buttonList,proto3,oneof"`
}

type 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 deprecated

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

type ActionResponse_ResponseType

type ActionResponse_ResponseType int32

The type of Chat app response.

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 deprecated

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

Deprecated: Use ActionResponse_ResponseType.Descriptor instead.

func (ActionResponse_ResponseType) Number

func (ActionResponse_ResponseType) String

func (ActionResponse_ResponseType) Type

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 deprecated

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

type 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 deprecated

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

type ActionResponse_UpdatedWidget_Suggestions

type ActionResponse_UpdatedWidget_Suggestions struct {
	// List of widget autocomplete results
	Suggestions *ActionResponse_SelectionItems `protobuf:"bytes,1,opt,name=suggestions,proto3,oneof"`
}

type 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](https://developers.google.com/workspace/chat/dialogs).

func (*ActionStatus) Descriptor deprecated

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

type 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](https://developers.google.com/workspace/chat/format-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 deprecated

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

type 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
)

func (AnnotationType) Descriptor

func (AnnotationType) Enum

func (x AnnotationType) Enum() *AnnotationType

func (AnnotationType) EnumDescriptor deprecated

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

Deprecated: Use AnnotationType.Descriptor instead.

func (AnnotationType) Number

func (AnnotationType) String

func (x AnnotationType) String() string

func (AnnotationType) Type

type 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"`
}

type 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"`
}

type Annotation_UserMention

type Annotation_UserMention struct {
	// The metadata of user mention.
	UserMention *UserMentionMetadata `protobuf:"bytes,4,opt,name=user_mention,json=userMention,proto3,oneof"`
}

type 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 deprecated

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

type Attachment

type Attachment struct {

	// Resource name of the attachment, in the form
	// `spaces/*/messages/*/attachments/*`.
	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 deprecated

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

type 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 `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

A reference to the attachment data.

func (*AttachmentDataRef) Descriptor deprecated

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

type 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"`
}

type 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"`
}

type Attachment_Source

type Attachment_Source int32

The source of the attachment.

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 deprecated

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

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](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) in a Google Chat message.

Only Chat apps can create cards. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the message can't contain cards.

[Card builder](https://addons.gsuite.google.com/uikit/builder)

func (*CardWithId) Descriptor deprecated

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

type 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.
	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`.
	//
	// 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.
	//
	//   - 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`.
	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)
}

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.

type 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.
	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`.
	//
	// 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.
	//
	//   - 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`.
	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)
}

ChatServiceServer is the server API for ChatService service.

type 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 deprecated

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

func (x *CompleteImportSpaceRequest) Reset()

func (*CompleteImportSpaceRequest) String

func (x *CompleteImportSpaceRequest) String() string

type 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 deprecated

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

func (x *CompleteImportSpaceResponse) Reset()

func (*CompleteImportSpaceResponse) String

func (x *CompleteImportSpaceResponse) String() string

type ContextualAddOnMarkup

type ContextualAddOnMarkup struct {
	// contains filtered or unexported fields
}

The markup for developers to specify the contents of a contextual AddOn.

func (*ContextualAddOnMarkup) Descriptor deprecated

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

type 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 deprecated

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

Deprecated: Use ContextualAddOnMarkup_Card.ProtoReflect.Descriptor instead.

func (*ContextualAddOnMarkup_Card) GetCardActions

func (*ContextualAddOnMarkup_Card) GetHeader

func (*ContextualAddOnMarkup_Card) GetName

func (x *ContextualAddOnMarkup_Card) GetName() string

func (*ContextualAddOnMarkup_Card) GetSections

func (*ContextualAddOnMarkup_Card) ProtoMessage

func (*ContextualAddOnMarkup_Card) ProtoMessage()

func (*ContextualAddOnMarkup_Card) ProtoReflect

func (*ContextualAddOnMarkup_Card) Reset

func (x *ContextualAddOnMarkup_Card) Reset()

func (*ContextualAddOnMarkup_Card) String

func (x *ContextualAddOnMarkup_Card) String() string

type 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 deprecated

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

func (*ContextualAddOnMarkup_Card_CardAction) ProtoMessage()

func (*ContextualAddOnMarkup_Card_CardAction) ProtoReflect

func (*ContextualAddOnMarkup_Card_CardAction) Reset

func (*ContextualAddOnMarkup_Card_CardAction) String

type ContextualAddOnMarkup_Card_CardHeader

type ContextualAddOnMarkup_Card_CardHeader struct {

	// The title must be specified. The header has a fixed height: if both a
	// title and subtitle is specified, each takes up one line. If only the
	// title is specified, it takes up both lines.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// The subtitle of the card header.
	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
	// The image's type (for example, square border or circular border).
	ImageStyle ContextualAddOnMarkup_Card_CardHeader_ImageStyle `` /* 161-byte string literal not displayed */
	// The URL of the image in the card header.
	ImageUrl string `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// contains filtered or unexported fields
}

func (*ContextualAddOnMarkup_Card_CardHeader) Descriptor deprecated

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

Deprecated: Use ContextualAddOnMarkup_Card_CardHeader.ProtoReflect.Descriptor instead.

func (*ContextualAddOnMarkup_Card_CardHeader) GetImageStyle

func (*ContextualAddOnMarkup_Card_CardHeader) GetImageUrl

func (*ContextualAddOnMarkup_Card_CardHeader) GetSubtitle

func (*ContextualAddOnMarkup_Card_CardHeader) GetTitle

func (*ContextualAddOnMarkup_Card_CardHeader) ProtoMessage

func (*ContextualAddOnMarkup_Card_CardHeader) ProtoMessage()

func (*ContextualAddOnMarkup_Card_CardHeader) ProtoReflect

func (*ContextualAddOnMarkup_Card_CardHeader) Reset

func (*ContextualAddOnMarkup_Card_CardHeader) String

type ContextualAddOnMarkup_Card_CardHeader_ImageStyle

type ContextualAddOnMarkup_Card_CardHeader_ImageStyle int32
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) Enum

func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) EnumDescriptor deprecated

Deprecated: Use ContextualAddOnMarkup_Card_CardHeader_ImageStyle.Descriptor instead.

func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Number

func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) String

func (ContextualAddOnMarkup_Card_CardHeader_ImageStyle) Type

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 deprecated

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

Deprecated: Use ContextualAddOnMarkup_Card_Section.ProtoReflect.Descriptor instead.

func (*ContextualAddOnMarkup_Card_Section) GetHeader

func (*ContextualAddOnMarkup_Card_Section) GetWidgets

func (*ContextualAddOnMarkup_Card_Section) ProtoMessage

func (*ContextualAddOnMarkup_Card_Section) ProtoMessage()

func (*ContextualAddOnMarkup_Card_Section) ProtoReflect

func (*ContextualAddOnMarkup_Card_Section) Reset

func (*ContextualAddOnMarkup_Card_Section) String

type 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 deprecated

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

type CreateMessageRequest

type CreateMessageRequest struct {

	// Required. The resource name of the space in which to create a message.
	//
	// Format: `spaces/{space}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Message body.
	Message *Message `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// Optional. Deprecated: Use
	// [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the
	// thread. Supports up to 4000 characters. To start or add to a thread, create
	// a message and specify a `threadKey` or the
	// [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or
	// reply to a message
	// thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).
	//
	// Deprecated: Marked as deprecated in google/chat/v1/message.proto.
	ThreadKey string `protobuf:"bytes,6,opt,name=thread_key,json=threadKey,proto3" json:"thread_key,omitempty"`
	// Optional. A unique request ID for this message. Specifying an existing
	// request ID returns the message created with that ID instead of creating a
	// new message.
	RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Optional. Specifies whether a message starts a thread or replies to one.
	// Only supported in named spaces.
	MessageReplyOption CreateMessageRequest_MessageReplyOption `` /* 178-byte string literal not displayed */
	// Optional. A custom ID for a message. Lets Chat apps get, update, or delete
	// a message without needing to store the system-assigned ID in the message's
	// resource name (represented in the message `name` field).
	//
	// The value for this field must meet the following requirements:
	//
	//   - Begins with `client-`. For example, `client-custom-name` is a valid
	//     custom ID, but `custom-name` is not.
	//   - Contains up to 63 characters and only lowercase letters, numbers, and
	//     hyphens.
	//   - Is unique within a space. A Chat app can't use the same custom ID for
	//
	// different messages.
	//
	// For details, see [Name a
	// message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
	MessageId string `protobuf:"bytes,9,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

Creates a message.

func (*CreateMessageRequest) Descriptor deprecated

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 (*CreateMessageRequest) GetParent

func (x *CreateMessageRequest) GetParent() string

func (*CreateMessageRequest) GetRequestId

func (x *CreateMessageRequest) GetRequestId() string

func (*CreateMessageRequest) GetThreadKey deprecated

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

type CreateMessageRequest_MessageReplyOption

type CreateMessageRequest_MessageReplyOption int32

Specifies how to reply to a message. More states might be added in the future.

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) Enum

func (CreateMessageRequest_MessageReplyOption) EnumDescriptor deprecated

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

Deprecated: Use CreateMessageRequest_MessageReplyOption.Descriptor instead.

func (CreateMessageRequest_MessageReplyOption) Number

func (CreateMessageRequest_MessageReplyOption) String

func (CreateMessageRequest_MessageReplyOption) Type

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type DeletionMetadata

type DeletionMetadata struct {

	// Indicates who deleted the message.
	DeletionType DeletionMetadata_DeletionType `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about a deleted message. A message is deleted when `delete_time` is set.

func (*DeletionMetadata) Descriptor deprecated

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

type DeletionMetadata_DeletionType

type DeletionMetadata_DeletionType int32

Who deleted the message and how it was deleted.

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) Enum

func (DeletionMetadata_DeletionType) EnumDescriptor deprecated

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

Deprecated: Use DeletionMetadata_DeletionType.Descriptor instead.

func (DeletionMetadata_DeletionType) Number

func (DeletionMetadata_DeletionType) String

func (DeletionMetadata_DeletionType) Type

type 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

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

Deprecated: Use Dialog.ProtoReflect.Descriptor instead.

func (*Dialog) GetBody

func (x *Dialog) GetBody() *v1.Card

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

func (x *Dialog) String() string

type 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](https://developers.google.com/workspace/chat/dialogs) and request status code.

func (*DialogAction) Descriptor deprecated

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

type 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"`
}

type 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 deprecated

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

type 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 deprecated

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

type 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

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

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 (x *Emoji) GetUnicode() string

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

func (x *Emoji) String() string

type 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 deprecated

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

type Emoji_CustomEmoji

type Emoji_CustomEmoji struct {
	// Output only. A custom emoji.
	CustomEmoji *CustomEmoji `protobuf:"bytes,2,opt,name=custom_emoji,json=customEmoji,proto3,oneof"`
}

type Emoji_Unicode

type Emoji_Unicode struct {
	// A basic emoji represented by a unicode string.
	Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3,oneof"`
}

type 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 deprecated

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

type GetAttachmentRequest

type GetAttachmentRequest struct {

	// Required. Resource name of the attachment, in the form
	// `spaces/*/messages/*/attachments/*`.
	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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type GetSpaceRequest

type GetSpaceRequest struct {

	// Required. Resource name of the space, in the form "spaces/*".
	//
	// 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 deprecated

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

type 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 deprecated

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

func (x *GetThreadReadStateRequest) Reset()

func (*GetThreadReadStateRequest) String

func (x *GetThreadReadStateRequest) String() string

type 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

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetName

func (x *Group) GetName() string

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

func (x *Group) String() string

type HistoryState

type HistoryState int32

The history state for messages and spaces. Specifies how long messages and conversation threads are kept after creation.

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) Enum

func (x HistoryState) Enum() *HistoryState

func (HistoryState) EnumDescriptor deprecated

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

Deprecated: Use HistoryState.Descriptor instead.

func (HistoryState) Number

func (HistoryState) String

func (x HistoryState) String() string

func (HistoryState) Type

type 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`.
	//
	// To filter by both role and type, use the `AND` operator. To filter by
	// either role or type, use the `OR` operator.
	//
	// For example, the following queries are valid:
	//
	// “`
	// role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
	// member.type = "HUMAN" AND role = "ROLE_MANAGER"
	// “`
	//
	// 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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](https://developers.google.com/chat/how-tos/preview-links).

func (*MatchedUrl) Descriptor deprecated

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

type 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 deprecated

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 (*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

type Membership_GroupMember

type Membership_GroupMember struct {
	// The Google Group the membership corresponds to.
	// Only supports read operations. Other operations, like
	// creating or updating a membership, aren't currently supported.
	GroupMember *Group `protobuf:"bytes,5,opt,name=group_member,json=groupMember,proto3,oneof"`
}

type 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"`
}

type 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.

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) Enum

func (Membership_MembershipRole) EnumDescriptor deprecated

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

Deprecated: Use Membership_MembershipRole.Descriptor instead.

func (Membership_MembershipRole) Number

func (Membership_MembershipRole) String

func (x Membership_MembershipRole) String() string

func (Membership_MembershipRole) Type

type Membership_MembershipState

type Membership_MembershipState int32

Specifies the member's relationship with a space. Other membership states might be supported in the future.

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) Enum

func (Membership_MembershipState) EnumDescriptor deprecated

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

Deprecated: Use Membership_MembershipState.Descriptor instead.

func (Membership_MembershipState) Number

func (Membership_MembershipState) String

func (Membership_MembershipState) Type

type Message

type Message struct {

	// Resource name of the message.
	//
	// Format: `spaces/{space}/messages/{message}`
	//
	// Where `{space}` is the ID of the space where the message is posted and
	// `{message}` is a system-assigned ID for the message. For example,
	// `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`.
	//
	// If you set a custom ID when you create a message, you can use this ID to
	// specify the message in a request by replacing `{message}` with the value
	// from the `clientAssignedMessageId` field. For example,
	// `spaces/AAAAAAAAAAA/messages/client-custom-name`. 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"`
	// Output only. The user who created the message.
	// 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`.
	Sender *User `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// Optional. Immutable. For spaces created in Chat, the time at which the
	// message was created. This field is output only, except when used in import
	// mode spaces.
	//
	// For import mode spaces, set this field to the historical timestamp at which
	// the message was created in the source in order to preserve the original
	// creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time at which the message was last edited by a user. If
	// the message has never been edited, this field is empty.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// Output only. The time at which the message was deleted in
	// Google Chat. If the message is never deleted, this field is empty.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// Plain-text body of the message. The first link to an image, video, or web
	// page generates a
	// [preview chip](https://developers.google.com/workspace/chat/preview-links).
	// You can also [@mention a Google Chat
	// user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
	// or everyone in the space.
	//
	// To learn about creating text messages, see [Send a text
	// message](https://developers.google.com/workspace/chat/create-messages#create-text-messages).
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	// Output only. Contains the message `text` with markups added to communicate
	// formatting. This field might not capture all formatting visible in the UI,
	// but includes the following:
	//
	// * [Markup
	// syntax](https://developers.google.com/workspace/chat/format-messages)
	// for bold, italic, strikethrough, monospace, monospace block, and bulleted
	// list.
	//
	// * [User
	// mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention)
	// using the format `<users/{user}>`.
	//
	// * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the
	// first string is the URL and the second is the rendered text—for example,
	// `<http://example.com|custom text>`.
	//
	// * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`.
	// This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning
	// face emoji.
	//
	// For more information, see [View text formatting sent in a
	// message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message)
	FormattedText string `protobuf:"bytes,43,opt,name=formatted_text,json=formattedText,proto3" json:"formatted_text,omitempty"`
	// Deprecated: Use `cards_v2` instead.
	//
	// Rich, formatted, and interactive cards that you can use to display UI
	// elements such as: formatted texts, buttons, and clickable images. Cards are
	// normally displayed below the plain-text body of the message. `cards` and
	// `cards_v2` can have a maximum size of 32 KB.
	//
	// Deprecated: Marked as deprecated in google/chat/v1/message.proto.
	Cards []*ContextualAddOnMarkup_Card `protobuf:"bytes,5,rep,name=cards,proto3" json:"cards,omitempty"`
	// An array of
	// [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
	//
	// Only Chat apps can create cards. If your Chat app [authenticates as a
	// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
	// the messages can't contain cards.
	//
	// To learn about cards and how to create them, see [Send card
	// messages](https://developers.google.com/workspace/chat/create-messages#create).
	//
	// [Card builder](https://addons.gsuite.google.com/uikit/builder)
	CardsV2 []*CardWithId `protobuf:"bytes,22,rep,name=cards_v2,json=cardsV2,proto3" json:"cards_v2,omitempty"`
	// Output only. Annotations associated with the `text` in this message.
	Annotations []*Annotation `protobuf:"bytes,10,rep,name=annotations,proto3" json:"annotations,omitempty"`
	// The thread the message belongs to. For example usage, see
	// [Start or reply to a message
	// thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).
	Thread *Thread `protobuf:"bytes,11,opt,name=thread,proto3" json:"thread,omitempty"`
	// If your Chat app [authenticates as a
	// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
	// the output populates the
	// [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
	// `name`.
	Space *Space `protobuf:"bytes,12,opt,name=space,proto3" json:"space,omitempty"`
	// A plain-text description of the message's cards, used when the actual cards
	// can't be displayed—for example, mobile notifications.
	FallbackText string `protobuf:"bytes,13,opt,name=fallback_text,json=fallbackText,proto3" json:"fallback_text,omitempty"`
	// Input only. Parameters that a Chat app can use to configure how its
	// response is posted.
	ActionResponse *ActionResponse `protobuf:"bytes,14,opt,name=action_response,json=actionResponse,proto3" json:"action_response,omitempty"`
	// Output only. Plain-text body of the message with all Chat app mentions
	// stripped out.
	ArgumentText string `protobuf:"bytes,15,opt,name=argument_text,json=argumentText,proto3" json:"argument_text,omitempty"`
	// Output only. Slash command information, if applicable.
	SlashCommand *SlashCommand `protobuf:"bytes,17,opt,name=slash_command,json=slashCommand,proto3" json:"slash_command,omitempty"`
	// User-uploaded attachment.
	Attachment []*Attachment `protobuf:"bytes,18,rep,name=attachment,proto3" json:"attachment,omitempty"`
	// Output only. A URL in `spaces.messages.text` that matches a link preview
	// pattern. For more information, see [Preview
	// links](https://developers.google.com/workspace/chat/preview-links).
	MatchedUrl *MatchedUrl `protobuf:"bytes,20,opt,name=matched_url,json=matchedUrl,proto3" json:"matched_url,omitempty"`
	// Output only. When `true`, the message is a response in a reply thread. When
	// `false`, the message is visible in the space's top-level conversation as
	// either the first message of a thread or a message with no threaded replies.
	//
	// If the space doesn't support reply in threads, this field is always
	// `false`.
	ThreadReply bool `protobuf:"varint,25,opt,name=thread_reply,json=threadReply,proto3" json:"thread_reply,omitempty"`
	// Optional. A custom ID for the message. You can use field to identify a
	// message, or to get, delete, or update a message. To set a custom ID,
	// specify the
	// [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id)
	// field when you create the message. For details, see [Name a
	// message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
	ClientAssignedMessageId string `` /* 135-byte string literal not displayed */
	// Output only. The list of emoji reaction summaries on the message.
	EmojiReactionSummaries []*EmojiReactionSummary `` /* 130-byte string literal not displayed */
	// Immutable. Input for creating a message, otherwise output only. The user
	// that can view the message. When set, the message is private and only
	// visible to the specified user and the Chat app. Link previews and
	// attachments aren't supported for private messages.
	//
	// Only Chat apps can send private messages. If your Chat app [authenticates
	// as a
	// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
	// to send a message, the message can't be private and must omit this field.
	//
	// For details, see [Send private messages to Google Chat
	// users](https://developers.google.com/workspace/chat/private-messages).
	PrivateMessageViewer *User `protobuf:"bytes,36,opt,name=private_message_viewer,json=privateMessageViewer,proto3" json:"private_message_viewer,omitempty"`
	// Output only. Information about a deleted message. A message is deleted when
	// `delete_time` is set.
	DeletionMetadata *DeletionMetadata `protobuf:"bytes,38,opt,name=deletion_metadata,json=deletionMetadata,proto3" json:"deletion_metadata,omitempty"`
	// Output only. Information about a message that's quoted by a Google Chat
	// user in a space. Google Chat users can quote a message to reply to it.
	QuotedMessageMetadata *QuotedMessageMetadata `` /* 127-byte string literal not displayed */
	// Output only. GIF images that are attached to the message.
	AttachedGifs []*AttachedGif `protobuf:"bytes,42,rep,name=attached_gifs,json=attachedGifs,proto3" json:"attached_gifs,omitempty"`
	// One or more interactive widgets that appear at the bottom of a message.
	// You can add accessory widgets to messages that contain text, cards, or both
	// text and cards. Not supported for messages that contain dialogs. For
	// details, see [Add interactive widgets at the bottom of a
	// message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
	//
	// Creating a message with accessory widgets requires [app
	// authentication]
	// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
	AccessoryWidgets []*AccessoryWidget `protobuf:"bytes,44,rep,name=accessory_widgets,json=accessoryWidgets,proto3" json:"accessory_widgets,omitempty"`
	// contains filtered or unexported fields
}

A message in a Google Chat space.

func (*Message) Descriptor deprecated

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

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 (x *Message) GetArgumentText() string

func (*Message) GetAttachedGifs

func (x *Message) GetAttachedGifs() []*AttachedGif

func (*Message) GetAttachment

func (x *Message) GetAttachment() []*Attachment

func (*Message) GetCards deprecated

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 (x *Message) GetClientAssignedMessageId() string

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 (x *Message) GetFallbackText() string

func (*Message) GetFormattedText

func (x *Message) GetFormattedText() string

func (*Message) GetLastUpdateTime

func (x *Message) GetLastUpdateTime() *timestamppb.Timestamp

func (*Message) GetMatchedUrl

func (x *Message) GetMatchedUrl() *MatchedUrl

func (*Message) GetName

func (x *Message) GetName() string

func (*Message) GetPrivateMessageViewer

func (x *Message) GetPrivateMessageViewer() *User

func (*Message) GetQuotedMessageMetadata

func (x *Message) GetQuotedMessageMetadata() *QuotedMessageMetadata

func (*Message) GetSender

func (x *Message) GetSender() *User

func (*Message) GetSlashCommand

func (x *Message) GetSlashCommand() *SlashCommand

func (*Message) GetSpace

func (x *Message) GetSpace() *Space

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) GetThread

func (x *Message) GetThread() *Thread

func (*Message) GetThreadReply

func (x *Message) GetThreadReply() bool

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

func (x *Message) String() string

type 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 deprecated

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

type 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

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

Deprecated: Use Reaction.ProtoReflect.Descriptor instead.

func (*Reaction) GetEmoji

func (x *Reaction) GetEmoji() *Emoji

func (*Reaction) GetName

func (x *Reaction) GetName() string

func (*Reaction) GetUser

func (x *Reaction) GetUser() *User

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

func (x *Reaction) String() string

type RichLinkMetadata

type RichLinkMetadata struct {

	// The URI of this link.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// The rich link type.
	RichLinkType RichLinkMetadata_RichLinkType `` /* 150-byte string literal not displayed */
	// Data for the linked resource.
	//
	// Types that are assignable to Data:
	//
	//	*RichLinkMetadata_DriveLinkData
	Data isRichLinkMetadata_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

A rich link to a resource.

func (*RichLinkMetadata) Descriptor deprecated

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

Deprecated: Use RichLinkMetadata.ProtoReflect.Descriptor instead.

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

type 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"`
}

type RichLinkMetadata_RichLinkType

type RichLinkMetadata_RichLinkType int32

The rich link type. More types might be added in the future.

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
)

func (RichLinkMetadata_RichLinkType) Descriptor

func (RichLinkMetadata_RichLinkType) Enum

func (RichLinkMetadata_RichLinkType) EnumDescriptor deprecated

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

Deprecated: Use RichLinkMetadata_RichLinkType.Descriptor instead.

func (RichLinkMetadata_RichLinkType) Number

func (RichLinkMetadata_RichLinkType) String

func (RichLinkMetadata_RichLinkType) Type

type 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 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}`.
	//
	// 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 deprecated

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

type 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](https://developers.google.com/workspace/chat/slash-commands) in Google Chat.

func (*SlashCommand) Descriptor deprecated

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

type 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 deprecated

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 (*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

type SlashCommandMetadata_Type

type SlashCommandMetadata_Type int32
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) Enum

func (SlashCommandMetadata_Type) EnumDescriptor deprecated

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

Deprecated: Use SlashCommandMetadata_Type.Descriptor instead.

func (SlashCommandMetadata_Type) Number

func (SlashCommandMetadata_Type) String

func (x SlashCommandMetadata_Type) String() string

func (SlashCommandMetadata_Type) Type

type Space

type Space struct {

	// Resource name of the space.
	//
	// Format: `spaces/{space}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. Deprecated: Use `space_type` instead.
	// The type of a space.
	//
	// Deprecated: Marked as deprecated in google/chat/v1/space.proto.
	Type Space_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.chat.v1.Space_Type" json:"type,omitempty"`
	// The type of space. Required when creating a space or updating the space
	// type of a space. Output only for other usage.
	SpaceType Space_SpaceType `` /* 126-byte string literal not displayed */
	// Optional. Whether the space is a DM between a Chat app and a single
	// human.
	SingleUserBotDm bool `protobuf:"varint,4,opt,name=single_user_bot_dm,json=singleUserBotDm,proto3" json:"single_user_bot_dm,omitempty"`
	// Output only. Deprecated: Use `spaceThreadingState` instead.
	// Whether messages are threaded in this space.
	//
	// Deprecated: Marked as deprecated in google/chat/v1/space.proto.
	Threaded bool `protobuf:"varint,5,opt,name=threaded,proto3" json:"threaded,omitempty"`
	// The space's display name. Required when [creating a
	// space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create).
	// If you receive the error message `ALREADY_EXISTS` when creating a space or
	// updating the `displayName`, try a different `displayName`. An
	// existing space within the Google Workspace organization might already use
	// this display name.
	//
	// For direct messages, this field might be empty.
	//
	// Supports up to 128 characters.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Immutable. Whether this space permits any Google Chat user as a member.
	// Input when creating a space in a Google Workspace organization. Omit this
	// field when creating spaces in the following conditions:
	//
	//   - The authenticated user uses a consumer account (unmanaged user
	//     account). By default, a space created by a consumer account permits any
	//     Google Chat user.
	//
	//   - The space is used to [import data to Google Chat]
	//     (https://developers.google.com/chat/api/guides/import-data-overview)
	//     because import mode spaces must only permit members from the same
	//     Google Workspace organization. However, as part of the [Google
	//     Workspace Developer Preview
	//     Program](https://developers.google.com/workspace/preview), import mode
	//     spaces can permit any Google Chat user so this field can then be set
	//     for import mode spaces.
	//
	// For existing spaces, this field is output only.
	ExternalUserAllowed bool `protobuf:"varint,8,opt,name=external_user_allowed,json=externalUserAllowed,proto3" json:"external_user_allowed,omitempty"`
	// Output only. The threading state in the Chat space.
	SpaceThreadingState Space_SpaceThreadingState `` /* 167-byte string literal not displayed */
	// Details about the space including description and rules.
	SpaceDetails *Space_SpaceDetails `protobuf:"bytes,11,opt,name=space_details,json=spaceDetails,proto3" json:"space_details,omitempty"`
	// The message history state for messages and threads in this space.
	SpaceHistoryState HistoryState `` /* 149-byte string literal not displayed */
	// Optional. Whether this space is created in `Import Mode` as part of a data
	// migration into Google Workspace. While spaces are being imported, they
	// aren't visible to users until the import is complete.
	ImportMode bool `protobuf:"varint,16,opt,name=import_mode,json=importMode,proto3" json:"import_mode,omitempty"`
	// Optional. Immutable. For spaces created in Chat, the time the space was
	// created. This field is output only, except when used in import mode spaces.
	//
	// For import mode spaces, set this field to the historical timestamp at which
	// the space was created in the source in order to preserve the original
	// creation time.
	//
	// Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. For direct message (DM) spaces with a Chat app, whether the
	// space was created by a Google Workspace administrator. Administrators can
	// install and set up a direct message with a Chat app on behalf of users in
	// their organization.
	//
	// To support admin install, your Chat app must feature direct messaging.
	AdminInstalled bool `protobuf:"varint,19,opt,name=admin_installed,json=adminInstalled,proto3" json:"admin_installed,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use Space.ProtoReflect.Descriptor instead.

func (*Space) GetAdminInstalled

func (x *Space) GetAdminInstalled() bool

func (*Space) GetCreateTime

func (x *Space) GetCreateTime() *timestamppb.Timestamp

func (*Space) GetDisplayName

func (x *Space) GetDisplayName() string

func (*Space) GetExternalUserAllowed

func (x *Space) GetExternalUserAllowed() bool

func (*Space) GetImportMode

func (x *Space) GetImportMode() bool

func (*Space) GetName

func (x *Space) GetName() string

func (*Space) GetSingleUserBotDm

func (x *Space) GetSingleUserBotDm() bool

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) GetThreaded deprecated

func (x *Space) GetThreaded() bool

Deprecated: Marked as deprecated in google/chat/v1/space.proto.

func (*Space) GetType deprecated

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

func (x *Space) String() string

type 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 deprecated

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

type 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 deprecated

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

type Space_SpaceThreadingState

type Space_SpaceThreadingState int32

Specifies the type of threading state in the Chat space.

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) Enum

func (Space_SpaceThreadingState) EnumDescriptor deprecated

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

Deprecated: Use Space_SpaceThreadingState.Descriptor instead.

func (Space_SpaceThreadingState) Number

func (Space_SpaceThreadingState) String

func (x Space_SpaceThreadingState) String() string

func (Space_SpaceThreadingState) Type

type Space_SpaceType

type Space_SpaceType int32

The type of space. Required when creating or updating a space. Output only for other usage.

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) Enum

func (x Space_SpaceType) Enum() *Space_SpaceType

func (Space_SpaceType) EnumDescriptor deprecated

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

Deprecated: Use Space_SpaceType.Descriptor instead.

func (Space_SpaceType) Number

func (Space_SpaceType) String

func (x Space_SpaceType) String() string

func (Space_SpaceType) Type

type Space_Type deprecated

type Space_Type int32

Deprecated: Use `SpaceType` instead.

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 deprecated

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

type 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](https://developers.google.com/workspace/chat/create-messages#create-message-thread).

If you specify a thread when creating a message, you can set the [`messageReplyOption`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption) field to determine what happens if no matching thread is found.

func (*Thread) Descriptor deprecated

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

Deprecated: Use Thread.ProtoReflect.Descriptor instead.

func (*Thread) GetName

func (x *Thread) GetName() string

func (*Thread) GetThreadKey

func (x *Thread) GetThreadKey() string

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

func (x *Thread) String() string

type 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 deprecated

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

type UnimplementedChatServiceServer

type UnimplementedChatServiceServer struct {
}

UnimplementedChatServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChatServiceServer) CompleteImportSpace

func (*UnimplementedChatServiceServer) CreateMembership

func (*UnimplementedChatServiceServer) CreateMessage

func (*UnimplementedChatServiceServer) CreateReaction

func (*UnimplementedChatServiceServer) CreateSpace

func (*UnimplementedChatServiceServer) DeleteMembership

func (*UnimplementedChatServiceServer) DeleteMessage

func (*UnimplementedChatServiceServer) DeleteReaction

func (*UnimplementedChatServiceServer) DeleteSpace

func (*UnimplementedChatServiceServer) FindDirectMessage

func (*UnimplementedChatServiceServer) GetAttachment

func (*UnimplementedChatServiceServer) GetMembership

func (*UnimplementedChatServiceServer) GetMessage

func (*UnimplementedChatServiceServer) GetSpace

func (*UnimplementedChatServiceServer) GetSpaceReadState

func (*UnimplementedChatServiceServer) GetThreadReadState

func (*UnimplementedChatServiceServer) ListMemberships

func (*UnimplementedChatServiceServer) ListMessages

func (*UnimplementedChatServiceServer) ListReactions

func (*UnimplementedChatServiceServer) ListSpaces

func (*UnimplementedChatServiceServer) SetUpSpace

func (*UnimplementedChatServiceServer) UpdateMembership

func (*UnimplementedChatServiceServer) UpdateMessage

func (*UnimplementedChatServiceServer) UpdateSpace

func (*UnimplementedChatServiceServer) UpdateSpaceReadState

func (*UnimplementedChatServiceServer) UploadAttachment

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

Deprecated: Use UpdateSpaceReadStateRequest.ProtoReflect.Descriptor instead.

func (*UpdateSpaceReadStateRequest) GetSpaceReadState

func (x *UpdateSpaceReadStateRequest) GetSpaceReadState() *SpaceReadState

func (*UpdateSpaceReadStateRequest) GetUpdateMask

func (*UpdateSpaceReadStateRequest) ProtoMessage

func (*UpdateSpaceReadStateRequest) ProtoMessage()

func (*UpdateSpaceReadStateRequest) ProtoReflect

func (*UpdateSpaceReadStateRequest) Reset

func (x *UpdateSpaceReadStateRequest) Reset()

func (*UpdateSpaceReadStateRequest) String

func (x *UpdateSpaceReadStateRequest) String() string

type 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_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.)
	//
	// - Developer Preview: `access_settings.audience` (Supports changing the
	// [access setting](https://support.google.com/chat/answer/11971020) of a
	// space. If no audience is specified in the access setting, the space's
	// access setting is updated to restricted. Warning: mutually exclusive with
	// all other field paths.)
	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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetDomainId

func (x *User) GetDomainId() string

func (*User) GetIsAnonymous

func (x *User) GetIsAnonymous() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) GetType

func (x *User) GetType() User_Type

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

func (x *User) String() string

type 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 deprecated

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

Deprecated: Use UserMentionMetadata.ProtoReflect.Descriptor instead.

func (*UserMentionMetadata) GetType

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

type UserMentionMetadata_Type

type UserMentionMetadata_Type int32
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) Enum

func (UserMentionMetadata_Type) EnumDescriptor deprecated

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

Deprecated: Use UserMentionMetadata_Type.Descriptor instead.

func (UserMentionMetadata_Type) Number

func (UserMentionMetadata_Type) String

func (x UserMentionMetadata_Type) String() string

func (UserMentionMetadata_Type) Type

type User_Type

type User_Type int32
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 (x User_Type) Enum() *User_Type

func (User_Type) EnumDescriptor deprecated

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

Deprecated: Use User_Type.Descriptor instead.

func (User_Type) Number

func (x User_Type) Number() protoreflect.EnumNumber

func (User_Type) String

func (x User_Type) String() string

func (User_Type) Type

type 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 deprecated

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

type 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 deprecated

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

type 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"`
}

type 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"`
}

type 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 deprecated

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 (*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

type 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 deprecated

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

Deprecated: Use WidgetMarkup_FormAction_ActionParameter.ProtoReflect.Descriptor instead.

func (*WidgetMarkup_FormAction_ActionParameter) GetKey

func (*WidgetMarkup_FormAction_ActionParameter) GetValue

func (*WidgetMarkup_FormAction_ActionParameter) ProtoMessage

func (*WidgetMarkup_FormAction_ActionParameter) ProtoReflect

func (*WidgetMarkup_FormAction_ActionParameter) Reset

func (*WidgetMarkup_FormAction_ActionParameter) String

type WidgetMarkup_Icon

type WidgetMarkup_Icon int32

The set of supported icons.

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) Enum

func (WidgetMarkup_Icon) EnumDescriptor deprecated

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

Deprecated: Use WidgetMarkup_Icon.Descriptor instead.

func (WidgetMarkup_Icon) Number

func (WidgetMarkup_Icon) String

func (x WidgetMarkup_Icon) String() string

func (WidgetMarkup_Icon) Type

type 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 deprecated

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

type 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 deprecated

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

Deprecated: Use WidgetMarkup_ImageButton.ProtoReflect.Descriptor instead.

func (*WidgetMarkup_ImageButton) GetIcon

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 (*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

type 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"`
}

type 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"`
}

type WidgetMarkup_Image_

type WidgetMarkup_Image_ struct {
	// Display an image in this widget.
	Image *WidgetMarkup_Image `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}

type 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 deprecated

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 (*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 (*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 (*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

type 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"`
}

type 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"`
}

type 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"`
}

type 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"`
}

type 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 deprecated

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

Deprecated: Use WidgetMarkup_OnClick.ProtoReflect.Descriptor instead.

func (*WidgetMarkup_OnClick) GetAction

func (*WidgetMarkup_OnClick) GetData

func (m *WidgetMarkup_OnClick) GetData() isWidgetMarkup_OnClick_Data
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

type 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"`
}
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"`
}
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 deprecated

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

type 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 deprecated

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

Deprecated: Use WidgetMarkup_TextButton.ProtoReflect.Descriptor instead.

func (*WidgetMarkup_TextButton) GetOnClick

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

type 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](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).

func (*WidgetMarkup_TextParagraph) Descriptor deprecated

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

func (x *WidgetMarkup_TextParagraph) Reset()

func (*WidgetMarkup_TextParagraph) String

func (x *WidgetMarkup_TextParagraph) String() string

type 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL