// The BBS's WebSocket protocol, bbs.v1. The same messages go both ways // on two endpoints: // // /api/v1/ws JSON text frames: protobuf's JSON mapping (lowerCamelCase // fields, enums by name, timestamps in RFC 3339) // /api/v1/ws/proto binary frames: protobuf // // The client sends ClientMessages; the server answers each with a // ServerMessage of the same id (Ok, Error, or what was asked for), and sends // Events (id 0) as they come. Unless the upgrade request had an // Authorization header, the first message must be an Auth. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v3.21.12 // source: proto/bbs.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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) ) type Event_Kind int32 const ( Event_KIND_UNSPECIFIED Event_Kind = 0 Event_SAID Event_Kind = 1 Event_EMOTED Event_Kind = 2 Event_JOINED Event_Kind = 3 Event_LEFT Event_Kind = 4 Event_PRIVATE Event_Kind = 5 Event_PAGED Event_Kind = 6 Event_NOTICE Event_Kind = 7 Event_MAIL Event_Kind = 8 ) // Enum value maps for Event_Kind. var ( Event_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "SAID", 2: "EMOTED", 3: "JOINED", 4: "LEFT", 5: "PRIVATE", 6: "PAGED", 7: "NOTICE", 8: "MAIL", } Event_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "SAID": 1, "EMOTED": 2, "JOINED": 3, "LEFT": 4, "PRIVATE": 5, "PAGED": 6, "NOTICE": 7, "MAIL": 8, } ) func (x Event_Kind) Enum() *Event_Kind { p := new(Event_Kind) *p = x return p } func (x Event_Kind) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Event_Kind) Descriptor() protoreflect.EnumDescriptor { return file_proto_bbs_proto_enumTypes[0].Descriptor() } func (Event_Kind) Type() protoreflect.EnumType { return &file_proto_bbs_proto_enumTypes[0] } func (x Event_Kind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use Event_Kind.Descriptor instead. func (Event_Kind) EnumDescriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{16, 0} } type ClientMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // chosen by the client, echoed in the answer // Types that are valid to be assigned to Request: // // *ClientMessage_Auth // *ClientMessage_Join // *ClientMessage_Leave // *ClientMessage_Say // *ClientMessage_NodeMessage // *ClientMessage_Page // *ClientMessage_Answer // *ClientMessage_Command // *ClientMessage_Ping // *ClientMessage_Who // *ClientMessage_Rooms Request isClientMessage_Request `protobuf_oneof:"request"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ClientMessage) Reset() { *x = ClientMessage{} mi := &file_proto_bbs_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ClientMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClientMessage) ProtoMessage() {} func (x *ClientMessage) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 ClientMessage.ProtoReflect.Descriptor instead. func (*ClientMessage) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{0} } func (x *ClientMessage) GetId() uint32 { if x != nil { return x.Id } return 0 } func (x *ClientMessage) GetRequest() isClientMessage_Request { if x != nil { return x.Request } return nil } func (x *ClientMessage) GetAuth() *Auth { if x != nil { if x, ok := x.Request.(*ClientMessage_Auth); ok { return x.Auth } } return nil } func (x *ClientMessage) GetJoin() *JoinRoom { if x != nil { if x, ok := x.Request.(*ClientMessage_Join); ok { return x.Join } } return nil } func (x *ClientMessage) GetLeave() *LeaveRoom { if x != nil { if x, ok := x.Request.(*ClientMessage_Leave); ok { return x.Leave } } return nil } func (x *ClientMessage) GetSay() *Say { if x != nil { if x, ok := x.Request.(*ClientMessage_Say); ok { return x.Say } } return nil } func (x *ClientMessage) GetNodeMessage() *NodeMessage { if x != nil { if x, ok := x.Request.(*ClientMessage_NodeMessage); ok { return x.NodeMessage } } return nil } func (x *ClientMessage) GetPage() *Page { if x != nil { if x, ok := x.Request.(*ClientMessage_Page); ok { return x.Page } } return nil } func (x *ClientMessage) GetAnswer() *AnswerPage { if x != nil { if x, ok := x.Request.(*ClientMessage_Answer); ok { return x.Answer } } return nil } func (x *ClientMessage) GetCommand() *ChatCommand { if x != nil { if x, ok := x.Request.(*ClientMessage_Command); ok { return x.Command } } return nil } func (x *ClientMessage) GetPing() *Ping { if x != nil { if x, ok := x.Request.(*ClientMessage_Ping); ok { return x.Ping } } return nil } func (x *ClientMessage) GetWho() *Who { if x != nil { if x, ok := x.Request.(*ClientMessage_Who); ok { return x.Who } } return nil } func (x *ClientMessage) GetRooms() *ListRooms { if x != nil { if x, ok := x.Request.(*ClientMessage_Rooms); ok { return x.Rooms } } return nil } type isClientMessage_Request interface { isClientMessage_Request() } type ClientMessage_Auth struct { Auth *Auth `protobuf:"bytes,2,opt,name=auth,proto3,oneof"` } type ClientMessage_Join struct { Join *JoinRoom `protobuf:"bytes,3,opt,name=join,proto3,oneof"` } type ClientMessage_Leave struct { Leave *LeaveRoom `protobuf:"bytes,4,opt,name=leave,proto3,oneof"` } type ClientMessage_Say struct { Say *Say `protobuf:"bytes,5,opt,name=say,proto3,oneof"` } type ClientMessage_NodeMessage struct { NodeMessage *NodeMessage `protobuf:"bytes,6,opt,name=node_message,json=nodeMessage,proto3,oneof"` } type ClientMessage_Page struct { Page *Page `protobuf:"bytes,7,opt,name=page,proto3,oneof"` } type ClientMessage_Answer struct { Answer *AnswerPage `protobuf:"bytes,8,opt,name=answer,proto3,oneof"` } type ClientMessage_Command struct { Command *ChatCommand `protobuf:"bytes,9,opt,name=command,proto3,oneof"` } type ClientMessage_Ping struct { Ping *Ping `protobuf:"bytes,10,opt,name=ping,proto3,oneof"` } type ClientMessage_Who struct { Who *Who `protobuf:"bytes,11,opt,name=who,proto3,oneof"` } type ClientMessage_Rooms struct { Rooms *ListRooms `protobuf:"bytes,12,opt,name=rooms,proto3,oneof"` } func (*ClientMessage_Auth) isClientMessage_Request() {} func (*ClientMessage_Join) isClientMessage_Request() {} func (*ClientMessage_Leave) isClientMessage_Request() {} func (*ClientMessage_Say) isClientMessage_Request() {} func (*ClientMessage_NodeMessage) isClientMessage_Request() {} func (*ClientMessage_Page) isClientMessage_Request() {} func (*ClientMessage_Answer) isClientMessage_Request() {} func (*ClientMessage_Command) isClientMessage_Request() {} func (*ClientMessage_Ping) isClientMessage_Request() {} func (*ClientMessage_Who) isClientMessage_Request() {} func (*ClientMessage_Rooms) isClientMessage_Request() {} // Auth: an API token (an API key, or a login's session token). type Auth struct { state protoimpl.MessageState `protogen:"open.v1"` Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Auth) Reset() { *x = Auth{} mi := &file_proto_bbs_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Auth) String() string { return protoimpl.X.MessageStringOf(x) } func (*Auth) ProtoMessage() {} func (x *Auth) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Auth.ProtoReflect.Descriptor instead. func (*Auth) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{1} } func (x *Auth) GetToken() string { if x != nil { return x.Token } return "" } // JoinRoom: into a chat room (out of the one before); answered by Lines // (the room's last lines), then Ok with the room. type JoinRoom struct { state protoimpl.MessageState `protogen:"open.v1"` Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *JoinRoom) Reset() { *x = JoinRoom{} mi := &file_proto_bbs_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *JoinRoom) String() string { return protoimpl.X.MessageStringOf(x) } func (*JoinRoom) ProtoMessage() {} func (x *JoinRoom) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 JoinRoom.ProtoReflect.Descriptor instead. func (*JoinRoom) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{2} } func (x *JoinRoom) GetRoom() string { if x != nil { return x.Room } return "" } type LeaveRoom struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LeaveRoom) Reset() { *x = LeaveRoom{} mi := &file_proto_bbs_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LeaveRoom) String() string { return protoimpl.X.MessageStringOf(x) } func (*LeaveRoom) ProtoMessage() {} func (x *LeaveRoom) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 LeaveRoom.ProtoReflect.Descriptor instead. func (*LeaveRoom) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{3} } // Say: a line in the room (emote: as /me). type Say struct { state protoimpl.MessageState `protogen:"open.v1"` Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Emote bool `protobuf:"varint,2,opt,name=emote,proto3" json:"emote,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Say) Reset() { *x = Say{} mi := &file_proto_bbs_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Say) String() string { return protoimpl.X.MessageStringOf(x) } func (*Say) ProtoMessage() {} func (x *Say) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Say.ProtoReflect.Descriptor instead. func (*Say) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{4} } func (x *Say) GetText() string { if x != nil { return x.Text } return "" } func (x *Say) GetEmote() bool { if x != nil { return x.Emote } return false } // NodeMessage: a line to the caller on one node. type NodeMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Node int32 `protobuf:"varint,1,opt,name=node,proto3" json:"node,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeMessage) Reset() { *x = NodeMessage{} mi := &file_proto_bbs_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeMessage) ProtoMessage() {} func (x *NodeMessage) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 NodeMessage.ProtoReflect.Descriptor instead. func (*NodeMessage) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{5} } func (x *NodeMessage) GetNode() int32 { if x != nil { return x.Node } return 0 } func (x *NodeMessage) GetText() string { if x != nil { return x.Text } return "" } // Page: page the sysop; Ok's room is the private room to wait in (the // client is taken into it). type Page struct { state protoimpl.MessageState `protogen:"open.v1"` Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Page) Reset() { *x = Page{} mi := &file_proto_bbs_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Page) String() string { return protoimpl.X.MessageStringOf(x) } func (*Page) ProtoMessage() {} func (x *Page) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Page.ProtoReflect.Descriptor instead. func (*Page) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{6} } func (x *Page) GetReason() string { if x != nil { return x.Reason } return "" } // AnswerPage: a sysop answers a page (node 0: the one waiting longest). type AnswerPage struct { state protoimpl.MessageState `protogen:"open.v1"` Node int32 `protobuf:"varint,1,opt,name=node,proto3" json:"node,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AnswerPage) Reset() { *x = AnswerPage{} mi := &file_proto_bbs_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AnswerPage) String() string { return protoimpl.X.MessageStringOf(x) } func (*AnswerPage) ProtoMessage() {} func (x *AnswerPage) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 AnswerPage.ProtoReflect.Descriptor instead. func (*AnswerPage) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{7} } func (x *AnswerPage) GetNode() int32 { if x != nil { return x.Node } return 0 } // ChatCommand: a line as typed in chat on a terminal (/who, /rooms, // /msg ...); answered by Lines. type ChatCommand struct { state protoimpl.MessageState `protogen:"open.v1"` Line string `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCommand) Reset() { *x = ChatCommand{} mi := &file_proto_bbs_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCommand) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCommand) ProtoMessage() {} func (x *ChatCommand) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 ChatCommand.ProtoReflect.Descriptor instead. func (*ChatCommand) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{8} } func (x *ChatCommand) GetLine() string { if x != nil { return x.Line } return "" } type Ping struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Ping) Reset() { *x = Ping{} mi := &file_proto_bbs_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Ping) String() string { return protoimpl.X.MessageStringOf(x) } func (*Ping) ProtoMessage() {} func (x *Ping) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Ping.ProtoReflect.Descriptor instead. func (*Ping) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{9} } // Who: the nodes online; answered by NodeList. type Who struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Who) Reset() { *x = Who{} mi := &file_proto_bbs_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Who) String() string { return protoimpl.X.MessageStringOf(x) } func (*Who) ProtoMessage() {} func (x *Who) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Who.ProtoReflect.Descriptor instead. func (*Who) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{10} } // ListRooms: the chat rooms in use; answered by RoomList. type ListRooms struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListRooms) Reset() { *x = ListRooms{} mi := &file_proto_bbs_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListRooms) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListRooms) ProtoMessage() {} func (x *ListRooms) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 ListRooms.ProtoReflect.Descriptor instead. func (*ListRooms) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{11} } type ServerMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // the request's; 0 for events and the welcome // Types that are valid to be assigned to Body: // // *ServerMessage_Welcome // *ServerMessage_Ok // *ServerMessage_Error // *ServerMessage_Event // *ServerMessage_Nodes // *ServerMessage_Pong // *ServerMessage_Lines // *ServerMessage_Rooms Body isServerMessage_Body `protobuf_oneof:"body"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ServerMessage) Reset() { *x = ServerMessage{} mi := &file_proto_bbs_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ServerMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerMessage) ProtoMessage() {} func (x *ServerMessage) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 ServerMessage.ProtoReflect.Descriptor instead. func (*ServerMessage) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{12} } func (x *ServerMessage) GetId() uint32 { if x != nil { return x.Id } return 0 } func (x *ServerMessage) GetBody() isServerMessage_Body { if x != nil { return x.Body } return nil } func (x *ServerMessage) GetWelcome() *Welcome { if x != nil { if x, ok := x.Body.(*ServerMessage_Welcome); ok { return x.Welcome } } return nil } func (x *ServerMessage) GetOk() *Ok { if x != nil { if x, ok := x.Body.(*ServerMessage_Ok); ok { return x.Ok } } return nil } func (x *ServerMessage) GetError() *Error { if x != nil { if x, ok := x.Body.(*ServerMessage_Error); ok { return x.Error } } return nil } func (x *ServerMessage) GetEvent() *Event { if x != nil { if x, ok := x.Body.(*ServerMessage_Event); ok { return x.Event } } return nil } func (x *ServerMessage) GetNodes() *NodeList { if x != nil { if x, ok := x.Body.(*ServerMessage_Nodes); ok { return x.Nodes } } return nil } func (x *ServerMessage) GetPong() *Pong { if x != nil { if x, ok := x.Body.(*ServerMessage_Pong); ok { return x.Pong } } return nil } func (x *ServerMessage) GetLines() *Lines { if x != nil { if x, ok := x.Body.(*ServerMessage_Lines); ok { return x.Lines } } return nil } func (x *ServerMessage) GetRooms() *RoomList { if x != nil { if x, ok := x.Body.(*ServerMessage_Rooms); ok { return x.Rooms } } return nil } type isServerMessage_Body interface { isServerMessage_Body() } type ServerMessage_Welcome struct { Welcome *Welcome `protobuf:"bytes,2,opt,name=welcome,proto3,oneof"` } type ServerMessage_Ok struct { Ok *Ok `protobuf:"bytes,3,opt,name=ok,proto3,oneof"` } type ServerMessage_Error struct { Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` } type ServerMessage_Event struct { Event *Event `protobuf:"bytes,5,opt,name=event,proto3,oneof"` } type ServerMessage_Nodes struct { Nodes *NodeList `protobuf:"bytes,6,opt,name=nodes,proto3,oneof"` } type ServerMessage_Pong struct { Pong *Pong `protobuf:"bytes,7,opt,name=pong,proto3,oneof"` } type ServerMessage_Lines struct { Lines *Lines `protobuf:"bytes,8,opt,name=lines,proto3,oneof"` } type ServerMessage_Rooms struct { Rooms *RoomList `protobuf:"bytes,9,opt,name=rooms,proto3,oneof"` } func (*ServerMessage_Welcome) isServerMessage_Body() {} func (*ServerMessage_Ok) isServerMessage_Body() {} func (*ServerMessage_Error) isServerMessage_Body() {} func (*ServerMessage_Event) isServerMessage_Body() {} func (*ServerMessage_Nodes) isServerMessage_Body() {} func (*ServerMessage_Pong) isServerMessage_Body() {} func (*ServerMessage_Lines) isServerMessage_Body() {} func (*ServerMessage_Rooms) isServerMessage_Body() {} // Welcome: sent once the client is logged in. type Welcome struct { state protoimpl.MessageState `protogen:"open.v1"` Bbs string `protobuf:"bytes,1,opt,name=bbs,proto3" json:"bbs,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Node int32 `protobuf:"varint,3,opt,name=node,proto3" json:"node,omitempty"` Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Welcome) Reset() { *x = Welcome{} mi := &file_proto_bbs_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Welcome) String() string { return protoimpl.X.MessageStringOf(x) } func (*Welcome) ProtoMessage() {} func (x *Welcome) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Welcome.ProtoReflect.Descriptor instead. func (*Welcome) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{13} } func (x *Welcome) GetBbs() string { if x != nil { return x.Bbs } return "" } func (x *Welcome) GetUser() string { if x != nil { return x.User } return "" } func (x *Welcome) GetNode() int32 { if x != nil { return x.Node } return 0 } func (x *Welcome) GetScopes() []string { if x != nil { return x.Scopes } return nil } type Ok struct { state protoimpl.MessageState `protogen:"open.v1"` Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` // the room the client is in now, if that changed unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Ok) Reset() { *x = Ok{} mi := &file_proto_bbs_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Ok) String() string { return protoimpl.X.MessageStringOf(x) } func (*Ok) ProtoMessage() {} func (x *Ok) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Ok.ProtoReflect.Descriptor instead. func (*Ok) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{14} } func (x *Ok) GetRoom() string { if x != nil { return x.Room } return "" } type Error struct { state protoimpl.MessageState `protogen:"open.v1"` Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // unauthorized, forbidden, bad_request, not_found, too_many, conflict Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Error) Reset() { *x = Error{} mi := &file_proto_bbs_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Error) String() string { return protoimpl.X.MessageStringOf(x) } func (*Error) ProtoMessage() {} func (x *Error) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Error.ProtoReflect.Descriptor instead. func (*Error) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{15} } func (x *Error) GetCode() string { if x != nil { return x.Code } return "" } func (x *Error) GetMessage() string { if x != nil { return x.Message } return "" } // Event: something for the client: a line in its room, a message to its // node, a page (to sysops), a new mail, a notice. type Event struct { state protoimpl.MessageState `protogen:"open.v1"` Kind Event_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=bbs.v1.Event_Kind" json:"kind,omitempty"` Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` Node int32 `protobuf:"varint,4,opt,name=node,proto3" json:"node,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` Line string `protobuf:"bytes,7,opt,name=line,proto3" json:"line,omitempty"` // the event as a terminal shows it unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Event) Reset() { *x = Event{} mi := &file_proto_bbs_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Event) String() string { return protoimpl.X.MessageStringOf(x) } func (*Event) ProtoMessage() {} func (x *Event) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Event.ProtoReflect.Descriptor instead. func (*Event) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{16} } func (x *Event) GetKind() Event_Kind { if x != nil { return x.Kind } return Event_KIND_UNSPECIFIED } func (x *Event) GetRoom() string { if x != nil { return x.Room } return "" } func (x *Event) GetFrom() string { if x != nil { return x.From } return "" } func (x *Event) GetNode() int32 { if x != nil { return x.Node } return 0 } func (x *Event) GetText() string { if x != nil { return x.Text } return "" } func (x *Event) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } func (x *Event) GetLine() string { if x != nil { return x.Line } return "" } type NodeInfo struct { state protoimpl.MessageState `protogen:"open.v1"` Node int32 `protobuf:"varint,1,opt,name=node,proto3" json:"node,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Via string `protobuf:"bytes,3,opt,name=via,proto3" json:"via,omitempty"` Since *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=since,proto3" json:"since,omitempty"` Doing string `protobuf:"bytes,5,opt,name=doing,proto3" json:"doing,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeInfo) Reset() { *x = NodeInfo{} mi := &file_proto_bbs_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeInfo) ProtoMessage() {} func (x *NodeInfo) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 NodeInfo.ProtoReflect.Descriptor instead. func (*NodeInfo) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{17} } func (x *NodeInfo) GetNode() int32 { if x != nil { return x.Node } return 0 } func (x *NodeInfo) GetUser() string { if x != nil { return x.User } return "" } func (x *NodeInfo) GetVia() string { if x != nil { return x.Via } return "" } func (x *NodeInfo) GetSince() *timestamppb.Timestamp { if x != nil { return x.Since } return nil } func (x *NodeInfo) GetDoing() string { if x != nil { return x.Doing } return "" } type NodeList struct { state protoimpl.MessageState `protogen:"open.v1"` Nodes []*NodeInfo `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeList) Reset() { *x = NodeList{} mi := &file_proto_bbs_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeList) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeList) ProtoMessage() {} func (x *NodeList) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 NodeList.ProtoReflect.Descriptor instead. func (*NodeList) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{18} } func (x *NodeList) GetNodes() []*NodeInfo { if x != nil { return x.Nodes } return nil } type Pong struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Pong) Reset() { *x = Pong{} mi := &file_proto_bbs_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Pong) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pong) ProtoMessage() {} func (x *Pong) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Pong.ProtoReflect.Descriptor instead. func (*Pong) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{19} } type Lines struct { state protoimpl.MessageState `protogen:"open.v1"` Lines []string `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Lines) Reset() { *x = Lines{} mi := &file_proto_bbs_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Lines) String() string { return protoimpl.X.MessageStringOf(x) } func (*Lines) ProtoMessage() {} func (x *Lines) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Lines.ProtoReflect.Descriptor instead. func (*Lines) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{20} } func (x *Lines) GetLines() []string { if x != nil { return x.Lines } return nil } type Room struct { state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Room) Reset() { *x = Room{} mi := &file_proto_bbs_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Room) String() string { return protoimpl.X.MessageStringOf(x) } func (*Room) ProtoMessage() {} func (x *Room) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 Room.ProtoReflect.Descriptor instead. func (*Room) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{21} } func (x *Room) GetName() string { if x != nil { return x.Name } return "" } func (x *Room) GetUsers() []string { if x != nil { return x.Users } return nil } type RoomList struct { state protoimpl.MessageState `protogen:"open.v1"` Rooms []*Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RoomList) Reset() { *x = RoomList{} mi := &file_proto_bbs_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RoomList) String() string { return protoimpl.X.MessageStringOf(x) } func (*RoomList) ProtoMessage() {} func (x *RoomList) ProtoReflect() protoreflect.Message { mi := &file_proto_bbs_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 RoomList.ProtoReflect.Descriptor instead. func (*RoomList) Descriptor() ([]byte, []int) { return file_proto_bbs_proto_rawDescGZIP(), []int{22} } func (x *RoomList) GetRooms() []*Room { if x != nil { return x.Rooms } return nil } var File_proto_bbs_proto protoreflect.FileDescriptor const file_proto_bbs_proto_rawDesc = "" + "\n" + "\x0fproto/bbs.proto\x12\x06bbs.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xef\x03\n" + "\rClientMessage\x12\x0e\n" + "\x02id\x18\x01 \x01(\rR\x02id\x12\"\n" + "\x04auth\x18\x02 \x01(\v2\f.bbs.v1.AuthH\x00R\x04auth\x12&\n" + "\x04join\x18\x03 \x01(\v2\x10.bbs.v1.JoinRoomH\x00R\x04join\x12)\n" + "\x05leave\x18\x04 \x01(\v2\x11.bbs.v1.LeaveRoomH\x00R\x05leave\x12\x1f\n" + "\x03say\x18\x05 \x01(\v2\v.bbs.v1.SayH\x00R\x03say\x128\n" + "\fnode_message\x18\x06 \x01(\v2\x13.bbs.v1.NodeMessageH\x00R\vnodeMessage\x12\"\n" + "\x04page\x18\a \x01(\v2\f.bbs.v1.PageH\x00R\x04page\x12,\n" + "\x06answer\x18\b \x01(\v2\x12.bbs.v1.AnswerPageH\x00R\x06answer\x12/\n" + "\acommand\x18\t \x01(\v2\x13.bbs.v1.ChatCommandH\x00R\acommand\x12\"\n" + "\x04ping\x18\n" + " \x01(\v2\f.bbs.v1.PingH\x00R\x04ping\x12\x1f\n" + "\x03who\x18\v \x01(\v2\v.bbs.v1.WhoH\x00R\x03who\x12)\n" + "\x05rooms\x18\f \x01(\v2\x11.bbs.v1.ListRoomsH\x00R\x05roomsB\t\n" + "\arequest\"\x1c\n" + "\x04Auth\x12\x14\n" + "\x05token\x18\x01 \x01(\tR\x05token\"\x1e\n" + "\bJoinRoom\x12\x12\n" + "\x04room\x18\x01 \x01(\tR\x04room\"\v\n" + "\tLeaveRoom\"/\n" + "\x03Say\x12\x12\n" + "\x04text\x18\x01 \x01(\tR\x04text\x12\x14\n" + "\x05emote\x18\x02 \x01(\bR\x05emote\"5\n" + "\vNodeMessage\x12\x12\n" + "\x04node\x18\x01 \x01(\x05R\x04node\x12\x12\n" + "\x04text\x18\x02 \x01(\tR\x04text\"\x1e\n" + "\x04Page\x12\x16\n" + "\x06reason\x18\x01 \x01(\tR\x06reason\" \n" + "\n" + "AnswerPage\x12\x12\n" + "\x04node\x18\x01 \x01(\x05R\x04node\"!\n" + "\vChatCommand\x12\x12\n" + "\x04line\x18\x01 \x01(\tR\x04line\"\x06\n" + "\x04Ping\"\x05\n" + "\x03Who\"\v\n" + "\tListRooms\"\xdf\x02\n" + "\rServerMessage\x12\x0e\n" + "\x02id\x18\x01 \x01(\rR\x02id\x12+\n" + "\awelcome\x18\x02 \x01(\v2\x0f.bbs.v1.WelcomeH\x00R\awelcome\x12\x1c\n" + "\x02ok\x18\x03 \x01(\v2\n" + ".bbs.v1.OkH\x00R\x02ok\x12%\n" + "\x05error\x18\x04 \x01(\v2\r.bbs.v1.ErrorH\x00R\x05error\x12%\n" + "\x05event\x18\x05 \x01(\v2\r.bbs.v1.EventH\x00R\x05event\x12(\n" + "\x05nodes\x18\x06 \x01(\v2\x10.bbs.v1.NodeListH\x00R\x05nodes\x12\"\n" + "\x04pong\x18\a \x01(\v2\f.bbs.v1.PongH\x00R\x04pong\x12%\n" + "\x05lines\x18\b \x01(\v2\r.bbs.v1.LinesH\x00R\x05lines\x12(\n" + "\x05rooms\x18\t \x01(\v2\x10.bbs.v1.RoomListH\x00R\x05roomsB\x06\n" + "\x04body\"[\n" + "\aWelcome\x12\x10\n" + "\x03bbs\x18\x01 \x01(\tR\x03bbs\x12\x12\n" + "\x04user\x18\x02 \x01(\tR\x04user\x12\x12\n" + "\x04node\x18\x03 \x01(\x05R\x04node\x12\x16\n" + "\x06scopes\x18\x04 \x03(\tR\x06scopes\"\x18\n" + "\x02Ok\x12\x12\n" + "\x04room\x18\x01 \x01(\tR\x04room\"5\n" + "\x05Error\x12\x12\n" + "\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\"\xbb\x02\n" + "\x05Event\x12&\n" + "\x04kind\x18\x01 \x01(\x0e2\x12.bbs.v1.Event.KindR\x04kind\x12\x12\n" + "\x04room\x18\x02 \x01(\tR\x04room\x12\x12\n" + "\x04from\x18\x03 \x01(\tR\x04from\x12\x12\n" + "\x04node\x18\x04 \x01(\x05R\x04node\x12\x12\n" + "\x04text\x18\x05 \x01(\tR\x04text\x12.\n" + "\x04time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x12\n" + "\x04line\x18\a \x01(\tR\x04line\"v\n" + "\x04Kind\x12\x14\n" + "\x10KIND_UNSPECIFIED\x10\x00\x12\b\n" + "\x04SAID\x10\x01\x12\n" + "\n" + "\x06EMOTED\x10\x02\x12\n" + "\n" + "\x06JOINED\x10\x03\x12\b\n" + "\x04LEFT\x10\x04\x12\v\n" + "\aPRIVATE\x10\x05\x12\t\n" + "\x05PAGED\x10\x06\x12\n" + "\n" + "\x06NOTICE\x10\a\x12\b\n" + "\x04MAIL\x10\b\"\x8c\x01\n" + "\bNodeInfo\x12\x12\n" + "\x04node\x18\x01 \x01(\x05R\x04node\x12\x12\n" + "\x04user\x18\x02 \x01(\tR\x04user\x12\x10\n" + "\x03via\x18\x03 \x01(\tR\x03via\x120\n" + "\x05since\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x05since\x12\x14\n" + "\x05doing\x18\x05 \x01(\tR\x05doing\"2\n" + "\bNodeList\x12&\n" + "\x05nodes\x18\x01 \x03(\v2\x10.bbs.v1.NodeInfoR\x05nodes\"\x06\n" + "\x04Pong\"\x1d\n" + "\x05Lines\x12\x14\n" + "\x05lines\x18\x01 \x03(\tR\x05lines\"0\n" + "\x04Room\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + "\x05users\x18\x02 \x03(\tR\x05users\".\n" + "\bRoomList\x12\"\n" + "\x05rooms\x18\x01 \x03(\v2\f.bbs.v1.RoomR\x05roomsB(Z&github.com/D-Modem/bbs/internal/api/pbb\x06proto3" var ( file_proto_bbs_proto_rawDescOnce sync.Once file_proto_bbs_proto_rawDescData []byte ) func file_proto_bbs_proto_rawDescGZIP() []byte { file_proto_bbs_proto_rawDescOnce.Do(func() { file_proto_bbs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_bbs_proto_rawDesc), len(file_proto_bbs_proto_rawDesc))) }) return file_proto_bbs_proto_rawDescData } var file_proto_bbs_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_proto_bbs_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_proto_bbs_proto_goTypes = []any{ (Event_Kind)(0), // 0: bbs.v1.Event.Kind (*ClientMessage)(nil), // 1: bbs.v1.ClientMessage (*Auth)(nil), // 2: bbs.v1.Auth (*JoinRoom)(nil), // 3: bbs.v1.JoinRoom (*LeaveRoom)(nil), // 4: bbs.v1.LeaveRoom (*Say)(nil), // 5: bbs.v1.Say (*NodeMessage)(nil), // 6: bbs.v1.NodeMessage (*Page)(nil), // 7: bbs.v1.Page (*AnswerPage)(nil), // 8: bbs.v1.AnswerPage (*ChatCommand)(nil), // 9: bbs.v1.ChatCommand (*Ping)(nil), // 10: bbs.v1.Ping (*Who)(nil), // 11: bbs.v1.Who (*ListRooms)(nil), // 12: bbs.v1.ListRooms (*ServerMessage)(nil), // 13: bbs.v1.ServerMessage (*Welcome)(nil), // 14: bbs.v1.Welcome (*Ok)(nil), // 15: bbs.v1.Ok (*Error)(nil), // 16: bbs.v1.Error (*Event)(nil), // 17: bbs.v1.Event (*NodeInfo)(nil), // 18: bbs.v1.NodeInfo (*NodeList)(nil), // 19: bbs.v1.NodeList (*Pong)(nil), // 20: bbs.v1.Pong (*Lines)(nil), // 21: bbs.v1.Lines (*Room)(nil), // 22: bbs.v1.Room (*RoomList)(nil), // 23: bbs.v1.RoomList (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp } var file_proto_bbs_proto_depIdxs = []int32{ 2, // 0: bbs.v1.ClientMessage.auth:type_name -> bbs.v1.Auth 3, // 1: bbs.v1.ClientMessage.join:type_name -> bbs.v1.JoinRoom 4, // 2: bbs.v1.ClientMessage.leave:type_name -> bbs.v1.LeaveRoom 5, // 3: bbs.v1.ClientMessage.say:type_name -> bbs.v1.Say 6, // 4: bbs.v1.ClientMessage.node_message:type_name -> bbs.v1.NodeMessage 7, // 5: bbs.v1.ClientMessage.page:type_name -> bbs.v1.Page 8, // 6: bbs.v1.ClientMessage.answer:type_name -> bbs.v1.AnswerPage 9, // 7: bbs.v1.ClientMessage.command:type_name -> bbs.v1.ChatCommand 10, // 8: bbs.v1.ClientMessage.ping:type_name -> bbs.v1.Ping 11, // 9: bbs.v1.ClientMessage.who:type_name -> bbs.v1.Who 12, // 10: bbs.v1.ClientMessage.rooms:type_name -> bbs.v1.ListRooms 14, // 11: bbs.v1.ServerMessage.welcome:type_name -> bbs.v1.Welcome 15, // 12: bbs.v1.ServerMessage.ok:type_name -> bbs.v1.Ok 16, // 13: bbs.v1.ServerMessage.error:type_name -> bbs.v1.Error 17, // 14: bbs.v1.ServerMessage.event:type_name -> bbs.v1.Event 19, // 15: bbs.v1.ServerMessage.nodes:type_name -> bbs.v1.NodeList 20, // 16: bbs.v1.ServerMessage.pong:type_name -> bbs.v1.Pong 21, // 17: bbs.v1.ServerMessage.lines:type_name -> bbs.v1.Lines 23, // 18: bbs.v1.ServerMessage.rooms:type_name -> bbs.v1.RoomList 0, // 19: bbs.v1.Event.kind:type_name -> bbs.v1.Event.Kind 24, // 20: bbs.v1.Event.time:type_name -> google.protobuf.Timestamp 24, // 21: bbs.v1.NodeInfo.since:type_name -> google.protobuf.Timestamp 18, // 22: bbs.v1.NodeList.nodes:type_name -> bbs.v1.NodeInfo 22, // 23: bbs.v1.RoomList.rooms:type_name -> bbs.v1.Room 24, // [24:24] is the sub-list for method output_type 24, // [24:24] is the sub-list for method input_type 24, // [24:24] is the sub-list for extension type_name 24, // [24:24] is the sub-list for extension extendee 0, // [0:24] is the sub-list for field type_name } func init() { file_proto_bbs_proto_init() } func file_proto_bbs_proto_init() { if File_proto_bbs_proto != nil { return } file_proto_bbs_proto_msgTypes[0].OneofWrappers = []any{ (*ClientMessage_Auth)(nil), (*ClientMessage_Join)(nil), (*ClientMessage_Leave)(nil), (*ClientMessage_Say)(nil), (*ClientMessage_NodeMessage)(nil), (*ClientMessage_Page)(nil), (*ClientMessage_Answer)(nil), (*ClientMessage_Command)(nil), (*ClientMessage_Ping)(nil), (*ClientMessage_Who)(nil), (*ClientMessage_Rooms)(nil), } file_proto_bbs_proto_msgTypes[12].OneofWrappers = []any{ (*ServerMessage_Welcome)(nil), (*ServerMessage_Ok)(nil), (*ServerMessage_Error)(nil), (*ServerMessage_Event)(nil), (*ServerMessage_Nodes)(nil), (*ServerMessage_Pong)(nil), (*ServerMessage_Lines)(nil), (*ServerMessage_Rooms)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_bbs_proto_rawDesc), len(file_proto_bbs_proto_rawDesc)), NumEnums: 1, NumMessages: 23, NumExtensions: 0, NumServices: 0, }, GoTypes: file_proto_bbs_proto_goTypes, DependencyIndexes: file_proto_bbs_proto_depIdxs, EnumInfos: file_proto_bbs_proto_enumTypes, MessageInfos: file_proto_bbs_proto_msgTypes, }.Build() File_proto_bbs_proto = out.File file_proto_bbs_proto_goTypes = nil file_proto_bbs_proto_depIdxs = nil }