room303

package
v1.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Room303API_AddRoomMember_FullMethodName         = "/api.v1alpha1.room303.Room303API/AddRoomMember"
	Room303API_RemoveRoomMember_FullMethodName      = "/api.v1alpha1.room303.Room303API/RemoveRoomMember"
	Room303API_ListRoomMembers_FullMethodName       = "/api.v1alpha1.room303.Room303API/ListRoomMembers"
	Room303API_SetAdminForRoomMember_FullMethodName = "/api.v1alpha1.room303.Room303API/SetAdminForRoomMember"
	Room303API_JoinRoom_FullMethodName              = "/api.v1alpha1.room303.Room303API/JoinRoom"
	Room303API_GetRoomMember_FullMethodName         = "/api.v1alpha1.room303.Room303API/GetRoomMember"
	Room303API_CreateMessage_FullMethodName         = "/api.v1alpha1.room303.Room303API/CreateMessage"
	Room303API_EditMessage_FullMethodName           = "/api.v1alpha1.room303.Room303API/EditMessage"
	Room303API_DeleteMessage_FullMethodName         = "/api.v1alpha1.room303.Room303API/DeleteMessage"
	Room303API_GetMessages_FullMethodName           = "/api.v1alpha1.room303.Room303API/GetMessages"
	Room303API_StreamMessageUpdates_FullMethodName  = "/api.v1alpha1.room303.Room303API/StreamMessageUpdates"
	Room303API_GetUnreadStats_FullMethodName        = "/api.v1alpha1.room303.Room303API/GetUnreadStats"
	Room303API_MarkMessageRead_FullMethodName       = "/api.v1alpha1.room303.Room303API/MarkMessageRead"
	Room303API_MarkAllMessagesRead_FullMethodName   = "/api.v1alpha1.room303.Room303API/MarkAllMessagesRead"
	Room303API_BulkMarkMessageRead_FullMethodName   = "/api.v1alpha1.room303.Room303API/BulkMarkMessageRead"
	Room303API_CreateRoom_FullMethodName            = "/api.v1alpha1.room303.Room303API/CreateRoom"
	Room303API_GetRoom_FullMethodName               = "/api.v1alpha1.room303.Room303API/GetRoom"
	Room303API_ListAllRooms_FullMethodName          = "/api.v1alpha1.room303.Room303API/ListAllRooms"
	Room303API_ListRoomsForMember_FullMethodName    = "/api.v1alpha1.room303.Room303API/ListRoomsForMember"
	Room303API_ArchiveRoom_FullMethodName           = "/api.v1alpha1.room303.Room303API/ArchiveRoom"
	Room303API_ListUsersNames_FullMethodName        = "/api.v1alpha1.room303.Room303API/ListUsersNames"
	Room303API_UpdateRoomConfig_FullMethodName      = "/api.v1alpha1.room303.Room303API/UpdateRoomConfig"
	Room303API_UpdateGlobalConfig_FullMethodName    = "/api.v1alpha1.room303.Room303API/UpdateGlobalConfig"
	Room303API_GetGlobalConfig_FullMethodName       = "/api.v1alpha1.room303.Room303API/GetGlobalConfig"
	Room303API_UpdateRoom_FullMethodName            = "/api.v1alpha1.room303.Room303API/UpdateRoom"
)

Variables

View Source
var File_api_v1alpha1_room303_member_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_room303_message_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_room303_notification_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_room303_room_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_room303_service_proto protoreflect.FileDescriptor
View Source
var Room303API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.room303.Room303API",
	HandlerType: (*Room303APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddRoomMember",
			Handler:    _Room303API_AddRoomMember_Handler,
		},
		{
			MethodName: "RemoveRoomMember",
			Handler:    _Room303API_RemoveRoomMember_Handler,
		},
		{
			MethodName: "ListRoomMembers",
			Handler:    _Room303API_ListRoomMembers_Handler,
		},
		{
			MethodName: "SetAdminForRoomMember",
			Handler:    _Room303API_SetAdminForRoomMember_Handler,
		},
		{
			MethodName: "JoinRoom",
			Handler:    _Room303API_JoinRoom_Handler,
		},
		{
			MethodName: "GetRoomMember",
			Handler:    _Room303API_GetRoomMember_Handler,
		},
		{
			MethodName: "CreateMessage",
			Handler:    _Room303API_CreateMessage_Handler,
		},
		{
			MethodName: "EditMessage",
			Handler:    _Room303API_EditMessage_Handler,
		},
		{
			MethodName: "DeleteMessage",
			Handler:    _Room303API_DeleteMessage_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _Room303API_GetMessages_Handler,
		},
		{
			MethodName: "GetUnreadStats",
			Handler:    _Room303API_GetUnreadStats_Handler,
		},
		{
			MethodName: "MarkMessageRead",
			Handler:    _Room303API_MarkMessageRead_Handler,
		},
		{
			MethodName: "MarkAllMessagesRead",
			Handler:    _Room303API_MarkAllMessagesRead_Handler,
		},
		{
			MethodName: "BulkMarkMessageRead",
			Handler:    _Room303API_BulkMarkMessageRead_Handler,
		},
		{
			MethodName: "CreateRoom",
			Handler:    _Room303API_CreateRoom_Handler,
		},
		{
			MethodName: "GetRoom",
			Handler:    _Room303API_GetRoom_Handler,
		},
		{
			MethodName: "ListAllRooms",
			Handler:    _Room303API_ListAllRooms_Handler,
		},
		{
			MethodName: "ListRoomsForMember",
			Handler:    _Room303API_ListRoomsForMember_Handler,
		},
		{
			MethodName: "ArchiveRoom",
			Handler:    _Room303API_ArchiveRoom_Handler,
		},
		{
			MethodName: "UpdateRoomConfig",
			Handler:    _Room303API_UpdateRoomConfig_Handler,
		},
		{
			MethodName: "UpdateGlobalConfig",
			Handler:    _Room303API_UpdateGlobalConfig_Handler,
		},
		{
			MethodName: "GetGlobalConfig",
			Handler:    _Room303API_GetGlobalConfig_Handler,
		},
		{
			MethodName: "UpdateRoom",
			Handler:    _Room303API_UpdateRoom_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamMessageUpdates",
			Handler:       _Room303API_StreamMessageUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListUsersNames",
			Handler:       _Room303API_ListUsersNames_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/v1alpha1/room303/service.proto",
}

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

Functions

func RegisterRoom303APIServer

func RegisterRoom303APIServer(s grpc.ServiceRegistrar, srv Room303APIServer)

Types

type AddRoomMemberRequest

type AddRoomMemberRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Admin  bool   `protobuf:"varint,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRoomMemberRequest) Descriptor deprecated

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

Deprecated: Use AddRoomMemberRequest.ProtoReflect.Descriptor instead.

func (*AddRoomMemberRequest) GetAdmin

func (x *AddRoomMemberRequest) GetAdmin() bool

func (*AddRoomMemberRequest) GetRoomId

func (x *AddRoomMemberRequest) GetRoomId() string

func (*AddRoomMemberRequest) GetUserId

func (x *AddRoomMemberRequest) GetUserId() string

func (*AddRoomMemberRequest) ProtoMessage

func (*AddRoomMemberRequest) ProtoMessage()

func (*AddRoomMemberRequest) ProtoReflect

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

func (*AddRoomMemberRequest) Reset

func (x *AddRoomMemberRequest) Reset()

func (*AddRoomMemberRequest) String

func (x *AddRoomMemberRequest) String() string

type ArchiveRoomRequest

type ArchiveRoomRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchiveRoomRequest) Descriptor deprecated

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

Deprecated: Use ArchiveRoomRequest.ProtoReflect.Descriptor instead.

func (*ArchiveRoomRequest) GetRoomId

func (x *ArchiveRoomRequest) GetRoomId() string

func (*ArchiveRoomRequest) ProtoMessage

func (*ArchiveRoomRequest) ProtoMessage()

func (*ArchiveRoomRequest) ProtoReflect

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

func (*ArchiveRoomRequest) Reset

func (x *ArchiveRoomRequest) Reset()

func (*ArchiveRoomRequest) String

func (x *ArchiveRoomRequest) String() string

type BulkMarkMessageReadRequest

type BulkMarkMessageReadRequest struct {
	RoomId     string   `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	MessageIds []string `protobuf:"bytes,2,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkMarkMessageReadRequest) Descriptor deprecated

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

Deprecated: Use BulkMarkMessageReadRequest.ProtoReflect.Descriptor instead.

func (*BulkMarkMessageReadRequest) GetMessageIds

func (x *BulkMarkMessageReadRequest) GetMessageIds() []string

func (*BulkMarkMessageReadRequest) GetRoomId

func (x *BulkMarkMessageReadRequest) GetRoomId() string

func (*BulkMarkMessageReadRequest) ProtoMessage

func (*BulkMarkMessageReadRequest) ProtoMessage()

func (*BulkMarkMessageReadRequest) ProtoReflect

func (*BulkMarkMessageReadRequest) Reset

func (x *BulkMarkMessageReadRequest) Reset()

func (*BulkMarkMessageReadRequest) String

func (x *BulkMarkMessageReadRequest) String() string

type BulkMarkMessageReadResponse

type BulkMarkMessageReadResponse struct {
	Messages []*commons.Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkMarkMessageReadResponse) Descriptor deprecated

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

Deprecated: Use BulkMarkMessageReadResponse.ProtoReflect.Descriptor instead.

func (*BulkMarkMessageReadResponse) GetMessages

func (x *BulkMarkMessageReadResponse) GetMessages() []*commons.Message

func (*BulkMarkMessageReadResponse) ProtoMessage

func (*BulkMarkMessageReadResponse) ProtoMessage()

func (*BulkMarkMessageReadResponse) ProtoReflect

func (*BulkMarkMessageReadResponse) Reset

func (x *BulkMarkMessageReadResponse) Reset()

func (*BulkMarkMessageReadResponse) String

func (x *BulkMarkMessageReadResponse) String() string

type CreateMessageRequest

type CreateMessageRequest struct {
	RoomId  string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// nonce  is set by UI and used to tell if the message coming through the message update stream was created by that client.
	// this is so when the user is logged in on multiple clients (different device, tabs, browser) they can see their updated message on those clients.
	Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMessageRequest) Descriptor deprecated

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

Deprecated: Use CreateMessageRequest.ProtoReflect.Descriptor instead.

func (*CreateMessageRequest) GetNonce

func (x *CreateMessageRequest) GetNonce() string

func (*CreateMessageRequest) GetPayload

func (x *CreateMessageRequest) GetPayload() string

func (*CreateMessageRequest) GetRoomId

func (x *CreateMessageRequest) GetRoomId() string

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 CreateMessageResponse

type CreateMessageResponse struct {
	Message *commons.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMessageResponse) Descriptor deprecated

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

Deprecated: Use CreateMessageResponse.ProtoReflect.Descriptor instead.

func (*CreateMessageResponse) GetMessage

func (x *CreateMessageResponse) GetMessage() *commons.Message

func (*CreateMessageResponse) ProtoMessage

func (*CreateMessageResponse) ProtoMessage()

func (*CreateMessageResponse) ProtoReflect

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

func (*CreateMessageResponse) Reset

func (x *CreateMessageResponse) Reset()

func (*CreateMessageResponse) String

func (x *CreateMessageResponse) String() string

type CreateRoomRequest

type CreateRoomRequest struct {
	Name    string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type    commons.RoomType `protobuf:"varint,2,opt,name=type,proto3,enum=api.commons.RoomType" json:"type,omitempty"`
	Members []string         `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	// Optional id of the permission group assigned to this room.
	PermissionGroupId *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=permission_group_id,json=permissionGroupId,proto3" json:"permission_group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoomRequest) Descriptor deprecated

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

Deprecated: Use CreateRoomRequest.ProtoReflect.Descriptor instead.

func (*CreateRoomRequest) GetMembers

func (x *CreateRoomRequest) GetMembers() []string

func (*CreateRoomRequest) GetName

func (x *CreateRoomRequest) GetName() string

func (*CreateRoomRequest) GetPermissionGroupId added in v1.7.70

func (x *CreateRoomRequest) GetPermissionGroupId() *wrapperspb.StringValue

func (*CreateRoomRequest) GetType

func (x *CreateRoomRequest) GetType() commons.RoomType

func (*CreateRoomRequest) ProtoMessage

func (*CreateRoomRequest) ProtoMessage()

func (*CreateRoomRequest) ProtoReflect

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

func (*CreateRoomRequest) Reset

func (x *CreateRoomRequest) Reset()

func (*CreateRoomRequest) String

func (x *CreateRoomRequest) String() string

type DeleteMessageRequest

type DeleteMessageRequest struct {
	MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	RoomId    string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// nonce  is set by UI and used to tell if the message coming through the message update stream was created by that client.
	// this is so when the user is logged in on multiple clients (different device, tabs, browser) they can see their updated message on those clients.
	Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMessageRequest) Descriptor deprecated

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

Deprecated: Use DeleteMessageRequest.ProtoReflect.Descriptor instead.

func (*DeleteMessageRequest) GetMessageId

func (x *DeleteMessageRequest) GetMessageId() string

func (*DeleteMessageRequest) GetNonce

