Files
gomoku/server/protocol/response.pb.go
T
tiennm99 c40120d6db feat(server): add protoc-gen-go toolchain and generated proto code
Adds tools.go to pin protoc-gen-go, updates go.mod/go.sum with
google.golang.org/protobuf, generates request.pb.go and response.pb.go,
and adds a make proto target to server/Makefile for regen.
2026-04-11 12:40:53 +07:00

1731 lines
55 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.1
// source: response.proto
package protocol
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// Wrapper for all server -> client messages. The oneof case IS the event code.
type Response struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Payload:
//
// *Response_ClientConnect
// *Response_NicknameSet
// *Response_ShowOptions
// *Response_ShowRooms
// *Response_RoomCreateSuccess
// *Response_RoomJoinSuccess
// *Response_RoomJoinFailFull
// *Response_RoomJoinFailNotFound
// *Response_RoomPlayFailNotFound
// *Response_GameStarting
// *Response_GameReady
// *Response_GameMoveSuccess
// *Response_GameMoveInvalid
// *Response_GameMoveOccupied
// *Response_GameMoveOutOfBounds
// *Response_GameMoveNotYourTurn
// *Response_GameOver
// *Response_PveDifficultyNotSupport
// *Response_WatchGameSuccess
// *Response_ClientExit
// *Response_SpectatorCannotAct
Payload isResponse_Payload `protobuf_oneof:"payload"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Response) Reset() {
*x = Response{}
mi := &file_response_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_response_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 Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{0}
}
func (x *Response) GetPayload() isResponse_Payload {
if x != nil {
return x.Payload
}
return nil
}
func (x *Response) GetClientConnect() *ClientConnectResponse {
if x != nil {
if x, ok := x.Payload.(*Response_ClientConnect); ok {
return x.ClientConnect
}
}
return nil
}
func (x *Response) GetNicknameSet() *NicknameSetResponse {
if x != nil {
if x, ok := x.Payload.(*Response_NicknameSet); ok {
return x.NicknameSet
}
}
return nil
}
func (x *Response) GetShowOptions() *ShowOptionsResponse {
if x != nil {
if x, ok := x.Payload.(*Response_ShowOptions); ok {
return x.ShowOptions
}
}
return nil
}
func (x *Response) GetShowRooms() *ShowRoomsResponse {
if x != nil {
if x, ok := x.Payload.(*Response_ShowRooms); ok {
return x.ShowRooms
}
}
return nil
}
func (x *Response) GetRoomCreateSuccess() *RoomCreateSuccessResponse {
if x != nil {
if x, ok := x.Payload.(*Response_RoomCreateSuccess); ok {
return x.RoomCreateSuccess
}
}
return nil
}
func (x *Response) GetRoomJoinSuccess() *RoomJoinSuccessResponse {
if x != nil {
if x, ok := x.Payload.(*Response_RoomJoinSuccess); ok {
return x.RoomJoinSuccess
}
}
return nil
}
func (x *Response) GetRoomJoinFailFull() *RoomJoinFailFullResponse {
if x != nil {
if x, ok := x.Payload.(*Response_RoomJoinFailFull); ok {
return x.RoomJoinFailFull
}
}
return nil
}
func (x *Response) GetRoomJoinFailNotFound() *RoomJoinFailNotFoundResponse {
if x != nil {
if x, ok := x.Payload.(*Response_RoomJoinFailNotFound); ok {
return x.RoomJoinFailNotFound
}
}
return nil
}
func (x *Response) GetRoomPlayFailNotFound() *RoomPlayFailNotFoundResponse {
if x != nil {
if x, ok := x.Payload.(*Response_RoomPlayFailNotFound); ok {
return x.RoomPlayFailNotFound
}
}
return nil
}
func (x *Response) GetGameStarting() *GameStartingResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameStarting); ok {
return x.GameStarting
}
}
return nil
}
func (x *Response) GetGameReady() *GameReadyResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameReady); ok {
return x.GameReady
}
}
return nil
}
func (x *Response) GetGameMoveSuccess() *GameMoveSuccessResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameMoveSuccess); ok {
return x.GameMoveSuccess
}
}
return nil
}
func (x *Response) GetGameMoveInvalid() *GameMoveInvalidResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameMoveInvalid); ok {
return x.GameMoveInvalid
}
}
return nil
}
func (x *Response) GetGameMoveOccupied() *GameMoveOccupiedResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameMoveOccupied); ok {
return x.GameMoveOccupied
}
}
return nil
}
func (x *Response) GetGameMoveOutOfBounds() *GameMoveOutOfBoundsResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameMoveOutOfBounds); ok {
return x.GameMoveOutOfBounds
}
}
return nil
}
func (x *Response) GetGameMoveNotYourTurn() *GameMoveNotYourTurnResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameMoveNotYourTurn); ok {
return x.GameMoveNotYourTurn
}
}
return nil
}
func (x *Response) GetGameOver() *GameOverResponse {
if x != nil {
if x, ok := x.Payload.(*Response_GameOver); ok {
return x.GameOver
}
}
return nil
}
func (x *Response) GetPveDifficultyNotSupport() *PveDifficultyNotSupportResponse {
if x != nil {
if x, ok := x.Payload.(*Response_PveDifficultyNotSupport); ok {
return x.PveDifficultyNotSupport
}
}
return nil
}
func (x *Response) GetWatchGameSuccess() *WatchGameSuccessResponse {
if x != nil {
if x, ok := x.Payload.(*Response_WatchGameSuccess); ok {
return x.WatchGameSuccess
}
}
return nil
}
func (x *Response) GetClientExit() *ClientExitResponse {
if x != nil {
if x, ok := x.Payload.(*Response_ClientExit); ok {
return x.ClientExit
}
}
return nil
}
func (x *Response) GetSpectatorCannotAct() *SpectatorCannotActResponse {
if x != nil {
if x, ok := x.Payload.(*Response_SpectatorCannotAct); ok {
return x.SpectatorCannotAct
}
}
return nil
}
type isResponse_Payload interface {
isResponse_Payload()
}
type Response_ClientConnect struct {
ClientConnect *ClientConnectResponse `protobuf:"bytes,1,opt,name=client_connect,json=clientConnect,proto3,oneof"`
}
type Response_NicknameSet struct {
NicknameSet *NicknameSetResponse `protobuf:"bytes,2,opt,name=nickname_set,json=nicknameSet,proto3,oneof"`
}
type Response_ShowOptions struct {
ShowOptions *ShowOptionsResponse `protobuf:"bytes,3,opt,name=show_options,json=showOptions,proto3,oneof"`
}
type Response_ShowRooms struct {
ShowRooms *ShowRoomsResponse `protobuf:"bytes,4,opt,name=show_rooms,json=showRooms,proto3,oneof"`
}
type Response_RoomCreateSuccess struct {
RoomCreateSuccess *RoomCreateSuccessResponse `protobuf:"bytes,5,opt,name=room_create_success,json=roomCreateSuccess,proto3,oneof"`
}
type Response_RoomJoinSuccess struct {
RoomJoinSuccess *RoomJoinSuccessResponse `protobuf:"bytes,6,opt,name=room_join_success,json=roomJoinSuccess,proto3,oneof"`
}
type Response_RoomJoinFailFull struct {
RoomJoinFailFull *RoomJoinFailFullResponse `protobuf:"bytes,7,opt,name=room_join_fail_full,json=roomJoinFailFull,proto3,oneof"`
}
type Response_RoomJoinFailNotFound struct {
RoomJoinFailNotFound *RoomJoinFailNotFoundResponse `protobuf:"bytes,8,opt,name=room_join_fail_not_found,json=roomJoinFailNotFound,proto3,oneof"`
}
type Response_RoomPlayFailNotFound struct {
RoomPlayFailNotFound *RoomPlayFailNotFoundResponse `protobuf:"bytes,9,opt,name=room_play_fail_not_found,json=roomPlayFailNotFound,proto3,oneof"`
}
type Response_GameStarting struct {
GameStarting *GameStartingResponse `protobuf:"bytes,10,opt,name=game_starting,json=gameStarting,proto3,oneof"`
}
type Response_GameReady struct {
GameReady *GameReadyResponse `protobuf:"bytes,11,opt,name=game_ready,json=gameReady,proto3,oneof"`
}
type Response_GameMoveSuccess struct {
GameMoveSuccess *GameMoveSuccessResponse `protobuf:"bytes,12,opt,name=game_move_success,json=gameMoveSuccess,proto3,oneof"`
}
type Response_GameMoveInvalid struct {
GameMoveInvalid *GameMoveInvalidResponse `protobuf:"bytes,13,opt,name=game_move_invalid,json=gameMoveInvalid,proto3,oneof"`
}
type Response_GameMoveOccupied struct {
GameMoveOccupied *GameMoveOccupiedResponse `protobuf:"bytes,14,opt,name=game_move_occupied,json=gameMoveOccupied,proto3,oneof"`
}
type Response_GameMoveOutOfBounds struct {
GameMoveOutOfBounds *GameMoveOutOfBoundsResponse `protobuf:"bytes,15,opt,name=game_move_out_of_bounds,json=gameMoveOutOfBounds,proto3,oneof"`
}
type Response_GameMoveNotYourTurn struct {
GameMoveNotYourTurn *GameMoveNotYourTurnResponse `protobuf:"bytes,16,opt,name=game_move_not_your_turn,json=gameMoveNotYourTurn,proto3,oneof"`
}
type Response_GameOver struct {
GameOver *GameOverResponse `protobuf:"bytes,17,opt,name=game_over,json=gameOver,proto3,oneof"`
}
type Response_PveDifficultyNotSupport struct {
PveDifficultyNotSupport *PveDifficultyNotSupportResponse `protobuf:"bytes,18,opt,name=pve_difficulty_not_support,json=pveDifficultyNotSupport,proto3,oneof"`
}
type Response_WatchGameSuccess struct {
WatchGameSuccess *WatchGameSuccessResponse `protobuf:"bytes,19,opt,name=watch_game_success,json=watchGameSuccess,proto3,oneof"`
}
type Response_ClientExit struct {
ClientExit *ClientExitResponse `protobuf:"bytes,20,opt,name=client_exit,json=clientExit,proto3,oneof"`
}
type Response_SpectatorCannotAct struct {
SpectatorCannotAct *SpectatorCannotActResponse `protobuf:"bytes,21,opt,name=spectator_cannot_act,json=spectatorCannotAct,proto3,oneof"`
}
func (*Response_ClientConnect) isResponse_Payload() {}
func (*Response_NicknameSet) isResponse_Payload() {}
func (*Response_ShowOptions) isResponse_Payload() {}
func (*Response_ShowRooms) isResponse_Payload() {}
func (*Response_RoomCreateSuccess) isResponse_Payload() {}
func (*Response_RoomJoinSuccess) isResponse_Payload() {}
func (*Response_RoomJoinFailFull) isResponse_Payload() {}
func (*Response_RoomJoinFailNotFound) isResponse_Payload() {}
func (*Response_RoomPlayFailNotFound) isResponse_Payload() {}
func (*Response_GameStarting) isResponse_Payload() {}
func (*Response_GameReady) isResponse_Payload() {}
func (*Response_GameMoveSuccess) isResponse_Payload() {}
func (*Response_GameMoveInvalid) isResponse_Payload() {}
func (*Response_GameMoveOccupied) isResponse_Payload() {}
func (*Response_GameMoveOutOfBounds) isResponse_Payload() {}
func (*Response_GameMoveNotYourTurn) isResponse_Payload() {}
func (*Response_GameOver) isResponse_Payload() {}
func (*Response_PveDifficultyNotSupport) isResponse_Payload() {}
func (*Response_WatchGameSuccess) isResponse_Payload() {}
func (*Response_ClientExit) isResponse_Payload() {}
func (*Response_SpectatorCannotAct) isResponse_Payload() {}
type ClientConnectResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ClientId int32 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientConnectResponse) Reset() {
*x = ClientConnectResponse{}
mi := &file_response_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientConnectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientConnectResponse) ProtoMessage() {}
func (x *ClientConnectResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 ClientConnectResponse.ProtoReflect.Descriptor instead.
func (*ClientConnectResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{1}
}
func (x *ClientConnectResponse) GetClientId() int32 {
if x != nil {
return x.ClientId
}
return 0
}
// invalid_length = 0 means "prompt only — ask the user for a nickname"
type NicknameSetResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
InvalidLength int32 `protobuf:"varint,1,opt,name=invalid_length,json=invalidLength,proto3" json:"invalid_length,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NicknameSetResponse) Reset() {
*x = NicknameSetResponse{}
mi := &file_response_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NicknameSetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NicknameSetResponse) ProtoMessage() {}
func (x *NicknameSetResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 NicknameSetResponse.ProtoReflect.Descriptor instead.
func (*NicknameSetResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{2}
}
func (x *NicknameSetResponse) GetInvalidLength() int32 {
if x != nil {
return x.InvalidLength
}
return 0
}
type ShowOptionsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ShowOptionsResponse) Reset() {
*x = ShowOptionsResponse{}
mi := &file_response_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ShowOptionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShowOptionsResponse) ProtoMessage() {}
func (x *ShowOptionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 ShowOptionsResponse.ProtoReflect.Descriptor instead.
func (*ShowOptionsResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{3}
}
type RoomSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
RoomId int32 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
RoomOwner string `protobuf:"bytes,2,opt,name=room_owner,json=roomOwner,proto3" json:"room_owner,omitempty"`
RoomClientCount int32 `protobuf:"varint,3,opt,name=room_client_count,json=roomClientCount,proto3" json:"room_client_count,omitempty"`
RoomType string `protobuf:"bytes,4,opt,name=room_type,json=roomType,proto3" json:"room_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomSummary) Reset() {
*x = RoomSummary{}
mi := &file_response_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomSummary) ProtoMessage() {}
func (x *RoomSummary) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomSummary.ProtoReflect.Descriptor instead.
func (*RoomSummary) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{4}
}
func (x *RoomSummary) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *RoomSummary) GetRoomOwner() string {
if x != nil {
return x.RoomOwner
}
return ""
}
func (x *RoomSummary) GetRoomClientCount() int32 {
if x != nil {
return x.RoomClientCount
}
return 0
}
func (x *RoomSummary) GetRoomType() string {
if x != nil {
return x.RoomType
}
return ""
}
type ShowRoomsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rooms []*RoomSummary `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ShowRoomsResponse) Reset() {
*x = ShowRoomsResponse{}
mi := &file_response_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ShowRoomsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShowRoomsResponse) ProtoMessage() {}
func (x *ShowRoomsResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 ShowRoomsResponse.ProtoReflect.Descriptor instead.
func (*ShowRoomsResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{5}
}
func (x *ShowRoomsResponse) GetRooms() []*RoomSummary {
if x != nil {
return x.Rooms
}
return nil
}
type RoomCreateSuccessResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
RoomOwner string `protobuf:"bytes,2,opt,name=room_owner,json=roomOwner,proto3" json:"room_owner,omitempty"`
RoomType string `protobuf:"bytes,3,opt,name=room_type,json=roomType,proto3" json:"room_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomCreateSuccessResponse) Reset() {
*x = RoomCreateSuccessResponse{}
mi := &file_response_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomCreateSuccessResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomCreateSuccessResponse) ProtoMessage() {}
func (x *RoomCreateSuccessResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomCreateSuccessResponse.ProtoReflect.Descriptor instead.
func (*RoomCreateSuccessResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{6}
}
func (x *RoomCreateSuccessResponse) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *RoomCreateSuccessResponse) GetRoomOwner() string {
if x != nil {
return x.RoomOwner
}
return ""
}
func (x *RoomCreateSuccessResponse) GetRoomType() string {
if x != nil {
return x.RoomType
}
return ""
}
type RoomJoinSuccessResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ClientId int32 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
ClientNickname string `protobuf:"bytes,2,opt,name=client_nickname,json=clientNickname,proto3" json:"client_nickname,omitempty"`
RoomId int32 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
RoomOwner string `protobuf:"bytes,4,opt,name=room_owner,json=roomOwner,proto3" json:"room_owner,omitempty"`
RoomClientCount int32 `protobuf:"varint,5,opt,name=room_client_count,json=roomClientCount,proto3" json:"room_client_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomJoinSuccessResponse) Reset() {
*x = RoomJoinSuccessResponse{}
mi := &file_response_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomJoinSuccessResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomJoinSuccessResponse) ProtoMessage() {}
func (x *RoomJoinSuccessResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomJoinSuccessResponse.ProtoReflect.Descriptor instead.
func (*RoomJoinSuccessResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{7}
}
func (x *RoomJoinSuccessResponse) GetClientId() int32 {
if x != nil {
return x.ClientId
}
return 0
}
func (x *RoomJoinSuccessResponse) GetClientNickname() string {
if x != nil {
return x.ClientNickname
}
return ""
}
func (x *RoomJoinSuccessResponse) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *RoomJoinSuccessResponse) GetRoomOwner() string {
if x != nil {
return x.RoomOwner
}
return ""
}
func (x *RoomJoinSuccessResponse) GetRoomClientCount() int32 {
if x != nil {
return x.RoomClientCount
}
return 0
}
type RoomJoinFailFullResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RoomId int32 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
RoomOwner string `protobuf:"bytes,2,opt,name=room_owner,json=roomOwner,proto3" json:"room_owner,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomJoinFailFullResponse) Reset() {
*x = RoomJoinFailFullResponse{}
mi := &file_response_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomJoinFailFullResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomJoinFailFullResponse) ProtoMessage() {}
func (x *RoomJoinFailFullResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomJoinFailFullResponse.ProtoReflect.Descriptor instead.
func (*RoomJoinFailFullResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{8}
}
func (x *RoomJoinFailFullResponse) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *RoomJoinFailFullResponse) GetRoomOwner() string {
if x != nil {
return x.RoomOwner
}
return ""
}
type RoomJoinFailNotFoundResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RoomId int32 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomJoinFailNotFoundResponse) Reset() {
*x = RoomJoinFailNotFoundResponse{}
mi := &file_response_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomJoinFailNotFoundResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomJoinFailNotFoundResponse) ProtoMessage() {}
func (x *RoomJoinFailNotFoundResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomJoinFailNotFoundResponse.ProtoReflect.Descriptor instead.
func (*RoomJoinFailNotFoundResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{9}
}
func (x *RoomJoinFailNotFoundResponse) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
type RoomPlayFailNotFoundResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoomPlayFailNotFoundResponse) Reset() {
*x = RoomPlayFailNotFoundResponse{}
mi := &file_response_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoomPlayFailNotFoundResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoomPlayFailNotFoundResponse) ProtoMessage() {}
func (x *RoomPlayFailNotFoundResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 RoomPlayFailNotFoundResponse.ProtoReflect.Descriptor instead.
func (*RoomPlayFailNotFoundResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{10}
}
type GameStartingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RoomId int32 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
BlackPlayerId int32 `protobuf:"varint,2,opt,name=black_player_id,json=blackPlayerId,proto3" json:"black_player_id,omitempty"`
BlackPlayerNickname string `protobuf:"bytes,3,opt,name=black_player_nickname,json=blackPlayerNickname,proto3" json:"black_player_nickname,omitempty"`
WhitePlayerId int32 `protobuf:"varint,4,opt,name=white_player_id,json=whitePlayerId,proto3" json:"white_player_id,omitempty"`
WhitePlayerNickname string `protobuf:"bytes,5,opt,name=white_player_nickname,json=whitePlayerNickname,proto3" json:"white_player_nickname,omitempty"`
BoardSize int32 `protobuf:"varint,6,opt,name=board_size,json=boardSize,proto3" json:"board_size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameStartingResponse) Reset() {
*x = GameStartingResponse{}
mi := &file_response_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameStartingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameStartingResponse) ProtoMessage() {}
func (x *GameStartingResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameStartingResponse.ProtoReflect.Descriptor instead.
func (*GameStartingResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{11}
}
func (x *GameStartingResponse) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *GameStartingResponse) GetBlackPlayerId() int32 {
if x != nil {
return x.BlackPlayerId
}
return 0
}
func (x *GameStartingResponse) GetBlackPlayerNickname() string {
if x != nil {
return x.BlackPlayerNickname
}
return ""
}
func (x *GameStartingResponse) GetWhitePlayerId() int32 {
if x != nil {
return x.WhitePlayerId
}
return 0
}
func (x *GameStartingResponse) GetWhitePlayerNickname() string {
if x != nil {
return x.WhitePlayerNickname
}
return ""
}
func (x *GameStartingResponse) GetBoardSize() int32 {
if x != nil {
return x.BoardSize
}
return 0
}
type GameReadyResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ClientNickname string `protobuf:"bytes,1,opt,name=client_nickname,json=clientNickname,proto3" json:"client_nickname,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
ClientId int32 `protobuf:"varint,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameReadyResponse) Reset() {
*x = GameReadyResponse{}
mi := &file_response_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameReadyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameReadyResponse) ProtoMessage() {}
func (x *GameReadyResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameReadyResponse.ProtoReflect.Descriptor instead.
func (*GameReadyResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{12}
}
func (x *GameReadyResponse) GetClientNickname() string {
if x != nil {
return x.ClientNickname
}
return ""
}
func (x *GameReadyResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *GameReadyResponse) GetClientId() int32 {
if x != nil {
return x.ClientId
}
return 0
}
type GameMoveSuccessResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Row int32 `protobuf:"varint,1,opt,name=row,proto3" json:"row,omitempty"`
Col int32 `protobuf:"varint,2,opt,name=col,proto3" json:"col,omitempty"`
Piece string `protobuf:"bytes,3,opt,name=piece,proto3" json:"piece,omitempty"`
PlayerNickname string `protobuf:"bytes,4,opt,name=player_nickname,json=playerNickname,proto3" json:"player_nickname,omitempty"`
PlayerId int32 `protobuf:"varint,5,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameMoveSuccessResponse) Reset() {
*x = GameMoveSuccessResponse{}
mi := &file_response_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameMoveSuccessResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameMoveSuccessResponse) ProtoMessage() {}
func (x *GameMoveSuccessResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameMoveSuccessResponse.ProtoReflect.Descriptor instead.
func (*GameMoveSuccessResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{13}
}
func (x *GameMoveSuccessResponse) GetRow() int32 {
if x != nil {
return x.Row
}
return 0
}
func (x *GameMoveSuccessResponse) GetCol() int32 {
if x != nil {
return x.Col
}
return 0
}
func (x *GameMoveSuccessResponse) GetPiece() string {
if x != nil {
return x.Piece
}
return ""
}
func (x *GameMoveSuccessResponse) GetPlayerNickname() string {
if x != nil {
return x.PlayerNickname
}
return ""
}
func (x *GameMoveSuccessResponse) GetPlayerId() int32 {
if x != nil {
return x.PlayerId
}
return 0
}
type GameMoveInvalidResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameMoveInvalidResponse) Reset() {
*x = GameMoveInvalidResponse{}
mi := &file_response_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameMoveInvalidResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameMoveInvalidResponse) ProtoMessage() {}
func (x *GameMoveInvalidResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameMoveInvalidResponse.ProtoReflect.Descriptor instead.
func (*GameMoveInvalidResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{14}
}
type GameMoveOccupiedResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameMoveOccupiedResponse) Reset() {
*x = GameMoveOccupiedResponse{}
mi := &file_response_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameMoveOccupiedResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameMoveOccupiedResponse) ProtoMessage() {}
func (x *GameMoveOccupiedResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameMoveOccupiedResponse.ProtoReflect.Descriptor instead.
func (*GameMoveOccupiedResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{15}
}
type GameMoveOutOfBoundsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameMoveOutOfBoundsResponse) Reset() {
*x = GameMoveOutOfBoundsResponse{}
mi := &file_response_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameMoveOutOfBoundsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameMoveOutOfBoundsResponse) ProtoMessage() {}
func (x *GameMoveOutOfBoundsResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameMoveOutOfBoundsResponse.ProtoReflect.Descriptor instead.
func (*GameMoveOutOfBoundsResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{16}
}
type GameMoveNotYourTurnResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameMoveNotYourTurnResponse) Reset() {
*x = GameMoveNotYourTurnResponse{}
mi := &file_response_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameMoveNotYourTurnResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameMoveNotYourTurnResponse) ProtoMessage() {}
func (x *GameMoveNotYourTurnResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameMoveNotYourTurnResponse.ProtoReflect.Descriptor instead.
func (*GameMoveNotYourTurnResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{17}
}
type GameOverResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
WinnerNickname string `protobuf:"bytes,2,opt,name=winner_nickname,json=winnerNickname,proto3" json:"winner_nickname,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameOverResponse) Reset() {
*x = GameOverResponse{}
mi := &file_response_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameOverResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameOverResponse) ProtoMessage() {}
func (x *GameOverResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 GameOverResponse.ProtoReflect.Descriptor instead.
func (*GameOverResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{18}
}
func (x *GameOverResponse) GetResult() string {
if x != nil {
return x.Result
}
return ""
}
func (x *GameOverResponse) GetWinnerNickname() string {
if x != nil {
return x.WinnerNickname
}
return ""
}
type PveDifficultyNotSupportResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PveDifficultyNotSupportResponse) Reset() {
*x = PveDifficultyNotSupportResponse{}
mi := &file_response_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PveDifficultyNotSupportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PveDifficultyNotSupportResponse) ProtoMessage() {}
func (x *PveDifficultyNotSupportResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 PveDifficultyNotSupportResponse.ProtoReflect.Descriptor instead.
func (*PveDifficultyNotSupportResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{19}
}
type WatchGameSuccessResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WatchGameSuccessResponse) Reset() {
*x = WatchGameSuccessResponse{}
mi := &file_response_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WatchGameSuccessResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WatchGameSuccessResponse) ProtoMessage() {}
func (x *WatchGameSuccessResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 WatchGameSuccessResponse.ProtoReflect.Descriptor instead.
func (*WatchGameSuccessResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{20}
}
func (x *WatchGameSuccessResponse) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *WatchGameSuccessResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
type ClientExitResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RoomId int32 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
ExitClientId int32 `protobuf:"varint,2,opt,name=exit_client_id,json=exitClientId,proto3" json:"exit_client_id,omitempty"`
ExitClientNickname string `protobuf:"bytes,3,opt,name=exit_client_nickname,json=exitClientNickname,proto3" json:"exit_client_nickname,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientExitResponse) Reset() {
*x = ClientExitResponse{}
mi := &file_response_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientExitResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientExitResponse) ProtoMessage() {}
func (x *ClientExitResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 ClientExitResponse.ProtoReflect.Descriptor instead.
func (*ClientExitResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{21}
}
func (x *ClientExitResponse) GetRoomId() int32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *ClientExitResponse) GetExitClientId() int32 {
if x != nil {
return x.ExitClientId
}
return 0
}
func (x *ClientExitResponse) GetExitClientNickname() string {
if x != nil {
return x.ExitClientNickname
}
return ""
}
// Sent when a spectator attempts an action that requires being a player.
// Phase-07 dispatch sends this in response to GameMoveRequest from a spectator.
type SpectatorCannotActResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SpectatorCannotActResponse) Reset() {
*x = SpectatorCannotActResponse{}
mi := &file_response_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SpectatorCannotActResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SpectatorCannotActResponse) ProtoMessage() {}
func (x *SpectatorCannotActResponse) ProtoReflect() protoreflect.Message {
mi := &file_response_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 SpectatorCannotActResponse.ProtoReflect.Descriptor instead.
func (*SpectatorCannotActResponse) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{22}
}
var File_response_proto protoreflect.FileDescriptor
const file_response_proto_rawDesc = "" +
"\n" +
"\x0eresponse.proto\x12\x17com.miti99.gomoku.proto\"\xee\x0f\n" +
"\bResponse\x12W\n" +
"\x0eclient_connect\x18\x01 \x01(\v2..com.miti99.gomoku.proto.ClientConnectResponseH\x00R\rclientConnect\x12Q\n" +
"\fnickname_set\x18\x02 \x01(\v2,.com.miti99.gomoku.proto.NicknameSetResponseH\x00R\vnicknameSet\x12Q\n" +
"\fshow_options\x18\x03 \x01(\v2,.com.miti99.gomoku.proto.ShowOptionsResponseH\x00R\vshowOptions\x12K\n" +
"\n" +
"show_rooms\x18\x04 \x01(\v2*.com.miti99.gomoku.proto.ShowRoomsResponseH\x00R\tshowRooms\x12d\n" +
"\x13room_create_success\x18\x05 \x01(\v22.com.miti99.gomoku.proto.RoomCreateSuccessResponseH\x00R\x11roomCreateSuccess\x12^\n" +
"\x11room_join_success\x18\x06 \x01(\v20.com.miti99.gomoku.proto.RoomJoinSuccessResponseH\x00R\x0froomJoinSuccess\x12b\n" +
"\x13room_join_fail_full\x18\a \x01(\v21.com.miti99.gomoku.proto.RoomJoinFailFullResponseH\x00R\x10roomJoinFailFull\x12o\n" +
"\x18room_join_fail_not_found\x18\b \x01(\v25.com.miti99.gomoku.proto.RoomJoinFailNotFoundResponseH\x00R\x14roomJoinFailNotFound\x12o\n" +
"\x18room_play_fail_not_found\x18\t \x01(\v25.com.miti99.gomoku.proto.RoomPlayFailNotFoundResponseH\x00R\x14roomPlayFailNotFound\x12T\n" +
"\rgame_starting\x18\n" +
" \x01(\v2-.com.miti99.gomoku.proto.GameStartingResponseH\x00R\fgameStarting\x12K\n" +
"\n" +
"game_ready\x18\v \x01(\v2*.com.miti99.gomoku.proto.GameReadyResponseH\x00R\tgameReady\x12^\n" +
"\x11game_move_success\x18\f \x01(\v20.com.miti99.gomoku.proto.GameMoveSuccessResponseH\x00R\x0fgameMoveSuccess\x12^\n" +
"\x11game_move_invalid\x18\r \x01(\v20.com.miti99.gomoku.proto.GameMoveInvalidResponseH\x00R\x0fgameMoveInvalid\x12a\n" +
"\x12game_move_occupied\x18\x0e \x01(\v21.com.miti99.gomoku.proto.GameMoveOccupiedResponseH\x00R\x10gameMoveOccupied\x12l\n" +
"\x17game_move_out_of_bounds\x18\x0f \x01(\v24.com.miti99.gomoku.proto.GameMoveOutOfBoundsResponseH\x00R\x13gameMoveOutOfBounds\x12l\n" +
"\x17game_move_not_your_turn\x18\x10 \x01(\v24.com.miti99.gomoku.proto.GameMoveNotYourTurnResponseH\x00R\x13gameMoveNotYourTurn\x12H\n" +
"\tgame_over\x18\x11 \x01(\v2).com.miti99.gomoku.proto.GameOverResponseH\x00R\bgameOver\x12w\n" +
"\x1apve_difficulty_not_support\x18\x12 \x01(\v28.com.miti99.gomoku.proto.PveDifficultyNotSupportResponseH\x00R\x17pveDifficultyNotSupport\x12a\n" +
"\x12watch_game_success\x18\x13 \x01(\v21.com.miti99.gomoku.proto.WatchGameSuccessResponseH\x00R\x10watchGameSuccess\x12N\n" +
"\vclient_exit\x18\x14 \x01(\v2+.com.miti99.gomoku.proto.ClientExitResponseH\x00R\n" +
"clientExit\x12g\n" +
"\x14spectator_cannot_act\x18\x15 \x01(\v23.com.miti99.gomoku.proto.SpectatorCannotActResponseH\x00R\x12spectatorCannotActB\t\n" +
"\apayload\"4\n" +
"\x15ClientConnectResponse\x12\x1b\n" +
"\tclient_id\x18\x01 \x01(\x05R\bclientId\"<\n" +
"\x13NicknameSetResponse\x12%\n" +
"\x0einvalid_length\x18\x01 \x01(\x05R\rinvalidLength\"\x15\n" +
"\x13ShowOptionsResponse\"\x8e\x01\n" +
"\vRoomSummary\x12\x17\n" +
"\aroom_id\x18\x01 \x01(\x05R\x06roomId\x12\x1d\n" +
"\n" +
"room_owner\x18\x02 \x01(\tR\troomOwner\x12*\n" +
"\x11room_client_count\x18\x03 \x01(\x05R\x0froomClientCount\x12\x1b\n" +
"\troom_type\x18\x04 \x01(\tR\broomType\"O\n" +
"\x11ShowRoomsResponse\x12:\n" +
"\x05rooms\x18\x01 \x03(\v2$.com.miti99.gomoku.proto.RoomSummaryR\x05rooms\"g\n" +
"\x19RoomCreateSuccessResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x1d\n" +
"\n" +
"room_owner\x18\x02 \x01(\tR\troomOwner\x12\x1b\n" +
"\troom_type\x18\x03 \x01(\tR\broomType\"\xc3\x01\n" +
"\x17RoomJoinSuccessResponse\x12\x1b\n" +
"\tclient_id\x18\x01 \x01(\x05R\bclientId\x12'\n" +
"\x0fclient_nickname\x18\x02 \x01(\tR\x0eclientNickname\x12\x17\n" +
"\aroom_id\x18\x03 \x01(\x05R\x06roomId\x12\x1d\n" +
"\n" +
"room_owner\x18\x04 \x01(\tR\troomOwner\x12*\n" +
"\x11room_client_count\x18\x05 \x01(\x05R\x0froomClientCount\"R\n" +
"\x18RoomJoinFailFullResponse\x12\x17\n" +
"\aroom_id\x18\x01 \x01(\x05R\x06roomId\x12\x1d\n" +
"\n" +
"room_owner\x18\x02 \x01(\tR\troomOwner\"7\n" +
"\x1cRoomJoinFailNotFoundResponse\x12\x17\n" +
"\aroom_id\x18\x01 \x01(\x05R\x06roomId\"\x1e\n" +
"\x1cRoomPlayFailNotFoundResponse\"\x86\x02\n" +
"\x14GameStartingResponse\x12\x17\n" +
"\aroom_id\x18\x01 \x01(\x05R\x06roomId\x12&\n" +
"\x0fblack_player_id\x18\x02 \x01(\x05R\rblackPlayerId\x122\n" +
"\x15black_player_nickname\x18\x03 \x01(\tR\x13blackPlayerNickname\x12&\n" +
"\x0fwhite_player_id\x18\x04 \x01(\x05R\rwhitePlayerId\x122\n" +
"\x15white_player_nickname\x18\x05 \x01(\tR\x13whitePlayerNickname\x12\x1d\n" +
"\n" +
"board_size\x18\x06 \x01(\x05R\tboardSize\"q\n" +
"\x11GameReadyResponse\x12'\n" +
"\x0fclient_nickname\x18\x01 \x01(\tR\x0eclientNickname\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x1b\n" +
"\tclient_id\x18\x03 \x01(\x05R\bclientId\"\x99\x01\n" +
"\x17GameMoveSuccessResponse\x12\x10\n" +
"\x03row\x18\x01 \x01(\x05R\x03row\x12\x10\n" +
"\x03col\x18\x02 \x01(\x05R\x03col\x12\x14\n" +
"\x05piece\x18\x03 \x01(\tR\x05piece\x12'\n" +
"\x0fplayer_nickname\x18\x04 \x01(\tR\x0eplayerNickname\x12\x1b\n" +
"\tplayer_id\x18\x05 \x01(\x05R\bplayerId\"\x19\n" +
"\x17GameMoveInvalidResponse\"\x1a\n" +
"\x18GameMoveOccupiedResponse\"\x1d\n" +
"\x1bGameMoveOutOfBoundsResponse\"\x1d\n" +
"\x1bGameMoveNotYourTurnResponse\"S\n" +
"\x10GameOverResponse\x12\x16\n" +
"\x06result\x18\x01 \x01(\tR\x06result\x12'\n" +
"\x0fwinner_nickname\x18\x02 \x01(\tR\x0ewinnerNickname\"!\n" +
"\x1fPveDifficultyNotSupportResponse\"H\n" +
"\x18WatchGameSuccessResponse\x12\x14\n" +
"\x05owner\x18\x01 \x01(\tR\x05owner\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\"\x85\x01\n" +
"\x12ClientExitResponse\x12\x17\n" +
"\aroom_id\x18\x01 \x01(\x05R\x06roomId\x12$\n" +
"\x0eexit_client_id\x18\x02 \x01(\x05R\fexitClientId\x120\n" +
"\x14exit_client_nickname\x18\x03 \x01(\tR\x12exitClientNickname\"\x1c\n" +
"\x1aSpectatorCannotActResponseB5Z3github.com/tiennm99/gomoku/server/protocol;protocolb\x06proto3"
var (
file_response_proto_rawDescOnce sync.Once
file_response_proto_rawDescData []byte
)
func file_response_proto_rawDescGZIP() []byte {
file_response_proto_rawDescOnce.Do(func() {
file_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_response_proto_rawDesc), len(file_response_proto_rawDesc)))
})
return file_response_proto_rawDescData
}
var file_response_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
var file_response_proto_goTypes = []any{
(*Response)(nil), // 0: com.miti99.gomoku.proto.Response
(*ClientConnectResponse)(nil), // 1: com.miti99.gomoku.proto.ClientConnectResponse
(*NicknameSetResponse)(nil), // 2: com.miti99.gomoku.proto.NicknameSetResponse
(*ShowOptionsResponse)(nil), // 3: com.miti99.gomoku.proto.ShowOptionsResponse
(*RoomSummary)(nil), // 4: com.miti99.gomoku.proto.RoomSummary
(*ShowRoomsResponse)(nil), // 5: com.miti99.gomoku.proto.ShowRoomsResponse
(*RoomCreateSuccessResponse)(nil), // 6: com.miti99.gomoku.proto.RoomCreateSuccessResponse
(*RoomJoinSuccessResponse)(nil), // 7: com.miti99.gomoku.proto.RoomJoinSuccessResponse
(*RoomJoinFailFullResponse)(nil), // 8: com.miti99.gomoku.proto.RoomJoinFailFullResponse
(*RoomJoinFailNotFoundResponse)(nil), // 9: com.miti99.gomoku.proto.RoomJoinFailNotFoundResponse
(*RoomPlayFailNotFoundResponse)(nil), // 10: com.miti99.gomoku.proto.RoomPlayFailNotFoundResponse
(*GameStartingResponse)(nil), // 11: com.miti99.gomoku.proto.GameStartingResponse
(*GameReadyResponse)(nil), // 12: com.miti99.gomoku.proto.GameReadyResponse
(*GameMoveSuccessResponse)(nil), // 13: com.miti99.gomoku.proto.GameMoveSuccessResponse
(*GameMoveInvalidResponse)(nil), // 14: com.miti99.gomoku.proto.GameMoveInvalidResponse
(*GameMoveOccupiedResponse)(nil), // 15: com.miti99.gomoku.proto.GameMoveOccupiedResponse
(*GameMoveOutOfBoundsResponse)(nil), // 16: com.miti99.gomoku.proto.GameMoveOutOfBoundsResponse
(*GameMoveNotYourTurnResponse)(nil), // 17: com.miti99.gomoku.proto.GameMoveNotYourTurnResponse
(*GameOverResponse)(nil), // 18: com.miti99.gomoku.proto.GameOverResponse
(*PveDifficultyNotSupportResponse)(nil), // 19: com.miti99.gomoku.proto.PveDifficultyNotSupportResponse
(*WatchGameSuccessResponse)(nil), // 20: com.miti99.gomoku.proto.WatchGameSuccessResponse
(*ClientExitResponse)(nil), // 21: com.miti99.gomoku.proto.ClientExitResponse
(*SpectatorCannotActResponse)(nil), // 22: com.miti99.gomoku.proto.SpectatorCannotActResponse
}
var file_response_proto_depIdxs = []int32{
1, // 0: com.miti99.gomoku.proto.Response.client_connect:type_name -> com.miti99.gomoku.proto.ClientConnectResponse
2, // 1: com.miti99.gomoku.proto.Response.nickname_set:type_name -> com.miti99.gomoku.proto.NicknameSetResponse
3, // 2: com.miti99.gomoku.proto.Response.show_options:type_name -> com.miti99.gomoku.proto.ShowOptionsResponse
5, // 3: com.miti99.gomoku.proto.Response.show_rooms:type_name -> com.miti99.gomoku.proto.ShowRoomsResponse
6, // 4: com.miti99.gomoku.proto.Response.room_create_success:type_name -> com.miti99.gomoku.proto.RoomCreateSuccessResponse
7, // 5: com.miti99.gomoku.proto.Response.room_join_success:type_name -> com.miti99.gomoku.proto.RoomJoinSuccessResponse
8, // 6: com.miti99.gomoku.proto.Response.room_join_fail_full:type_name -> com.miti99.gomoku.proto.RoomJoinFailFullResponse
9, // 7: com.miti99.gomoku.proto.Response.room_join_fail_not_found:type_name -> com.miti99.gomoku.proto.RoomJoinFailNotFoundResponse
10, // 8: com.miti99.gomoku.proto.Response.room_play_fail_not_found:type_name -> com.miti99.gomoku.proto.RoomPlayFailNotFoundResponse
11, // 9: com.miti99.gomoku.proto.Response.game_starting:type_name -> com.miti99.gomoku.proto.GameStartingResponse
12, // 10: com.miti99.gomoku.proto.Response.game_ready:type_name -> com.miti99.gomoku.proto.GameReadyResponse
13, // 11: com.miti99.gomoku.proto.Response.game_move_success:type_name -> com.miti99.gomoku.proto.GameMoveSuccessResponse
14, // 12: com.miti99.gomoku.proto.Response.game_move_invalid:type_name -> com.miti99.gomoku.proto.GameMoveInvalidResponse
15, // 13: com.miti99.gomoku.proto.Response.game_move_occupied:type_name -> com.miti99.gomoku.proto.GameMoveOccupiedResponse
16, // 14: com.miti99.gomoku.proto.Response.game_move_out_of_bounds:type_name -> com.miti99.gomoku.proto.GameMoveOutOfBoundsResponse
17, // 15: com.miti99.gomoku.proto.Response.game_move_not_your_turn:type_name -> com.miti99.gomoku.proto.GameMoveNotYourTurnResponse
18, // 16: com.miti99.gomoku.proto.Response.game_over:type_name -> com.miti99.gomoku.proto.GameOverResponse
19, // 17: com.miti99.gomoku.proto.Response.pve_difficulty_not_support:type_name -> com.miti99.gomoku.proto.PveDifficultyNotSupportResponse
20, // 18: com.miti99.gomoku.proto.Response.watch_game_success:type_name -> com.miti99.gomoku.proto.WatchGameSuccessResponse
21, // 19: com.miti99.gomoku.proto.Response.client_exit:type_name -> com.miti99.gomoku.proto.ClientExitResponse
22, // 20: com.miti99.gomoku.proto.Response.spectator_cannot_act:type_name -> com.miti99.gomoku.proto.SpectatorCannotActResponse
4, // 21: com.miti99.gomoku.proto.ShowRoomsResponse.rooms:type_name -> com.miti99.gomoku.proto.RoomSummary
22, // [22:22] is the sub-list for method output_type
22, // [22:22] is the sub-list for method input_type
22, // [22:22] is the sub-list for extension type_name
22, // [22:22] is the sub-list for extension extendee
0, // [0:22] is the sub-list for field type_name
}
func init() { file_response_proto_init() }
func file_response_proto_init() {
if File_response_proto != nil {
return
}
file_response_proto_msgTypes[0].OneofWrappers = []any{
(*Response_ClientConnect)(nil),
(*Response_NicknameSet)(nil),
(*Response_ShowOptions)(nil),
(*Response_ShowRooms)(nil),
(*Response_RoomCreateSuccess)(nil),
(*Response_RoomJoinSuccess)(nil),
(*Response_RoomJoinFailFull)(nil),
(*Response_RoomJoinFailNotFound)(nil),
(*Response_RoomPlayFailNotFound)(nil),
(*Response_GameStarting)(nil),
(*Response_GameReady)(nil),
(*Response_GameMoveSuccess)(nil),
(*Response_GameMoveInvalid)(nil),
(*Response_GameMoveOccupied)(nil),
(*Response_GameMoveOutOfBounds)(nil),
(*Response_GameMoveNotYourTurn)(nil),
(*Response_GameOver)(nil),
(*Response_PveDifficultyNotSupport)(nil),
(*Response_WatchGameSuccess)(nil),
(*Response_ClientExit)(nil),
(*Response_SpectatorCannotAct)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_response_proto_rawDesc), len(file_response_proto_rawDesc)),
NumEnums: 0,
NumMessages: 23,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_response_proto_goTypes,
DependencyIndexes: file_response_proto_depIdxs,
MessageInfos: file_response_proto_msgTypes,
}.Build()
File_response_proto = out.File
file_response_proto_goTypes = nil
file_response_proto_depIdxs = nil
}