// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.33.4 // source: hooks_command.proto package pluginapiv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // WebSocketRequest represents a WebSocket message request from a client. // Maps to model.WebSocketRequest in Go (server/public/model/websocket_request.go). // // Note: Server-provided fields (Session, T, Locale) are not passed over the wire. type WebSocketRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Sequence number incremented for every request Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // The action to perform (e.g., "get_statuses", "user_typing") Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // Action metadata Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WebSocketRequest) Reset() { *x = WebSocketRequest{} mi := &file_hooks_command_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WebSocketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*WebSocketRequest) ProtoMessage() {} func (x *WebSocketRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use WebSocketRequest.ProtoReflect.Descriptor instead. func (*WebSocketRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{0} } func (x *WebSocketRequest) GetSeq() int64 { if x != nil { return x.Seq } return 0 } func (x *WebSocketRequest) GetAction() string { if x != nil { return x.Action } return "" } func (x *WebSocketRequest) GetData() *structpb.Struct { if x != nil { return x.Data } return nil } // SyncMsgJson wraps a serialized model.SyncMsg as JSON bytes. // SyncMsg is a complex type with nested maps and slices of various models // (User, Post, Reaction, Status, MembershipChangeMsg, PostAcknowledgement). // Using a JSON blob avoids creating extensive proto definitions and provides // flexibility for changes in the SyncMsg structure. type SyncMsgJson struct { state protoimpl.MessageState `protogen:"open.v1"` // JSON-encoded model.SyncMsg SyncMsgJson []byte `protobuf:"bytes,1,opt,name=sync_msg_json,json=syncMsgJson,proto3" json:"sync_msg_json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SyncMsgJson) Reset() { *x = SyncMsgJson{} mi := &file_hooks_command_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SyncMsgJson) String() string { return protoimpl.X.MessageStringOf(x) } func (*SyncMsgJson) ProtoMessage() {} func (x *SyncMsgJson) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SyncMsgJson.ProtoReflect.Descriptor instead. func (*SyncMsgJson) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{1} } func (x *SyncMsgJson) GetSyncMsgJson() []byte { if x != nil { return x.SyncMsgJson } return nil } // SyncResponse represents the response to a shared channels synchronization event. // Maps to model.SyncResponse in Go (server/public/model/shared_channel.go). type SyncResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Timestamp of the last user update processed UsersLastUpdateAt int64 `protobuf:"varint,1,opt,name=users_last_update_at,json=usersLastUpdateAt,proto3" json:"users_last_update_at,omitempty"` // User IDs that failed to sync UserErrors []string `protobuf:"bytes,2,rep,name=user_errors,json=userErrors,proto3" json:"user_errors,omitempty"` // User IDs that were successfully synced UsersSyncd []string `protobuf:"bytes,3,rep,name=users_syncd,json=usersSyncd,proto3" json:"users_syncd,omitempty"` // Timestamp of the last post update processed PostsLastUpdateAt int64 `protobuf:"varint,4,opt,name=posts_last_update_at,json=postsLastUpdateAt,proto3" json:"posts_last_update_at,omitempty"` // Post IDs that failed to sync PostErrors []string `protobuf:"bytes,5,rep,name=post_errors,json=postErrors,proto3" json:"post_errors,omitempty"` // Timestamp of the last reaction update processed ReactionsLastUpdateAt int64 `protobuf:"varint,6,opt,name=reactions_last_update_at,json=reactionsLastUpdateAt,proto3" json:"reactions_last_update_at,omitempty"` // Reaction post IDs that failed to sync ReactionErrors []string `protobuf:"bytes,7,rep,name=reaction_errors,json=reactionErrors,proto3" json:"reaction_errors,omitempty"` // Timestamp of the last acknowledgement update processed AcknowledgementsLastUpdateAt int64 `protobuf:"varint,8,opt,name=acknowledgements_last_update_at,json=acknowledgementsLastUpdateAt,proto3" json:"acknowledgements_last_update_at,omitempty"` // Acknowledgement IDs that failed to sync AcknowledgementErrors []string `protobuf:"bytes,9,rep,name=acknowledgement_errors,json=acknowledgementErrors,proto3" json:"acknowledgement_errors,omitempty"` // User IDs for which status sync failed StatusErrors []string `protobuf:"bytes,10,rep,name=status_errors,json=statusErrors,proto3" json:"status_errors,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SyncResponse) Reset() { *x = SyncResponse{} mi := &file_hooks_command_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SyncResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SyncResponse) ProtoMessage() {} func (x *SyncResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead. func (*SyncResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{2} } func (x *SyncResponse) GetUsersLastUpdateAt() int64 { if x != nil { return x.UsersLastUpdateAt } return 0 } func (x *SyncResponse) GetUserErrors() []string { if x != nil { return x.UserErrors } return nil } func (x *SyncResponse) GetUsersSyncd() []string { if x != nil { return x.UsersSyncd } return nil } func (x *SyncResponse) GetPostsLastUpdateAt() int64 { if x != nil { return x.PostsLastUpdateAt } return 0 } func (x *SyncResponse) GetPostErrors() []string { if x != nil { return x.PostErrors } return nil } func (x *SyncResponse) GetReactionsLastUpdateAt() int64 { if x != nil { return x.ReactionsLastUpdateAt } return 0 } func (x *SyncResponse) GetReactionErrors() []string { if x != nil { return x.ReactionErrors } return nil } func (x *SyncResponse) GetAcknowledgementsLastUpdateAt() int64 { if x != nil { return x.AcknowledgementsLastUpdateAt } return 0 } func (x *SyncResponse) GetAcknowledgementErrors() []string { if x != nil { return x.AcknowledgementErrors } return nil } func (x *SyncResponse) GetStatusErrors() []string { if x != nil { return x.StatusErrors } return nil } // RemoteCluster represents a remote cluster for shared channels. // Maps to model.RemoteCluster in Go (server/public/model/remote_cluster.go). type RemoteCluster struct { state protoimpl.MessageState `protogen:"open.v1"` // Unique identifier for the remote cluster RemoteId string `protobuf:"bytes,1,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` // Deprecated: remote_team_id is no longer used RemoteTeamId string `protobuf:"bytes,2,opt,name=remote_team_id,json=remoteTeamId,proto3" json:"remote_team_id,omitempty"` // Internal name of the remote cluster Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Display name shown to users DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // URL of the remote Mattermost server SiteUrl string `protobuf:"bytes,5,opt,name=site_url,json=siteUrl,proto3" json:"site_url,omitempty"` // Default team ID for the remote cluster DefaultTeamId string `protobuf:"bytes,6,opt,name=default_team_id,json=defaultTeamId,proto3" json:"default_team_id,omitempty"` // Timestamp when the remote cluster was created CreateAt int64 `protobuf:"varint,7,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` // Timestamp when the remote cluster was deleted (0 if active) DeleteAt int64 `protobuf:"varint,8,opt,name=delete_at,json=deleteAt,proto3" json:"delete_at,omitempty"` // Timestamp of last successful ping LastPingAt int64 `protobuf:"varint,9,opt,name=last_ping_at,json=lastPingAt,proto3" json:"last_ping_at,omitempty"` // Timestamp of last global user sync LastGlobalUserSyncAt int64 `protobuf:"varint,10,opt,name=last_global_user_sync_at,json=lastGlobalUserSyncAt,proto3" json:"last_global_user_sync_at,omitempty"` // Authentication token (sensitive, may be empty in responses) Token string `protobuf:"bytes,11,opt,name=token,proto3" json:"token,omitempty"` // Token from the remote cluster (sensitive, may be empty) RemoteToken string `protobuf:"bytes,12,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` // Space-separated list of topics Topics string `protobuf:"bytes,13,opt,name=topics,proto3" json:"topics,omitempty"` // ID of the user who created the remote cluster CreatorId string `protobuf:"bytes,14,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // Plugin ID if sync messages are delivered via plugin API PluginId string `protobuf:"bytes,15,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` // Bit-flag options Options uint32 `protobuf:"varint,16,opt,name=options,proto3" json:"options,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoteCluster) Reset() { *x = RemoteCluster{} mi := &file_hooks_command_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoteCluster) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoteCluster) ProtoMessage() {} func (x *RemoteCluster) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RemoteCluster.ProtoReflect.Descriptor instead. func (*RemoteCluster) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{3} } func (x *RemoteCluster) GetRemoteId() string { if x != nil { return x.RemoteId } return "" } func (x *RemoteCluster) GetRemoteTeamId() string { if x != nil { return x.RemoteTeamId } return "" } func (x *RemoteCluster) GetName() string { if x != nil { return x.Name } return "" } func (x *RemoteCluster) GetDisplayName() string { if x != nil { return x.DisplayName } return "" } func (x *RemoteCluster) GetSiteUrl() string { if x != nil { return x.SiteUrl } return "" } func (x *RemoteCluster) GetDefaultTeamId() string { if x != nil { return x.DefaultTeamId } return "" } func (x *RemoteCluster) GetCreateAt() int64 { if x != nil { return x.CreateAt } return 0 } func (x *RemoteCluster) GetDeleteAt() int64 { if x != nil { return x.DeleteAt } return 0 } func (x *RemoteCluster) GetLastPingAt() int64 { if x != nil { return x.LastPingAt } return 0 } func (x *RemoteCluster) GetLastGlobalUserSyncAt() int64 { if x != nil { return x.LastGlobalUserSyncAt } return 0 } func (x *RemoteCluster) GetToken() string { if x != nil { return x.Token } return "" } func (x *RemoteCluster) GetRemoteToken() string { if x != nil { return x.RemoteToken } return "" } func (x *RemoteCluster) GetTopics() string { if x != nil { return x.Topics } return "" } func (x *RemoteCluster) GetCreatorId() string { if x != nil { return x.CreatorId } return "" } func (x *RemoteCluster) GetPluginId() string { if x != nil { return x.PluginId } return "" } func (x *RemoteCluster) GetOptions() uint32 { if x != nil { return x.Options } return 0 } type ExecuteCommandRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Plugin context with session/request metadata PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"` // The command arguments (from api_remaining.proto) Args *CommandArgs `protobuf:"bytes,3,opt,name=args,proto3" json:"args,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExecuteCommandRequest) Reset() { *x = ExecuteCommandRequest{} mi := &file_hooks_command_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExecuteCommandRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExecuteCommandRequest) ProtoMessage() {} func (x *ExecuteCommandRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ExecuteCommandRequest.ProtoReflect.Descriptor instead. func (*ExecuteCommandRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{4} } func (x *ExecuteCommandRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *ExecuteCommandRequest) GetPluginContext() *PluginContext { if x != nil { return x.PluginContext } return nil } func (x *ExecuteCommandRequest) GetArgs() *CommandArgs { if x != nil { return x.Args } return nil } type ExecuteCommandResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Error returned by the plugin (null on success) Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // The command response (may be null if only error is returned) // Note: Uses CommandResponse from api_remaining.proto Response *CommandResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExecuteCommandResponse) Reset() { *x = ExecuteCommandResponse{} mi := &file_hooks_command_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExecuteCommandResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExecuteCommandResponse) ProtoMessage() {} func (x *ExecuteCommandResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ExecuteCommandResponse.ProtoReflect.Descriptor instead. func (*ExecuteCommandResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{5} } func (x *ExecuteCommandResponse) GetError() *AppError { if x != nil { return x.Error } return nil } func (x *ExecuteCommandResponse) GetResponse() *CommandResponse { if x != nil { return x.Response } return nil } type OnPluginClusterEventRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Plugin context with session/request metadata PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"` // The cluster event (from api_remaining.proto) Event *PluginClusterEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnPluginClusterEventRequest) Reset() { *x = OnPluginClusterEventRequest{} mi := &file_hooks_command_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnPluginClusterEventRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnPluginClusterEventRequest) ProtoMessage() {} func (x *OnPluginClusterEventRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnPluginClusterEventRequest.ProtoReflect.Descriptor instead. func (*OnPluginClusterEventRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{6} } func (x *OnPluginClusterEventRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnPluginClusterEventRequest) GetPluginContext() *PluginContext { if x != nil { return x.PluginContext } return nil } func (x *OnPluginClusterEventRequest) GetEvent() *PluginClusterEvent { if x != nil { return x.Event } return nil } type OnPluginClusterEventResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnPluginClusterEventResponse) Reset() { *x = OnPluginClusterEventResponse{} mi := &file_hooks_command_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnPluginClusterEventResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnPluginClusterEventResponse) ProtoMessage() {} func (x *OnPluginClusterEventResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnPluginClusterEventResponse.ProtoReflect.Descriptor instead. func (*OnPluginClusterEventResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{7} } type OnWebSocketConnectRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The WebSocket connection ID WebConnId string `protobuf:"bytes,2,opt,name=web_conn_id,json=webConnId,proto3" json:"web_conn_id,omitempty"` // The ID of the user who connected UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnWebSocketConnectRequest) Reset() { *x = OnWebSocketConnectRequest{} mi := &file_hooks_command_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnWebSocketConnectRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnWebSocketConnectRequest) ProtoMessage() {} func (x *OnWebSocketConnectRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnWebSocketConnectRequest.ProtoReflect.Descriptor instead. func (*OnWebSocketConnectRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{8} } func (x *OnWebSocketConnectRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnWebSocketConnectRequest) GetWebConnId() string { if x != nil { return x.WebConnId } return "" } func (x *OnWebSocketConnectRequest) GetUserId() string { if x != nil { return x.UserId } return "" } type OnWebSocketConnectResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnWebSocketConnectResponse) Reset() { *x = OnWebSocketConnectResponse{} mi := &file_hooks_command_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnWebSocketConnectResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnWebSocketConnectResponse) ProtoMessage() {} func (x *OnWebSocketConnectResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnWebSocketConnectResponse.ProtoReflect.Descriptor instead. func (*OnWebSocketConnectResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{9} } type OnWebSocketDisconnectRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The WebSocket connection ID WebConnId string `protobuf:"bytes,2,opt,name=web_conn_id,json=webConnId,proto3" json:"web_conn_id,omitempty"` // The ID of the user who disconnected UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnWebSocketDisconnectRequest) Reset() { *x = OnWebSocketDisconnectRequest{} mi := &file_hooks_command_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnWebSocketDisconnectRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnWebSocketDisconnectRequest) ProtoMessage() {} func (x *OnWebSocketDisconnectRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnWebSocketDisconnectRequest.ProtoReflect.Descriptor instead. func (*OnWebSocketDisconnectRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{10} } func (x *OnWebSocketDisconnectRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnWebSocketDisconnectRequest) GetWebConnId() string { if x != nil { return x.WebConnId } return "" } func (x *OnWebSocketDisconnectRequest) GetUserId() string { if x != nil { return x.UserId } return "" } type OnWebSocketDisconnectResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnWebSocketDisconnectResponse) Reset() { *x = OnWebSocketDisconnectResponse{} mi := &file_hooks_command_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnWebSocketDisconnectResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnWebSocketDisconnectResponse) ProtoMessage() {} func (x *OnWebSocketDisconnectResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnWebSocketDisconnectResponse.ProtoReflect.Descriptor instead. func (*OnWebSocketDisconnectResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{11} } type WebSocketMessageHasBeenPostedRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The WebSocket connection ID WebConnId string `protobuf:"bytes,2,opt,name=web_conn_id,json=webConnId,proto3" json:"web_conn_id,omitempty"` // The ID of the user who sent the message UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The WebSocket request Request *WebSocketRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WebSocketMessageHasBeenPostedRequest) Reset() { *x = WebSocketMessageHasBeenPostedRequest{} mi := &file_hooks_command_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WebSocketMessageHasBeenPostedRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*WebSocketMessageHasBeenPostedRequest) ProtoMessage() {} func (x *WebSocketMessageHasBeenPostedRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use WebSocketMessageHasBeenPostedRequest.ProtoReflect.Descriptor instead. func (*WebSocketMessageHasBeenPostedRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{12} } func (x *WebSocketMessageHasBeenPostedRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *WebSocketMessageHasBeenPostedRequest) GetWebConnId() string { if x != nil { return x.WebConnId } return "" } func (x *WebSocketMessageHasBeenPostedRequest) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *WebSocketMessageHasBeenPostedRequest) GetRequest() *WebSocketRequest { if x != nil { return x.Request } return nil } type WebSocketMessageHasBeenPostedResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WebSocketMessageHasBeenPostedResponse) Reset() { *x = WebSocketMessageHasBeenPostedResponse{} mi := &file_hooks_command_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WebSocketMessageHasBeenPostedResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*WebSocketMessageHasBeenPostedResponse) ProtoMessage() {} func (x *WebSocketMessageHasBeenPostedResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use WebSocketMessageHasBeenPostedResponse.ProtoReflect.Descriptor instead. func (*WebSocketMessageHasBeenPostedResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{13} } type OnSharedChannelsSyncMsgRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The sync message as JSON (complex nested structure) SyncMsg *SyncMsgJson `protobuf:"bytes,2,opt,name=sync_msg,json=syncMsg,proto3" json:"sync_msg,omitempty"` // The remote cluster that sent the message RemoteCluster *RemoteCluster `protobuf:"bytes,3,opt,name=remote_cluster,json=remoteCluster,proto3" json:"remote_cluster,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsSyncMsgRequest) Reset() { *x = OnSharedChannelsSyncMsgRequest{} mi := &file_hooks_command_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsSyncMsgRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsSyncMsgRequest) ProtoMessage() {} func (x *OnSharedChannelsSyncMsgRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsSyncMsgRequest.ProtoReflect.Descriptor instead. func (*OnSharedChannelsSyncMsgRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{14} } func (x *OnSharedChannelsSyncMsgRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnSharedChannelsSyncMsgRequest) GetSyncMsg() *SyncMsgJson { if x != nil { return x.SyncMsg } return nil } func (x *OnSharedChannelsSyncMsgRequest) GetRemoteCluster() *RemoteCluster { if x != nil { return x.RemoteCluster } return nil } type OnSharedChannelsSyncMsgResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Error returned by the plugin (null on success) Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // The sync response Response *SyncResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsSyncMsgResponse) Reset() { *x = OnSharedChannelsSyncMsgResponse{} mi := &file_hooks_command_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsSyncMsgResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsSyncMsgResponse) ProtoMessage() {} func (x *OnSharedChannelsSyncMsgResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsSyncMsgResponse.ProtoReflect.Descriptor instead. func (*OnSharedChannelsSyncMsgResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{15} } func (x *OnSharedChannelsSyncMsgResponse) GetError() *AppError { if x != nil { return x.Error } return nil } func (x *OnSharedChannelsSyncMsgResponse) GetResponse() *SyncResponse { if x != nil { return x.Response } return nil } type OnSharedChannelsPingRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The remote cluster performing the ping RemoteCluster *RemoteCluster `protobuf:"bytes,2,opt,name=remote_cluster,json=remoteCluster,proto3" json:"remote_cluster,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsPingRequest) Reset() { *x = OnSharedChannelsPingRequest{} mi := &file_hooks_command_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsPingRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsPingRequest) ProtoMessage() {} func (x *OnSharedChannelsPingRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsPingRequest.ProtoReflect.Descriptor instead. func (*OnSharedChannelsPingRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{16} } func (x *OnSharedChannelsPingRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnSharedChannelsPingRequest) GetRemoteCluster() *RemoteCluster { if x != nil { return x.RemoteCluster } return nil } type OnSharedChannelsPingResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // True if the plugin is healthy, false otherwise Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsPingResponse) Reset() { *x = OnSharedChannelsPingResponse{} mi := &file_hooks_command_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsPingResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsPingResponse) ProtoMessage() {} func (x *OnSharedChannelsPingResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsPingResponse.ProtoReflect.Descriptor instead. func (*OnSharedChannelsPingResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{17} } func (x *OnSharedChannelsPingResponse) GetHealthy() bool { if x != nil { return x.Healthy } return false } type OnSharedChannelsAttachmentSyncMsgRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The file info to sync FileInfo *FileInfo `protobuf:"bytes,2,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"` // The post the file is attached to Post *Post `protobuf:"bytes,3,opt,name=post,proto3" json:"post,omitempty"` // The remote cluster that sent the message RemoteCluster *RemoteCluster `protobuf:"bytes,4,opt,name=remote_cluster,json=remoteCluster,proto3" json:"remote_cluster,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsAttachmentSyncMsgRequest) Reset() { *x = OnSharedChannelsAttachmentSyncMsgRequest{} mi := &file_hooks_command_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsAttachmentSyncMsgRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsAttachmentSyncMsgRequest) ProtoMessage() {} func (x *OnSharedChannelsAttachmentSyncMsgRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsAttachmentSyncMsgRequest.ProtoReflect.Descriptor instead. func (*OnSharedChannelsAttachmentSyncMsgRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{18} } func (x *OnSharedChannelsAttachmentSyncMsgRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnSharedChannelsAttachmentSyncMsgRequest) GetFileInfo() *FileInfo { if x != nil { return x.FileInfo } return nil } func (x *OnSharedChannelsAttachmentSyncMsgRequest) GetPost() *Post { if x != nil { return x.Post } return nil } func (x *OnSharedChannelsAttachmentSyncMsgRequest) GetRemoteCluster() *RemoteCluster { if x != nil { return x.RemoteCluster } return nil } type OnSharedChannelsAttachmentSyncMsgResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Error returned by the plugin (null on success) Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsAttachmentSyncMsgResponse) Reset() { *x = OnSharedChannelsAttachmentSyncMsgResponse{} mi := &file_hooks_command_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsAttachmentSyncMsgResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsAttachmentSyncMsgResponse) ProtoMessage() {} func (x *OnSharedChannelsAttachmentSyncMsgResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsAttachmentSyncMsgResponse.ProtoReflect.Descriptor instead. func (*OnSharedChannelsAttachmentSyncMsgResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{19} } func (x *OnSharedChannelsAttachmentSyncMsgResponse) GetError() *AppError { if x != nil { return x.Error } return nil } type OnSharedChannelsProfileImageSyncMsgRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The user whose profile image should be synced User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The remote cluster that sent the message RemoteCluster *RemoteCluster `protobuf:"bytes,3,opt,name=remote_cluster,json=remoteCluster,proto3" json:"remote_cluster,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsProfileImageSyncMsgRequest) Reset() { *x = OnSharedChannelsProfileImageSyncMsgRequest{} mi := &file_hooks_command_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsProfileImageSyncMsgRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsProfileImageSyncMsgRequest) ProtoMessage() {} func (x *OnSharedChannelsProfileImageSyncMsgRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsProfileImageSyncMsgRequest.ProtoReflect.Descriptor instead. func (*OnSharedChannelsProfileImageSyncMsgRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{20} } func (x *OnSharedChannelsProfileImageSyncMsgRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *OnSharedChannelsProfileImageSyncMsgRequest) GetUser() *User { if x != nil { return x.User } return nil } func (x *OnSharedChannelsProfileImageSyncMsgRequest) GetRemoteCluster() *RemoteCluster { if x != nil { return x.RemoteCluster } return nil } type OnSharedChannelsProfileImageSyncMsgResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Error returned by the plugin (null on success) Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OnSharedChannelsProfileImageSyncMsgResponse) Reset() { *x = OnSharedChannelsProfileImageSyncMsgResponse{} mi := &file_hooks_command_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OnSharedChannelsProfileImageSyncMsgResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*OnSharedChannelsProfileImageSyncMsgResponse) ProtoMessage() {} func (x *OnSharedChannelsProfileImageSyncMsgResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OnSharedChannelsProfileImageSyncMsgResponse.ProtoReflect.Descriptor instead. func (*OnSharedChannelsProfileImageSyncMsgResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{21} } func (x *OnSharedChannelsProfileImageSyncMsgResponse) GetError() *AppError { if x != nil { return x.Error } return nil } type GenerateSupportDataRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Plugin context with session/request metadata PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GenerateSupportDataRequest) Reset() { *x = GenerateSupportDataRequest{} mi := &file_hooks_command_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GenerateSupportDataRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GenerateSupportDataRequest) ProtoMessage() {} func (x *GenerateSupportDataRequest) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GenerateSupportDataRequest.ProtoReflect.Descriptor instead. func (*GenerateSupportDataRequest) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{22} } func (x *GenerateSupportDataRequest) GetContext() *RequestContext { if x != nil { return x.Context } return nil } func (x *GenerateSupportDataRequest) GetPluginContext() *PluginContext { if x != nil { return x.PluginContext } return nil } type GenerateSupportDataResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Error returned by the plugin (null on success) Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Files to include in the support packet // Note: Uses FileData from file.proto Files []*FileData `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GenerateSupportDataResponse) Reset() { *x = GenerateSupportDataResponse{} mi := &file_hooks_command_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GenerateSupportDataResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GenerateSupportDataResponse) ProtoMessage() {} func (x *GenerateSupportDataResponse) ProtoReflect() protoreflect.Message { mi := &file_hooks_command_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GenerateSupportDataResponse.ProtoReflect.Descriptor instead. func (*GenerateSupportDataResponse) Descriptor() ([]byte, []int) { return file_hooks_command_proto_rawDescGZIP(), []int{23} } func (x *GenerateSupportDataResponse) GetError() *AppError { if x != nil { return x.Error } return nil } func (x *GenerateSupportDataResponse) GetFiles() []*FileData { if x != nil { return x.Files } return nil } var File_hooks_command_proto protoreflect.FileDescriptor const file_hooks_command_proto_rawDesc = "" + "\n" + "\x13hooks_command.proto\x12\x17mattermost.pluginapi.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\fcommon.proto\x1a\x12hooks_common.proto\x1a\x13api_remaining.proto\x1a\n" + "file.proto\x1a\n" + "post.proto\x1a\n" + "user.proto\"i\n" + "\x10WebSocketRequest\x12\x10\n" + "\x03seq\x18\x01 \x01(\x03R\x03seq\x12\x16\n" + "\x06action\x18\x02 \x01(\tR\x06action\x12+\n" + "\x04data\x18\x03 \x01(\v2\x17.google.protobuf.StructR\x04data\"1\n" + "\vSyncMsgJson\x12\"\n" + "\rsync_msg_json\x18\x01 \x01(\fR\vsyncMsgJson\"\xd8\x03\n" + "\fSyncResponse\x12/\n" + "\x14users_last_update_at\x18\x01 \x01(\x03R\x11usersLastUpdateAt\x12\x1f\n" + "\vuser_errors\x18\x02 \x03(\tR\n" + "userErrors\x12\x1f\n" + "\vusers_syncd\x18\x03 \x03(\tR\n" + "usersSyncd\x12/\n" + "\x14posts_last_update_at\x18\x04 \x01(\x03R\x11postsLastUpdateAt\x12\x1f\n" + "\vpost_errors\x18\x05 \x03(\tR\n" + "postErrors\x127\n" + "\x18reactions_last_update_at\x18\x06 \x01(\x03R\x15reactionsLastUpdateAt\x12'\n" + "\x0freaction_errors\x18\a \x03(\tR\x0ereactionErrors\x12E\n" + "\x1facknowledgements_last_update_at\x18\b \x01(\x03R\x1cacknowledgementsLastUpdateAt\x125\n" + "\x16acknowledgement_errors\x18\t \x03(\tR\x15acknowledgementErrors\x12#\n" + "\rstatus_errors\x18\n" + " \x03(\tR\fstatusErrors\"\x87\x04\n" + "\rRemoteCluster\x12\x1b\n" + "\tremote_id\x18\x01 \x01(\tR\bremoteId\x12$\n" + "\x0eremote_team_id\x18\x02 \x01(\tR\fremoteTeamId\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12!\n" + "\fdisplay_name\x18\x04 \x01(\tR\vdisplayName\x12\x19\n" + "\bsite_url\x18\x05 \x01(\tR\asiteUrl\x12&\n" + "\x0fdefault_team_id\x18\x06 \x01(\tR\rdefaultTeamId\x12\x1b\n" + "\tcreate_at\x18\a \x01(\x03R\bcreateAt\x12\x1b\n" + "\tdelete_at\x18\b \x01(\x03R\bdeleteAt\x12 \n" + "\flast_ping_at\x18\t \x01(\x03R\n" + "lastPingAt\x126\n" + "\x18last_global_user_sync_at\x18\n" + " \x01(\x03R\x14lastGlobalUserSyncAt\x12\x14\n" + "\x05token\x18\v \x01(\tR\x05token\x12!\n" + "\fremote_token\x18\f \x01(\tR\vremoteToken\x12\x16\n" + "\x06topics\x18\r \x01(\tR\x06topics\x12\x1d\n" + "\n" + "creator_id\x18\x0e \x01(\tR\tcreatorId\x12\x1b\n" + "\tplugin_id\x18\x0f \x01(\tR\bpluginId\x12\x18\n" + "\aoptions\x18\x10 \x01(\rR\aoptions\"\xe3\x01\n" + "\x15ExecuteCommandRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" + "\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x128\n" + "\x04args\x18\x03 \x01(\v2$.mattermost.pluginapi.v1.CommandArgsR\x04args\"\x97\x01\n" + "\x16ExecuteCommandResponse\x127\n" + "\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x12D\n" + "\bresponse\x18\x02 \x01(\v2(.mattermost.pluginapi.v1.CommandResponseR\bresponse\"\xf2\x01\n" + "\x1bOnPluginClusterEventRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" + "\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x12A\n" + "\x05event\x18\x03 \x01(\v2+.mattermost.pluginapi.v1.PluginClusterEventR\x05event\"\x1e\n" + "\x1cOnPluginClusterEventResponse\"\x97\x01\n" + "\x19OnWebSocketConnectRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12\x1e\n" + "\vweb_conn_id\x18\x02 \x01(\tR\twebConnId\x12\x17\n" + "\auser_id\x18\x03 \x01(\tR\x06userId\"\x1c\n" + "\x1aOnWebSocketConnectResponse\"\x9a\x01\n" + "\x1cOnWebSocketDisconnectRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12\x1e\n" + "\vweb_conn_id\x18\x02 \x01(\tR\twebConnId\x12\x17\n" + "\auser_id\x18\x03 \x01(\tR\x06userId\"\x1f\n" + "\x1dOnWebSocketDisconnectResponse\"\xe7\x01\n" + "$WebSocketMessageHasBeenPostedRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12\x1e\n" + "\vweb_conn_id\x18\x02 \x01(\tR\twebConnId\x12\x17\n" + "\auser_id\x18\x03 \x01(\tR\x06userId\x12C\n" + "\arequest\x18\x04 \x01(\v2).mattermost.pluginapi.v1.WebSocketRequestR\arequest\"'\n" + "%WebSocketMessageHasBeenPostedResponse\"\xf3\x01\n" + "\x1eOnSharedChannelsSyncMsgRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12?\n" + "\bsync_msg\x18\x02 \x01(\v2$.mattermost.pluginapi.v1.SyncMsgJsonR\asyncMsg\x12M\n" + "\x0eremote_cluster\x18\x03 \x01(\v2&.mattermost.pluginapi.v1.RemoteClusterR\rremoteCluster\"\x9d\x01\n" + "\x1fOnSharedChannelsSyncMsgResponse\x127\n" + "\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x12A\n" + "\bresponse\x18\x02 \x01(\v2%.mattermost.pluginapi.v1.SyncResponseR\bresponse\"\xaf\x01\n" + "\x1bOnSharedChannelsPingRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" + "\x0eremote_cluster\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.RemoteClusterR\rremoteCluster\"8\n" + "\x1cOnSharedChannelsPingResponse\x12\x18\n" + "\ahealthy\x18\x01 \x01(\bR\ahealthy\"\xaf\x02\n" + "(OnSharedChannelsAttachmentSyncMsgRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12>\n" + "\tfile_info\x18\x02 \x01(\v2!.mattermost.pluginapi.v1.FileInfoR\bfileInfo\x121\n" + "\x04post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\x04post\x12M\n" + "\x0eremote_cluster\x18\x04 \x01(\v2&.mattermost.pluginapi.v1.RemoteClusterR\rremoteCluster\"d\n" + ")OnSharedChannelsAttachmentSyncMsgResponse\x127\n" + "\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"\xf1\x01\n" + "*OnSharedChannelsProfileImageSyncMsgRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x121\n" + "\x04user\x18\x02 \x01(\v2\x1d.mattermost.pluginapi.v1.UserR\x04user\x12M\n" + "\x0eremote_cluster\x18\x03 \x01(\v2&.mattermost.pluginapi.v1.RemoteClusterR\rremoteCluster\"f\n" + "+OnSharedChannelsProfileImageSyncMsgResponse\x127\n" + "\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"\xae\x01\n" + "\x1aGenerateSupportDataRequest\x12A\n" + "\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" + "\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\"\x8f\x01\n" + "\x1bGenerateSupportDataResponse\x127\n" + "\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x127\n" + "\x05files\x18\x02 \x03(\v2!.mattermost.pluginapi.v1.FileDataR\x05filesBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3" var ( file_hooks_command_proto_rawDescOnce sync.Once file_hooks_command_proto_rawDescData []byte ) func file_hooks_command_proto_rawDescGZIP() []byte { file_hooks_command_proto_rawDescOnce.Do(func() { file_hooks_command_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_hooks_command_proto_rawDesc), len(file_hooks_command_proto_rawDesc))) }) return file_hooks_command_proto_rawDescData } var file_hooks_command_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_hooks_command_proto_goTypes = []any{ (*WebSocketRequest)(nil), // 0: mattermost.pluginapi.v1.WebSocketRequest (*SyncMsgJson)(nil), // 1: mattermost.pluginapi.v1.SyncMsgJson (*SyncResponse)(nil), // 2: mattermost.pluginapi.v1.SyncResponse (*RemoteCluster)(nil), // 3: mattermost.pluginapi.v1.RemoteCluster (*ExecuteCommandRequest)(nil), // 4: mattermost.pluginapi.v1.ExecuteCommandRequest (*ExecuteCommandResponse)(nil), // 5: mattermost.pluginapi.v1.ExecuteCommandResponse (*OnPluginClusterEventRequest)(nil), // 6: mattermost.pluginapi.v1.OnPluginClusterEventRequest (*OnPluginClusterEventResponse)(nil), // 7: mattermost.pluginapi.v1.OnPluginClusterEventResponse (*OnWebSocketConnectRequest)(nil), // 8: mattermost.pluginapi.v1.OnWebSocketConnectRequest (*OnWebSocketConnectResponse)(nil), // 9: mattermost.pluginapi.v1.OnWebSocketConnectResponse (*OnWebSocketDisconnectRequest)(nil), // 10: mattermost.pluginapi.v1.OnWebSocketDisconnectRequest (*OnWebSocketDisconnectResponse)(nil), // 11: mattermost.pluginapi.v1.OnWebSocketDisconnectResponse (*WebSocketMessageHasBeenPostedRequest)(nil), // 12: mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedRequest (*WebSocketMessageHasBeenPostedResponse)(nil), // 13: mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedResponse (*OnSharedChannelsSyncMsgRequest)(nil), // 14: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgRequest (*OnSharedChannelsSyncMsgResponse)(nil), // 15: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgResponse (*OnSharedChannelsPingRequest)(nil), // 16: mattermost.pluginapi.v1.OnSharedChannelsPingRequest (*OnSharedChannelsPingResponse)(nil), // 17: mattermost.pluginapi.v1.OnSharedChannelsPingResponse (*OnSharedChannelsAttachmentSyncMsgRequest)(nil), // 18: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest (*OnSharedChannelsAttachmentSyncMsgResponse)(nil), // 19: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgResponse (*OnSharedChannelsProfileImageSyncMsgRequest)(nil), // 20: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgRequest (*OnSharedChannelsProfileImageSyncMsgResponse)(nil), // 21: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgResponse (*GenerateSupportDataRequest)(nil), // 22: mattermost.pluginapi.v1.GenerateSupportDataRequest (*GenerateSupportDataResponse)(nil), // 23: mattermost.pluginapi.v1.GenerateSupportDataResponse (*structpb.Struct)(nil), // 24: google.protobuf.Struct (*RequestContext)(nil), // 25: mattermost.pluginapi.v1.RequestContext (*PluginContext)(nil), // 26: mattermost.pluginapi.v1.PluginContext (*CommandArgs)(nil), // 27: mattermost.pluginapi.v1.CommandArgs (*AppError)(nil), // 28: mattermost.pluginapi.v1.AppError (*CommandResponse)(nil), // 29: mattermost.pluginapi.v1.CommandResponse (*PluginClusterEvent)(nil), // 30: mattermost.pluginapi.v1.PluginClusterEvent (*FileInfo)(nil), // 31: mattermost.pluginapi.v1.FileInfo (*Post)(nil), // 32: mattermost.pluginapi.v1.Post (*User)(nil), // 33: mattermost.pluginapi.v1.User (*FileData)(nil), // 34: mattermost.pluginapi.v1.FileData } var file_hooks_command_proto_depIdxs = []int32{ 24, // 0: mattermost.pluginapi.v1.WebSocketRequest.data:type_name -> google.protobuf.Struct 25, // 1: mattermost.pluginapi.v1.ExecuteCommandRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 26, // 2: mattermost.pluginapi.v1.ExecuteCommandRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext 27, // 3: mattermost.pluginapi.v1.ExecuteCommandRequest.args:type_name -> mattermost.pluginapi.v1.CommandArgs 28, // 4: mattermost.pluginapi.v1.ExecuteCommandResponse.error:type_name -> mattermost.pluginapi.v1.AppError 29, // 5: mattermost.pluginapi.v1.ExecuteCommandResponse.response:type_name -> mattermost.pluginapi.v1.CommandResponse 25, // 6: mattermost.pluginapi.v1.OnPluginClusterEventRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 26, // 7: mattermost.pluginapi.v1.OnPluginClusterEventRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext 30, // 8: mattermost.pluginapi.v1.OnPluginClusterEventRequest.event:type_name -> mattermost.pluginapi.v1.PluginClusterEvent 25, // 9: mattermost.pluginapi.v1.OnWebSocketConnectRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 25, // 10: mattermost.pluginapi.v1.OnWebSocketDisconnectRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 25, // 11: mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 0, // 12: mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedRequest.request:type_name -> mattermost.pluginapi.v1.WebSocketRequest 25, // 13: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 1, // 14: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgRequest.sync_msg:type_name -> mattermost.pluginapi.v1.SyncMsgJson 3, // 15: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgRequest.remote_cluster:type_name -> mattermost.pluginapi.v1.RemoteCluster 28, // 16: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgResponse.error:type_name -> mattermost.pluginapi.v1.AppError 2, // 17: mattermost.pluginapi.v1.OnSharedChannelsSyncMsgResponse.response:type_name -> mattermost.pluginapi.v1.SyncResponse 25, // 18: mattermost.pluginapi.v1.OnSharedChannelsPingRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 3, // 19: mattermost.pluginapi.v1.OnSharedChannelsPingRequest.remote_cluster:type_name -> mattermost.pluginapi.v1.RemoteCluster 25, // 20: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 31, // 21: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest.file_info:type_name -> mattermost.pluginapi.v1.FileInfo 32, // 22: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest.post:type_name -> mattermost.pluginapi.v1.Post 3, // 23: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest.remote_cluster:type_name -> mattermost.pluginapi.v1.RemoteCluster 28, // 24: mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgResponse.error:type_name -> mattermost.pluginapi.v1.AppError 25, // 25: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 33, // 26: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgRequest.user:type_name -> mattermost.pluginapi.v1.User 3, // 27: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgRequest.remote_cluster:type_name -> mattermost.pluginapi.v1.RemoteCluster 28, // 28: mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgResponse.error:type_name -> mattermost.pluginapi.v1.AppError 25, // 29: mattermost.pluginapi.v1.GenerateSupportDataRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext 26, // 30: mattermost.pluginapi.v1.GenerateSupportDataRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext 28, // 31: mattermost.pluginapi.v1.GenerateSupportDataResponse.error:type_name -> mattermost.pluginapi.v1.AppError 34, // 32: mattermost.pluginapi.v1.GenerateSupportDataResponse.files:type_name -> mattermost.pluginapi.v1.FileData 33, // [33:33] is the sub-list for method output_type 33, // [33:33] is the sub-list for method input_type 33, // [33:33] is the sub-list for extension type_name 33, // [33:33] is the sub-list for extension extendee 0, // [0:33] is the sub-list for field type_name } func init() { file_hooks_command_proto_init() } func file_hooks_command_proto_init() { if File_hooks_command_proto != nil { return } file_common_proto_init() file_hooks_common_proto_init() file_api_remaining_proto_init() file_file_proto_init() file_post_proto_init() file_user_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_hooks_command_proto_rawDesc), len(file_hooks_command_proto_rawDesc)), NumEnums: 0, NumMessages: 24, NumExtensions: 0, NumServices: 0, }, GoTypes: file_hooks_command_proto_goTypes, DependencyIndexes: file_hooks_command_proto_depIdxs, MessageInfos: file_hooks_command_proto_msgTypes, }.Build() File_hooks_command_proto = out.File file_hooks_command_proto_goTypes = nil file_hooks_command_proto_depIdxs = nil }