func (x *DeleteMessageRequest) GetNonce() string

func (*DeleteMessageRequest) GetRoomId

func (x *DeleteMessageRequest) GetRoomId() 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 DeleteMessageResponse

type DeleteMessageResponse struct {
	Message *commons.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMessageResponse) Descriptor deprecated

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

Deprecated: Use DeleteMessageResponse.ProtoReflect.Descriptor instead.

func (*DeleteMessageResponse) GetMessage

func (x *DeleteMessageResponse) GetMessage() *commons.Message

func (*DeleteMessageResponse) ProtoMessage

func (*DeleteMessageResponse) ProtoMessage()

func (*DeleteMessageResponse) ProtoReflect

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

func (*DeleteMessageResponse) Reset

func (x *DeleteMessageResponse) Reset()

func (*DeleteMessageResponse) String

func (x *DeleteMessageResponse) String() string

type EditMessageRequest

type EditMessageRequest struct {
	MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	Payload   string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	RoomId    string `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// nonce  is set by UI and used to tell if the message coming through the message update stream was created by that client.
	// this is so when the user is logged in on multiple clients (different device, tabs, browser) they can see their updated message on those clients.
	Nonce string `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*EditMessageRequest) Descriptor deprecated

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

Deprecated: Use EditMessageRequest.ProtoReflect.Descriptor instead.

func (*EditMessageRequest) GetMessageId

func (x *EditMessageRequest) GetMessageId() string

func (*EditMessageRequest) GetNonce

func (x *EditMessageRequest) GetNonce() string

func (*EditMessageRequest) GetPayload

func (x *EditMessageRequest) GetPayload() string

func (*EditMessageRequest) GetRoomId

func (x *EditMessageRequest) GetRoomId() string

func (*EditMessageRequest) ProtoMessage

func (*EditMessageRequest) ProtoMessage()

func (*EditMessageRequest) ProtoReflect

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

func (*EditMessageRequest) Reset

func (x *EditMessageRequest) Reset()

func (*EditMessageRequest) String

func (x *EditMessageRequest) String() string

type EditMessageResponse

type EditMessageResponse struct {
	Message *commons.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EditMessageResponse) Descriptor deprecated

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

Deprecated: Use EditMessageResponse.ProtoReflect.Descriptor instead.

func (*EditMessageResponse) GetMessage

func (x *EditMessageResponse) GetMessage() *commons.Message

func (*EditMessageResponse) ProtoMessage

func (*EditMessageResponse) ProtoMessage()

func (*EditMessageResponse) ProtoReflect

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

func (*EditMessageResponse) Reset

func (x *EditMessageResponse) Reset()

func (*EditMessageResponse) String

func (x *EditMessageResponse) String() string

type GetGlobalConfigRequest added in v1.7.43

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

request to get global configuration

func (*GetGlobalConfigRequest) Descriptor deprecated added in v1.7.43

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

Deprecated: Use GetGlobalConfigRequest.ProtoReflect.Descriptor instead.

func (*GetGlobalConfigRequest) ProtoMessage added in v1.7.43

func (*GetGlobalConfigRequest) ProtoMessage()

func (*GetGlobalConfigRequest) ProtoReflect added in v1.7.43

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

func (*GetGlobalConfigRequest) Reset added in v1.7.43

func (x *GetGlobalConfigRequest) Reset()

func (*GetGlobalConfigRequest) String added in v1.7.43

func (x *GetGlobalConfigRequest) String() string

type GetGlobalConfigResponse added in v1.7.43

type GetGlobalConfigResponse struct {

	// last edited_by user
	EditedBy string `protobuf:"bytes,1,opt,name=edited_by,json=editedBy,proto3" json:"edited_by,omitempty"`
	// global configuration details
	Config *commons.GlobalConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// date created
	DateCreated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"`
	// last edited on
	LastEdited *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_edited,json=lastEdited,proto3" json:"last_edited,omitempty"`
	// contains filtered or unexported fields
}

response to get global configuration

func (*GetGlobalConfigResponse) Descriptor deprecated added in v1.7.43

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

Deprecated: Use GetGlobalConfigResponse.ProtoReflect.Descriptor instead.

func (*GetGlobalConfigResponse) GetConfig added in v1.7.43

func (*GetGlobalConfigResponse) GetDateCreated added in v1.7.43

func (x *GetGlobalConfigResponse) GetDateCreated() *timestamppb.Timestamp

func (*GetGlobalConfigResponse) GetEditedBy added in v1.7.43

func (x *GetGlobalConfigResponse) GetEditedBy() string

func (*GetGlobalConfigResponse) GetLastEdited added in v1.7.43

func (x *GetGlobalConfigResponse) GetLastEdited() *timestamppb.Timestamp

func (*GetGlobalConfigResponse) ProtoMessage added in v1.7.43

func (*GetGlobalConfigResponse) ProtoMessage()

func (*GetGlobalConfigResponse) ProtoReflect added in v1.7.43

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

func (*GetGlobalConfigResponse) Reset added in v1.7.43

func (x *GetGlobalConfigResponse) Reset()

func (*GetGlobalConfigResponse) String added in v1.7.43

func (x *GetGlobalConfigResponse) String() string

type GetMessagesRequest

type GetMessagesRequest struct {
	RoomId string                 `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Offset *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMessagesRequest) Descriptor deprecated

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

Deprecated: Use GetMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetMessagesRequest) GetOffset

func (x *GetMessagesRequest) GetOffset() *timestamppb.Timestamp

func (*GetMessagesRequest) GetRoomId

func (x *GetMessagesRequest) GetRoomId() string

func (*GetMessagesRequest) ProtoMessage

func (*GetMessagesRequest) ProtoMessage()

func (*GetMessagesRequest) ProtoReflect

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

func (*GetMessagesRequest) Reset

func (x *GetMessagesRequest) Reset()

func (*GetMessagesRequest) String

func (x *GetMessagesRequest) String() string

type GetMessagesResponse

type GetMessagesResponse struct {
	Messages []*commons.Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMessagesResponse) Descriptor deprecated

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

Deprecated: Use GetMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetMessagesResponse) GetMessages

func (x *GetMessagesResponse) GetMessages() []*commons.Message

func (*GetMessagesResponse) ProtoMessage

func (*GetMessagesResponse) ProtoMessage()

func (*GetMessagesResponse) ProtoReflect

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

func (*GetMessagesResponse) Reset

func (x *GetMessagesResponse) Reset()

func (*GetMessagesResponse) String

func (x *GetMessagesResponse) String() string

type GetRoomMemberRequest

type GetRoomMemberRequest struct {
	RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoomMemberRequest) Descriptor deprecated

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

Deprecated: Use GetRoomMemberRequest.ProtoReflect.Descriptor instead.

func (*GetRoomMemberRequest) GetRoomId

func (x *GetRoomMemberRequest) GetRoomId() string

func (*GetRoomMemberRequest) GetUserId

func (x *GetRoomMemberRequest) GetUserId() string

func (*GetRoomMemberRequest) ProtoMessage

func (*GetRoomMemberRequest) ProtoMessage()

func (*GetRoomMemberRequest) ProtoReflect

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

func (*GetRoomMemberRequest) Reset

func (x *GetRoomMemberRequest) Reset()

func (*GetRoomMemberRequest) String

func (x *GetRoomMemberRequest) String() string

type GetRoomRequest

type GetRoomRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoomRequest) Descriptor deprecated

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

Deprecated: Use GetRoomRequest.ProtoReflect.Descriptor instead.

func (*GetRoomRequest) GetRoomId

func (x *GetRoomRequest) GetRoomId() string

func (*GetRoomRequest) ProtoMessage

func (*GetRoomRequest) ProtoMessage()

func (*GetRoomRequest) ProtoReflect

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

func (*GetRoomRequest) Reset

func (x *GetRoomRequest) Reset()

func (*GetRoomRequest) String

func (x *GetRoomRequest) String() string

type GetUnreadStatsRequest

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

func (*GetUnreadStatsRequest) Descriptor deprecated

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

Deprecated: Use GetUnreadStatsRequest.ProtoReflect.Descriptor instead.

func (*GetUnreadStatsRequest) ProtoMessage

func (*GetUnreadStatsRequest) ProtoMessage()

func (*GetUnreadStatsRequest) ProtoReflect

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

func (*GetUnreadStatsRequest) Reset

func (x *GetUnreadStatsRequest) Reset()

func (*GetUnreadStatsRequest) String

func (x *GetUnreadStatsRequest) String() string

type GetUnreadStatsResponse

type GetUnreadStatsResponse struct {
	Stats []*commons.MessageStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUnreadStatsResponse) Descriptor deprecated

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

Deprecated: Use GetUnreadStatsResponse.ProtoReflect.Descriptor instead.

func (*GetUnreadStatsResponse) GetStats

func (x *GetUnreadStatsResponse) GetStats() []*commons.MessageStat

func (*GetUnreadStatsResponse) ProtoMessage

func (*GetUnreadStatsResponse) ProtoMessage()

func (*GetUnreadStatsResponse) ProtoReflect

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

func (*GetUnreadStatsResponse) Reset

func (x *GetUnreadStatsResponse) Reset()

func (*GetUnreadStatsResponse) String

func (x *GetUnreadStatsResponse) String() string

type JoinRoomRequest

type JoinRoomRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinRoomRequest) Descriptor deprecated

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

Deprecated: Use JoinRoomRequest.ProtoReflect.Descriptor instead.

func (*JoinRoomRequest) GetRoomId

func (x *JoinRoomRequest) GetRoomId() string

func (*JoinRoomRequest) ProtoMessage

func (*JoinRoomRequest) ProtoMessage()

func (*JoinRoomRequest) ProtoReflect

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

func (*JoinRoomRequest) Reset

func (x *JoinRoomRequest) Reset()

func (*JoinRoomRequest) String

func (x *JoinRoomRequest) String() string

type ListAllRoomsRequest

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

func (*ListAllRoomsRequest) Descriptor deprecated

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

Deprecated: Use ListAllRoomsRequest.ProtoReflect.Descriptor instead.

func (*ListAllRoomsRequest) ProtoMessage

func (*ListAllRoomsRequest) ProtoMessage()

func (*ListAllRoomsRequest) ProtoReflect

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

func (*ListAllRoomsRequest) Reset

func (x *ListAllRoomsRequest) Reset()

func (*ListAllRoomsRequest) String

func (x *ListAllRoomsRequest) String() string

type ListRoomMembersRequest

type ListRoomMembersRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoomMembersRequest) Descriptor deprecated

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

Deprecated: Use ListRoomMembersRequest.ProtoReflect.Descriptor instead.

func (*ListRoomMembersRequest) GetRoomId

func (x *ListRoomMembersRequest) GetRoomId() string

func (*ListRoomMembersRequest) ProtoMessage

func (*ListRoomMembersRequest) ProtoMessage()

func (*ListRoomMembersRequest) ProtoReflect

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

func (*ListRoomMembersRequest) Reset

func (x *ListRoomMembersRequest) Reset()

func (*ListRoomMembersRequest) String

func (x *ListRoomMembersRequest) String() string

type ListRoomMembersResponse

type ListRoomMembersResponse struct {
	Members []*commons.Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoomMembersResponse) Descriptor deprecated

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

Deprecated: Use ListRoomMembersResponse.ProtoReflect.Descriptor instead.

func (*ListRoomMembersResponse) GetMembers

func (x *ListRoomMembersResponse) GetMembers() []*commons.Member

func (*ListRoomMembersResponse) ProtoMessage

func (*ListRoomMembersResponse) ProtoMessage()

func (*ListRoomMembersResponse) ProtoReflect

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

func (*ListRoomMembersResponse) Reset

func (x *ListRoomMembersResponse) Reset()

func (*ListRoomMembersResponse) String

func (x *ListRoomMembersResponse) String() string

type ListRoomsForMemberRequest

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

func (*ListRoomsForMemberRequest) Descriptor deprecated

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

Deprecated: Use ListRoomsForMemberRequest.ProtoReflect.Descriptor instead.

func (*ListRoomsForMemberRequest) ProtoMessage

func (*ListRoomsForMemberRequest) ProtoMessage()

func (*ListRoomsForMemberRequest) ProtoReflect

func (*ListRoomsForMemberRequest) Reset

func (x *ListRoomsForMemberRequest) Reset()

func (*ListRoomsForMemberRequest) String

func (x *ListRoomsForMemberRequest) String() string

type ListRoomsResponse

type ListRoomsResponse struct {
	Rooms []*commons.Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoomsResponse) Descriptor deprecated

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

Deprecated: Use ListRoomsResponse.ProtoReflect.Descriptor instead.

func (*ListRoomsResponse) GetRooms

func (x *ListRoomsResponse) GetRooms() []*commons.Room

func (*ListRoomsResponse) ProtoMessage

func (*ListRoomsResponse) ProtoMessage()

func (*ListRoomsResponse) ProtoReflect

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

func (*ListRoomsResponse) Reset

func (x *ListRoomsResponse) Reset()

func (*ListRoomsResponse) String

func (x *ListRoomsResponse) String() string

type ListUsersNamesRequest added in v1.7.16

type ListUsersNamesRequest struct {

	// Filter by org ID.
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Return a list of only user agents (users whose default app is agent). When this is false all users are returned.
	Agent bool `protobuf:"varint,2,opt,name=agent,proto3" json:"agent,omitempty"`
	// Filter by the user's archived status
	ArchivedFilter commons.UserArchivedStateFilter `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for the ListUsersNames rpc.

func (*ListUsersNamesRequest) Descriptor deprecated added in v1.7.16

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

Deprecated: Use ListUsersNamesRequest.ProtoReflect.Descriptor instead.

func (*ListUsersNamesRequest) GetAgent added in v1.7.16

func (x *ListUsersNamesRequest) GetAgent() bool

func (*ListUsersNamesRequest) GetArchivedFilter added in v1.7.16

func (x *ListUsersNamesRequest) GetArchivedFilter() commons.UserArchivedStateFilter

func (*ListUsersNamesRequest) GetOrgId added in v1.7.16

func (x *ListUsersNamesRequest) GetOrgId() string

func (*ListUsersNamesRequest) ProtoMessage added in v1.7.16

func (*ListUsersNamesRequest) ProtoMessage()

func (*ListUsersNamesRequest) ProtoReflect added in v1.7.16

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

func (*ListUsersNamesRequest) Reset added in v1.7.16

func (x *ListUsersNamesRequest) Reset()

func (*ListUsersNamesRequest) String added in v1.7.16

func (x *ListUsersNamesRequest) String() string

type ListUsersNamesResponse added in v1.7.16

type ListUsersNamesResponse struct {

	// List of returned users with names and ids
	UserDetails []*UserDetails `protobuf:"bytes,1,rep,name=user_details,json=userDetails,proto3" json:"user_details,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListUsersNames rpc.

func (*ListUsersNamesResponse) Descriptor deprecated added in v1.7.16

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

Deprecated: Use ListUsersNamesResponse.ProtoReflect.Descriptor instead.

func (*ListUsersNamesResponse) GetUserDetails added in v1.7.16

func (x *ListUsersNamesResponse) GetUserDetails() []*UserDetails

func (*ListUsersNamesResponse) ProtoMessage added in v1.7.16

func (*ListUsersNamesResponse) ProtoMessage()

func (*ListUsersNamesResponse) ProtoReflect added in v1.7.16

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

func (*ListUsersNamesResponse) Reset added in v1.7.16

func (x *ListUsersNamesResponse) Reset()

func (*ListUsersNamesResponse) String added in v1.7.16

func (x *ListUsersNamesResponse) String() string

type MarkAllMessagesReadRequest

type MarkAllMessagesReadRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarkAllMessagesReadRequest) Descriptor deprecated

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

Deprecated: Use MarkAllMessagesReadRequest.ProtoReflect.Descriptor instead.

func (*MarkAllMessagesReadRequest) GetRoomId

func (x *MarkAllMessagesReadRequest) GetRoomId() string

func (*MarkAllMessagesReadRequest) ProtoMessage

func (*MarkAllMessagesReadRequest) ProtoMessage()

func (*MarkAllMessagesReadRequest) ProtoReflect

func (*MarkAllMessagesReadRequest) Reset

func (x *MarkAllMessagesReadRequest) Reset()

func (*MarkAllMessagesReadRequest) String

func (x *MarkAllMessagesReadRequest) String() string

type MarkAllMessagesReadResponse

type MarkAllMessagesReadResponse struct {
	RowsUpdated []*commons.Message `protobuf:"bytes,1,rep,name=rows_updated,json=rowsUpdated,proto3" json:"rows_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*MarkAllMessagesReadResponse) Descriptor deprecated

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

Deprecated: Use MarkAllMessagesReadResponse.ProtoReflect.Descriptor instead.

func (*MarkAllMessagesReadResponse) GetRowsUpdated

func (x *MarkAllMessagesReadResponse) GetRowsUpdated() []*commons.Message

func (*MarkAllMessagesReadResponse) ProtoMessage

func (*MarkAllMessagesReadResponse) ProtoMessage()

func (*MarkAllMessagesReadResponse) ProtoReflect

func (*MarkAllMessagesReadResponse) Reset

func (x *MarkAllMessagesReadResponse) Reset()

func (*MarkAllMessagesReadResponse) String

func (x *MarkAllMessagesReadResponse) String() string

type MarkMessageReadRequest

type MarkMessageReadRequest struct {
	MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	MemberId  string `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarkMessageReadRequest) Descriptor deprecated

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

Deprecated: Use MarkMessageReadRequest.ProtoReflect.Descriptor instead.

func (*MarkMessageReadRequest) GetMemberId

func (x *MarkMessageReadRequest) GetMemberId() string

func (*MarkMessageReadRequest) GetMessageId

func (x *MarkMessageReadRequest) GetMessageId() string

func (*MarkMessageReadRequest) ProtoMessage

func (*MarkMessageReadRequest) ProtoMessage()

func (*MarkMessageReadRequest) ProtoReflect

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

func (*MarkMessageReadRequest) Reset

func (x *MarkMessageReadRequest) Reset()

func (*MarkMessageReadRequest) String

func (x *MarkMessageReadRequest) String() string

type MarkMessageReadResponse

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

func (*MarkMessageReadResponse) Descriptor deprecated

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

Deprecated: Use MarkMessageReadResponse.ProtoReflect.Descriptor instead.

func (*MarkMessageReadResponse) ProtoMessage

func (*MarkMessageReadResponse) ProtoMessage()

func (*MarkMessageReadResponse) ProtoReflect

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

func (*MarkMessageReadResponse) Reset

func (x *MarkMessageReadResponse) Reset()

func (*MarkMessageReadResponse) String

func (x *MarkMessageReadResponse) String() string

type RemoveRoomMemberRequest

type RemoveRoomMemberRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRoomMemberRequest) Descriptor deprecated

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

Deprecated: Use RemoveRoomMemberRequest.ProtoReflect.Descriptor instead.

func (*RemoveRoomMemberRequest) GetRoomId

func (x *RemoveRoomMemberRequest) GetRoomId() string

func (*RemoveRoomMemberRequest) GetUserId

func (x *RemoveRoomMemberRequest) GetUserId() string

func (*RemoveRoomMemberRequest) ProtoMessage

func (*RemoveRoomMemberRequest) ProtoMessage()

func (*RemoveRoomMemberRequest) ProtoReflect

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

func (*RemoveRoomMemberRequest) Reset

func (x *RemoveRoomMemberRequest) Reset()

func (*RemoveRoomMemberRequest) String

func (x *RemoveRoomMemberRequest) String() string

type RemoveRoomMemberResponse

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

func (*RemoveRoomMemberResponse) Descriptor deprecated

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

Deprecated: Use RemoveRoomMemberResponse.ProtoReflect.Descriptor instead.

func (*RemoveRoomMemberResponse) ProtoMessage

func (*RemoveRoomMemberResponse) ProtoMessage()

func (*RemoveRoomMemberResponse) ProtoReflect

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

func (*RemoveRoomMemberResponse) Reset

func (x *RemoveRoomMemberResponse) Reset()

func (*RemoveRoomMemberResponse) String

func (x *RemoveRoomMemberResponse) String() string

type Room303APIClient

type Room303APIClient interface {
	// Member
	//
	// Add a new member to a room, you must be a room admin in order to do that
	AddRoomMember(ctx context.Context, in *AddRoomMemberRequest, opts ...grpc.CallOption) (*commons.Member, error)
	// Remove room member (kick), the room member will not receive notifications from that room
	RemoveRoomMember(ctx context.Context, in *RemoveRoomMemberRequest, opts ...grpc.CallOption) (*RemoveRoomMemberResponse, error)
	// List the members of this room
	ListRoomMembers(ctx context.Context, in *ListRoomMembersRequest, opts ...grpc.CallOption) (*ListRoomMembersResponse, error)
	// Set a room member as admin, you must be a room admin in order to do this.
	SetAdminForRoomMember(ctx context.Context, in *SetAdminForRoomMemberRequest, opts ...grpc.CallOption) (*SetAdminForRoomMemberResponse, error)
	// adds new member to a room and does not require the member to be admin
	JoinRoom(ctx context.Context, in *JoinRoomRequest, opts ...grpc.CallOption) (*commons.Room, error)
	// gets the member entity from the provided room if it exists
	GetRoomMember(ctx context.Context, in *GetRoomMemberRequest, opts ...grpc.CallOption) (*commons.Member, error)
	// Message
	CreateMessage(ctx context.Context, in *CreateMessageRequest, opts ...grpc.CallOption) (*CreateMessageResponse, error)
	EditMessage(ctx context.Context, in *EditMessageRequest, opts ...grpc.CallOption) (*EditMessageResponse, error)
	DeleteMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageResponse, error)
	GetMessages(ctx context.Context, in *GetMessagesRequest, opts ...grpc.CallOption) (*GetMessagesResponse, error)
	StreamMessageUpdates(ctx context.Context, in *StreamMessageUpdatesRequest, opts ...grpc.CallOption) (Room303API_StreamMessageUpdatesClient, error)
	GetUnreadStats(ctx context.Context, in *GetUnreadStatsRequest, opts ...grpc.CallOption) (*GetUnreadStatsResponse, error)
	MarkMessageRead(ctx context.Context, in *MarkMessageReadRequest, opts ...grpc.CallOption) (*MarkMessageReadResponse, error)
	MarkAllMessagesRead(ctx context.Context, in *MarkAllMessagesReadRequest, opts ...grpc.CallOption) (*MarkAllMessagesReadResponse, error)
	BulkMarkMessageRead(ctx context.Context, in *BulkMarkMessageReadRequest, opts ...grpc.CallOption) (*BulkMarkMessageReadResponse, error)
	// Room
	CreateRoom(ctx context.Context, in *CreateRoomRequest, opts ...grpc.CallOption) (*commons.Room, error)
	GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*commons.Room, error)
	ListAllRooms(ctx context.Context, in *ListAllRoomsRequest, opts ...grpc.CallOption) (*ListRoomsResponse, error)
	ListRoomsForMember(ctx context.Context, in *ListRoomsForMemberRequest, opts ...grpc.CallOption) (*ListRoomsResponse, error)
	ArchiveRoom(ctx context.Context, in *ArchiveRoomRequest, opts ...grpc.CallOption) (*commons.Room, error)
	// ListUsersNames returns a list of users with names and ids
	ListUsersNames(ctx context.Context, in *ListUsersNamesRequest, opts ...grpc.CallOption) (Room303API_ListUsersNamesClient, error)
	// allow room configurations to be updated
	UpdateRoomConfig(ctx context.Context, in *UpdateRoomConfigRequest, opts ...grpc.CallOption) (*commons.Room, error)
	// update global configuration
	UpdateGlobalConfig(ctx context.Context, in *UpdateGlobalConfigRequest, opts ...grpc.CallOption) (*UpdateGlobalConfigResponse, error)
	// get global configuration
	GetGlobalConfig(ctx context.Context, in *GetGlobalConfigRequest, opts ...grpc.CallOption) (*GetGlobalConfigResponse, error)
	// allow room to be updated
	UpdateRoom(ctx context.Context, in *UpdateRoomRequest, opts ...grpc.CallOption) (*commons.Room, error)
}

Room303APIClient is the client API for Room303API service.

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

func NewRoom303APIClient

func NewRoom303APIClient(cc grpc.ClientConnInterface) Room303APIClient

type Room303APIServer

type Room303APIServer interface {
	// Member
	//
	// Add a new member to a room, you must be a room admin in order to do that
	AddRoomMember(context.Context, *AddRoomMemberRequest) (*commons.Member, error)
	// Remove room member (kick), the room member will not receive notifications from that room
	RemoveRoomMember(context.Context, *RemoveRoomMemberRequest) (*RemoveRoomMemberResponse, error)
	// List the members of this room
	ListRoomMembers(context.Context, *ListRoomMembersRequest) (*ListRoomMembersResponse, error)
	// Set a room member as admin, you must be a room admin in order to do this.
	SetAdminForRoomMember(context.Context, *SetAdminForRoomMemberRequest) (*SetAdminForRoomMemberResponse, error)
	// adds new member to a room and does not require the member to be admin
	JoinRoom(context.Context, *JoinRoomRequest) (*commons.Room, error)
	// gets the member entity from the provided room if it exists
	GetRoomMember(context.Context, *GetRoomMemberRequest) (*commons.Member, error)
	// Message
	CreateMessage(context.Context, *CreateMessageRequest) (*CreateMessageResponse, error)
	EditMessage(context.Context, *EditMessageRequest) (*EditMessageResponse, error)
	DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error)
	GetMessages(context.Context, *GetMessagesRequest) (*GetMessagesResponse, error)
	StreamMessageUpdates(*StreamMessageUpdatesRequest, Room303API_StreamMessageUpdatesServer) error
	GetUnreadStats(context.Context, *GetUnreadStatsRequest) (*GetUnreadStatsResponse, error)
	MarkMessageRead(context.Context, *MarkMessageReadRequest) (*MarkMessageReadResponse, error)
	MarkAllMessagesRead(context.Context, *MarkAllMessagesReadRequest) (*MarkAllMessagesReadResponse, error)
	BulkMarkMessageRead(context.Context, *BulkMarkMessageReadRequest) (*BulkMarkMessageReadResponse, error)
	// Room
	CreateRoom(context.Context, *CreateRoomRequest) (*commons.Room, error)
	GetRoom(context.Context, *GetRoomRequest) (*commons.Room, error)
	ListAllRooms(context.Context, *ListAllRoomsRequest) (*ListRoomsResponse, error)
	ListRoomsForMember(context.Context, *ListRoomsForMemberRequest) (*ListRoomsResponse, error)
	ArchiveRoom(context.Context, *ArchiveRoomRequest) (*commons.Room, error)
	// ListUsersNames returns a list of users with names and ids
	ListUsersNames(*ListUsersNamesRequest, Room303API_ListUsersNamesServer) error
	// allow room configurations to be updated
	UpdateRoomConfig(context.Context, *UpdateRoomConfigRequest) (*commons.Room, error)
	// update global configuration
	UpdateGlobalConfig(context.Context, *UpdateGlobalConfigRequest) (*UpdateGlobalConfigResponse, error)
	// get global configuration
	GetGlobalConfig(context.Context, *GetGlobalConfigRequest) (*GetGlobalConfigResponse, error)
	// allow room to be updated
	UpdateRoom(context.Context, *UpdateRoomRequest) (*commons.Room, error)
	// contains filtered or unexported methods
}

Room303APIServer is the server API for Room303API service. All implementations must embed UnimplementedRoom303APIServer for forward compatibility.

type Room303API_ListUsersNamesClient added in v1.7.16

type Room303API_ListUsersNamesClient interface {
	Recv() (*ListUsersNamesResponse, error)
	grpc.ClientStream
}

type Room303API_ListUsersNamesServer added in v1.7.16

type Room303API_ListUsersNamesServer interface {
	Send(*ListUsersNamesResponse) error
	grpc.ServerStream
}

type Room303API_StreamMessageUpdatesClient

type Room303API_StreamMessageUpdatesClient interface {
	Recv() (*StreamMessageUpdatesResponse, error)
	grpc.ClientStream
}

type Room303API_StreamMessageUpdatesServer

type Room303API_StreamMessageUpdatesServer interface {
	Send(*StreamMessageUpdatesResponse) error
	grpc.ServerStream
}

type SetAdminForRoomMemberRequest

type SetAdminForRoomMemberRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAdminForRoomMemberRequest) Descriptor deprecated

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

Deprecated: Use SetAdminForRoomMemberRequest.ProtoReflect.Descriptor instead.

func (*SetAdminForRoomMemberRequest) GetRoomId

func (x *SetAdminForRoomMemberRequest) GetRoomId() string

func (*SetAdminForRoomMemberRequest) GetUserId

func (x *SetAdminForRoomMemberRequest) GetUserId() string

func (*SetAdminForRoomMemberRequest) ProtoMessage

func (*SetAdminForRoomMemberRequest) ProtoMessage()

func (*SetAdminForRoomMemberRequest) ProtoReflect

func (*SetAdminForRoomMemberRequest) Reset

func (x *SetAdminForRoomMemberRequest) Reset()

func (*SetAdminForRoomMemberRequest) String

type SetAdminForRoomMemberResponse

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

func (*SetAdminForRoomMemberResponse) Descriptor deprecated

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

Deprecated: Use SetAdminForRoomMemberResponse.ProtoReflect.Descriptor instead.

func (*SetAdminForRoomMemberResponse) ProtoMessage

func (*SetAdminForRoomMemberResponse) ProtoMessage()

func (*SetAdminForRoomMemberResponse) ProtoReflect

func (*SetAdminForRoomMemberResponse) Reset

func (x *SetAdminForRoomMemberResponse) Reset()

func (*SetAdminForRoomMemberResponse) String

type StreamMessageUpdatesRequest

type StreamMessageUpdatesRequest struct {
	RoomId   string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	MemberId string `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMessageUpdatesRequest) Descriptor deprecated

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

Deprecated: Use StreamMessageUpdatesRequest.ProtoReflect.Descriptor instead.

func (*StreamMessageUpdatesRequest) GetMemberId

func (x *StreamMessageUpdatesRequest) GetMemberId() string

func (*StreamMessageUpdatesRequest) GetRoomId

func (x *StreamMessageUpdatesRequest) GetRoomId() string

func (*StreamMessageUpdatesRequest) ProtoMessage

func (*StreamMessageUpdatesRequest) ProtoMessage()

func (*StreamMessageUpdatesRequest) ProtoReflect

func (*StreamMessageUpdatesRequest) Reset

func (x *StreamMessageUpdatesRequest) Reset()

func (*StreamMessageUpdatesRequest) String

func (x *StreamMessageUpdatesRequest) String() string

type StreamMessageUpdatesResponse

type StreamMessageUpdatesResponse struct {
	Message *commons.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMessageUpdatesResponse) Descriptor deprecated

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

Deprecated: Use StreamMessageUpdatesResponse.ProtoReflect.Descriptor instead.

func (*StreamMessageUpdatesResponse) GetMessage

func (x *StreamMessageUpdatesResponse) GetMessage() *commons.Message

func (*StreamMessageUpdatesResponse) ProtoMessage

func (*StreamMessageUpdatesResponse) ProtoMessage()

func (*StreamMessageUpdatesResponse) ProtoReflect

func (*StreamMessageUpdatesResponse) Reset

func (x *StreamMessageUpdatesResponse) Reset()

func (*StreamMessageUpdatesResponse) String

type UnimplementedRoom303APIServer

type UnimplementedRoom303APIServer struct{}

UnimplementedRoom303APIServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRoom303APIServer) AddRoomMember

func (UnimplementedRoom303APIServer) ArchiveRoom

func (UnimplementedRoom303APIServer) CreateMessage

func (UnimplementedRoom303APIServer) CreateRoom

func (UnimplementedRoom303APIServer) DeleteMessage

func (UnimplementedRoom303APIServer) EditMessage

func (UnimplementedRoom303APIServer) GetGlobalConfig added in v1.7.43

func (UnimplementedRoom303APIServer) GetMessages

func (UnimplementedRoom303APIServer) GetRoom

func (UnimplementedRoom303APIServer) GetRoomMember

func (UnimplementedRoom303APIServer) GetUnreadStats

func (UnimplementedRoom303APIServer) JoinRoom

func (UnimplementedRoom303APIServer) ListAllRooms

func (UnimplementedRoom303APIServer) ListRoomMembers

func (UnimplementedRoom303APIServer) ListRoomsForMember

func (UnimplementedRoom303APIServer) ListUsersNames added in v1.7.16

func (UnimplementedRoom303APIServer) MarkMessageRead

func (UnimplementedRoom303APIServer) RemoveRoomMember

func (UnimplementedRoom303APIServer) UpdateGlobalConfig added in v1.7.43

func (UnimplementedRoom303APIServer) UpdateRoom added in v1.7.70

func (UnimplementedRoom303APIServer) UpdateRoomConfig added in v1.7.43

type UnsafeRoom303APIServer

type UnsafeRoom303APIServer interface {
	// contains filtered or unexported methods
}

UnsafeRoom303APIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Room303APIServer will result in compilation errors.

type UpdateGlobalConfigRequest added in v1.7.43

type UpdateGlobalConfigRequest struct {

	// global configuration details
	Config *commons.GlobalConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// list of global config options to be updated
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,100,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

request to update global configuration

func (*UpdateGlobalConfigRequest) Descriptor deprecated added in v1.7.43

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

Deprecated: Use UpdateGlobalConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateGlobalConfigRequest) GetConfig added in v1.7.43

func (*UpdateGlobalConfigRequest) GetFieldMask added in v1.7.43

func (x *UpdateGlobalConfigRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateGlobalConfigRequest) ProtoMessage added in v1.7.43

func (*UpdateGlobalConfigRequest) ProtoMessage()

func (*UpdateGlobalConfigRequest) ProtoReflect added in v1.7.43

func (*UpdateGlobalConfigRequest) Reset added in v1.7.43

func (x *UpdateGlobalConfigRequest) Reset()

func (*UpdateGlobalConfigRequest) String added in v1.7.43

func (x *UpdateGlobalConfigRequest) String() string

type UpdateGlobalConfigResponse added in v1.7.43

type UpdateGlobalConfigResponse struct {

	// last edited_by user
	EditedBy string `protobuf:"bytes,1,opt,name=edited_by,json=editedBy,proto3" json:"edited_by,omitempty"`
	// global configuration details
	Config *commons.GlobalConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// date created
	DateCreated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"`
	// last edited on
	LastEdited *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_edited,json=lastEdited,proto3" json:"last_edited,omitempty"`
	// contains filtered or unexported fields
}

response to update global configuration

func (*UpdateGlobalConfigResponse) Descriptor deprecated added in v1.7.43

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

Deprecated: Use UpdateGlobalConfigResponse.ProtoReflect.Descriptor instead.

func (*UpdateGlobalConfigResponse) GetConfig added in v1.7.43

func (*UpdateGlobalConfigResponse) GetDateCreated added in v1.7.43

func (x *UpdateGlobalConfigResponse) GetDateCreated() *timestamppb.Timestamp

func (*UpdateGlobalConfigResponse) GetEditedBy added in v1.7.43

func (x *UpdateGlobalConfigResponse) GetEditedBy() string

func (*UpdateGlobalConfigResponse) GetLastEdited added in v1.7.43

func (x *UpdateGlobalConfigResponse) GetLastEdited() *timestamppb.Timestamp

func (*UpdateGlobalConfigResponse) ProtoMessage added in v1.7.43

func (*UpdateGlobalConfigResponse) ProtoMessage()

func (*UpdateGlobalConfigResponse) ProtoReflect added in v1.7.43

func (*UpdateGlobalConfigResponse) Reset added in v1.7.43

func (x *UpdateGlobalConfigResponse) Reset()

func (*UpdateGlobalConfigResponse) String added in v1.7.43

func (x *UpdateGlobalConfigResponse) String() string

type UpdateRoomConfigRequest added in v1.7.43

type UpdateRoomConfigRequest struct {

	// room id
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// room configuration details
	Config *commons.RoomConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// list of config options to be updated
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,100,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

request to update room configuration

func (*UpdateRoomConfigRequest) Descriptor deprecated added in v1.7.43

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

Deprecated: Use UpdateRoomConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoomConfigRequest) GetConfig added in v1.7.43

func (x *UpdateRoomConfigRequest) GetConfig() *commons.RoomConfig

func (*UpdateRoomConfigRequest) GetFieldMask added in v1.7.43

func (x *UpdateRoomConfigRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateRoomConfigRequest) GetRoomId added in v1.7.43

func (x *UpdateRoomConfigRequest) GetRoomId() string

func (*UpdateRoomConfigRequest) ProtoMessage added in v1.7.43

func (*UpdateRoomConfigRequest) ProtoMessage()

func (*UpdateRoomConfigRequest) ProtoReflect added in v1.7.43

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

func (*UpdateRoomConfigRequest) Reset added in v1.7.43

func (x *UpdateRoomConfigRequest) Reset()

func (*UpdateRoomConfigRequest) String added in v1.7.43

func (x *UpdateRoomConfigRequest) String() string

type UpdateRoomRequest added in v1.7.70

type UpdateRoomRequest struct {

	// room details to be updated
	Room *commons.Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
	// field mask for room options that needs updated
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,100,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

request to update room details

func (*UpdateRoomRequest) Descriptor deprecated added in v1.7.70

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

Deprecated: Use UpdateRoomRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoomRequest) GetFieldMask added in v1.7.70

func (x *UpdateRoomRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateRoomRequest) GetRoom added in v1.7.70

func (x *UpdateRoomRequest) GetRoom() *commons.Room

func (*UpdateRoomRequest) ProtoMessage added in v1.7.70

func (*UpdateRoomRequest) ProtoMessage()

func (*UpdateRoomRequest) ProtoReflect added in v1.7.70

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

func (*UpdateRoomRequest) Reset added in v1.7.70

func (x *UpdateRoomRequest) Reset()

func (*UpdateRoomRequest) String added in v1.7.70

func (x *UpdateRoomRequest) String() string

type UserDetails added in v1.7.10

type UserDetails struct {

	// The ID of the user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The name of the user.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// user first name
	FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// user last name
	LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

wrapper for listing user names with ids

func (*UserDetails) Descriptor deprecated added in v1.7.10

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

Deprecated: Use UserDetails.ProtoReflect.Descriptor instead.

func (*UserDetails) GetFirstName added in v1.7.16

func (x *UserDetails) GetFirstName() string

func (*UserDetails) GetLastName added in v1.7.16

func (x *UserDetails) GetLastName() string

func (*UserDetails) GetUserId added in v1.7.16

func (x *UserDetails) GetUserId() string

func (*UserDetails) GetUserName added in v1.7.16

func (x *UserDetails) GetUserName() string

func (*UserDetails) ProtoMessage added in v1.7.10

func (*UserDetails) ProtoMessage()

func (*UserDetails) ProtoReflect added in v1.7.10

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

func (*UserDetails) Reset added in v1.7.10

func (x *UserDetails) Reset()

func (*UserDetails) String added in v1.7.10

func (x *UserDetails) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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