document

package
v0.0.0-...-7a2dd3a Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Player_Order_name = map[int32]string{
		0: "BLACK",
		1: "WHITE",
	}
	Player_Order_value = map[string]int32{
		"BLACK": 0,
		"WHITE": 1,
	}
)

Enum value maps for Player_Order.

View Source
var (
	FinishedStatus_Id_name = map[int32]string{
		0: "NOT_FINISHED",
		1: "SUSPEND",
		2: "SURRENDER",
		3: "DRAW",
		4: "REPETITION_DRAW",
		5: "CHECKMATE",
		6: "OVER_TIME_LIMIT",
		7: "FOUL_LOSS",
		8: "FOUL_WIN",
		9: "NYUGYOKU_WIN",
	}
	FinishedStatus_Id_value = map[string]int32{
		"NOT_FINISHED":    0,
		"SUSPEND":         1,
		"SURRENDER":       2,
		"DRAW":            3,
		"REPETITION_DRAW": 4,
		"CHECKMATE":       5,
		"OVER_TIME_LIMIT": 6,
		"FOUL_LOSS":       7,
		"FOUL_WIN":        8,
		"NYUGYOKU_WIN":    9,
	}
)

Enum value maps for FinishedStatus_Id.

View Source
var (
	Handicap_Id_name = map[int32]string{
		0:  "NONE",
		1:  "DROP_L",
		2:  "DROP_L_R",
		3:  "DROP_B",
		4:  "DROP_R",
		5:  "DROP_RL",
		6:  "DROP_TWO",
		7:  "DROP_THREE",
		8:  "DROP_FOUR",
		9:  "DROP_FIVE",
		10: "DROP_FIVE_L",
		11: "DROP_SIX",
		12: "DROP_EIGHT",
		13: "DROP_TEN",
		14: "OTHER",
	}
	Handicap_Id_value = map[string]int32{
		"NONE":        0,
		"DROP_L":      1,
		"DROP_L_R":    2,
		"DROP_B":      3,
		"DROP_R":      4,
		"DROP_RL":     5,
		"DROP_TWO":    6,
		"DROP_THREE":  7,
		"DROP_FOUR":   8,
		"DROP_FIVE":   9,
		"DROP_FIVE_L": 10,
		"DROP_SIX":    11,
		"DROP_EIGHT":  12,
		"DROP_TEN":    13,
		"OTHER":       14,
	}
)

Enum value maps for Handicap_Id.

View Source
var (
	Piece_Id_name = map[int32]string{
		0:  "NULL",
		1:  "GYOKU",
		2:  "HISHA",
		3:  "RYU",
		4:  "KAKU",
		5:  "UMA",
		6:  "KIN",
		7:  "GIN",
		8:  "NARI_GIN",
		9:  "KEI",
		10: "NARI_KEI",
		11: "KYOU",
		12: "NARI_KYOU",
		13: "FU",
		14: "TO",
	}
	Piece_Id_value = map[string]int32{
		"NULL":      0,
		"GYOKU":     1,
		"HISHA":     2,
		"RYU":       3,
		"KAKU":      4,
		"UMA":       5,
		"KIN":       6,
		"GIN":       7,
		"NARI_GIN":  8,
		"KEI":       9,
		"NARI_KEI":  10,
		"KYOU":      11,
		"NARI_KYOU": 12,
		"FU":        13,
		"TO":        14,
	}
)

Enum value maps for Piece_Id.

View Source
var File_proto_document_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FinishedStatus

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

func (*FinishedStatus) Descriptor deprecated

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

Deprecated: Use FinishedStatus.ProtoReflect.Descriptor instead.

func (*FinishedStatus) ProtoMessage

func (*FinishedStatus) ProtoMessage()

func (*FinishedStatus) ProtoReflect

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

func (*FinishedStatus) Reset

func (x *FinishedStatus) Reset()

func (*FinishedStatus) String

func (x *FinishedStatus) String() string

type FinishedStatus_Id

type FinishedStatus_Id int32
const (
	FinishedStatus_NOT_FINISHED    FinishedStatus_Id = 0
	FinishedStatus_SUSPEND         FinishedStatus_Id = 1
	FinishedStatus_SURRENDER       FinishedStatus_Id = 2
	FinishedStatus_DRAW            FinishedStatus_Id = 3
	FinishedStatus_REPETITION_DRAW FinishedStatus_Id = 4
	FinishedStatus_CHECKMATE       FinishedStatus_Id = 5
	FinishedStatus_OVER_TIME_LIMIT FinishedStatus_Id = 6
	FinishedStatus_FOUL_LOSS       FinishedStatus_Id = 7
	FinishedStatus_FOUL_WIN        FinishedStatus_Id = 8
	FinishedStatus_NYUGYOKU_WIN    FinishedStatus_Id = 9
)

func (FinishedStatus_Id) Descriptor

func (FinishedStatus_Id) Enum

func (FinishedStatus_Id) EnumDescriptor deprecated

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

Deprecated: Use FinishedStatus_Id.Descriptor instead.

func (FinishedStatus_Id) Number

func (FinishedStatus_Id) String

func (x FinishedStatus_Id) String() string

func (FinishedStatus_Id) Type

type Handicap

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

func (*Handicap) Descriptor deprecated

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

Deprecated: Use Handicap.ProtoReflect.Descriptor instead.

func (*Handicap) ProtoMessage

func (*Handicap) ProtoMessage()

func (*Handicap) ProtoReflect

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

func (*Handicap) Reset

func (x *Handicap) Reset()

func (*Handicap) String

func (x *Handicap) String() string

type Handicap_Id

type Handicap_Id int32
const (
	Handicap_NONE        Handicap_Id = 0
	Handicap_DROP_L      Handicap_Id = 1
	Handicap_DROP_L_R    Handicap_Id = 2
	Handicap_DROP_B      Handicap_Id = 3
	Handicap_DROP_R      Handicap_Id = 4
	Handicap_DROP_RL     Handicap_Id = 5
	Handicap_DROP_TWO    Handicap_Id = 6
	Handicap_DROP_THREE  Handicap_Id = 7
	Handicap_DROP_FOUR   Handicap_Id = 8
	Handicap_DROP_FIVE   Handicap_Id = 9
	Handicap_DROP_FIVE_L Handicap_Id = 10
	Handicap_DROP_SIX    Handicap_Id = 11
	Handicap_DROP_EIGHT  Handicap_Id = 12
	Handicap_DROP_TEN    Handicap_Id = 13
	Handicap_OTHER       Handicap_Id = 14
)

func (Handicap_Id) Descriptor

func (Handicap_Id) Enum

func (x Handicap_Id) Enum() *Handicap_Id

func (Handicap_Id) EnumDescriptor deprecated

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

Deprecated: Use Handicap_Id.Descriptor instead.

func (Handicap_Id) Number

func (x Handicap_Id) Number() protoreflect.EnumNumber

func (Handicap_Id) String

func (x Handicap_Id) String() string

func (Handicap_Id) Type

type Kifu

type Kifu struct {
	UserId      string            `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	KifuId      string            `protobuf:"bytes,2,opt,name=kifu_id,json=kifuId,proto3" json:"kifu_id,omitempty"`
	StartTs     int64             `protobuf:"varint,4,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
	EndTs       int64             `protobuf:"varint,5,opt,name=end_ts,json=endTs,proto3" json:"end_ts,omitempty"`
	Handicap    Handicap_Id       `protobuf:"varint,6,opt,name=handicap,proto3,enum=document.Handicap_Id" json:"handicap,omitempty"`
	GameName    string            `protobuf:"bytes,7,opt,name=game_name,json=gameName,proto3" json:"game_name,omitempty"`
	Players     []*Player         `protobuf:"bytes,8,rep,name=players,proto3" json:"players,omitempty"`
	OtherFields map[string]string `` /* 182-byte string literal not displayed */
	Sfen        string            `protobuf:"bytes,10,opt,name=sfen,proto3" json:"sfen,omitempty"`
	Aliases     []string          `protobuf:"bytes,11,rep,name=aliases,proto3" json:"aliases,omitempty"`
	CreatedTs   int64             `protobuf:"varint,12,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	Note        string            `protobuf:"bytes,13,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*Kifu) Descriptor deprecated

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

Deprecated: Use Kifu.ProtoReflect.Descriptor instead.

func (*Kifu) GetAliases

func (x *Kifu) GetAliases() []string

func (*Kifu) GetCreatedTs

func (x *Kifu) GetCreatedTs() int64

func (*Kifu) GetEndTs

func (x *Kifu) GetEndTs() int64

func (*Kifu) GetGameName

func (x *Kifu) GetGameName() string

func (*Kifu) GetHandicap

func (x *Kifu) GetHandicap() Handicap_Id

func (*Kifu) GetKifuId

func (x *Kifu) GetKifuId() string

func (*Kifu) GetNote

func (x *Kifu) GetNote() string

func (*Kifu) GetOtherFields

func (x *Kifu) GetOtherFields() map[string]string

func (*Kifu) GetPlayers

func (x *Kifu) GetPlayers() []*Player

func (*Kifu) GetSfen

func (x *Kifu) GetSfen() string

func (*Kifu) GetStartTs

func (x *Kifu) GetStartTs() int64

func (*Kifu) GetUserId

func (x *Kifu) GetUserId() string

func (*Kifu) ProtoMessage

func (*Kifu) ProtoMessage()

func (*Kifu) ProtoReflect

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

func (*Kifu) Reset

func (x *Kifu) Reset()

func (*Kifu) String

func (x *Kifu) String() string

type Piece

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

func (*Piece) Descriptor deprecated

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

Deprecated: Use Piece.ProtoReflect.Descriptor instead.

func (*Piece) ProtoMessage

func (*Piece) ProtoMessage()

func (*Piece) ProtoReflect

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

func (*Piece) Reset

func (x *Piece) Reset()

func (*Piece) String

func (x *Piece) String() string

type Piece_Id

type Piece_Id int32
const (
	Piece_NULL      Piece_Id = 0
	Piece_GYOKU     Piece_Id = 1
	Piece_HISHA     Piece_Id = 2
	Piece_RYU       Piece_Id = 3
	Piece_KAKU      Piece_Id = 4
	Piece_UMA       Piece_Id = 5
	Piece_KIN       Piece_Id = 6
	Piece_GIN       Piece_Id = 7
	Piece_NARI_GIN  Piece_Id = 8
	Piece_KEI       Piece_Id = 9
	Piece_NARI_KEI  Piece_Id = 10
	Piece_KYOU      Piece_Id = 11
	Piece_NARI_KYOU Piece_Id = 12
	Piece_FU        Piece_Id = 13
	Piece_TO        Piece_Id = 14
)

func (Piece_Id) Descriptor

func (Piece_Id) Descriptor() protoreflect.EnumDescriptor

func (Piece_Id) Enum

func (x Piece_Id) Enum() *Piece_Id

func (Piece_Id) EnumDescriptor deprecated

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

Deprecated: Use Piece_Id.Descriptor instead.

func (Piece_Id) Number

func (x Piece_Id) Number() protoreflect.EnumNumber

func (Piece_Id) String

func (x Piece_Id) String() string

func (Piece_Id) Type

type Player

type Player struct {
	Order Player_Order `protobuf:"varint,1,opt,name=order,proto3,enum=document.Player_Order" json:"order,omitempty"`
	Name  string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Note  string       `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*Player) Descriptor deprecated

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

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetName

func (x *Player) GetName() string

func (*Player) GetNote

func (x *Player) GetNote() string

func (*Player) GetOrder

func (x *Player) GetOrder() Player_Order

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) ProtoReflect

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

func (*Player) Reset

func (x *Player) Reset()

func (*Player) String

func (x *Player) String() string

type Player_Order

type Player_Order int32
const (
	Player_BLACK Player_Order = 0
	Player_WHITE Player_Order = 1
)

func (Player_Order) Descriptor

func (Player_Order) Enum

func (x Player_Order) Enum() *Player_Order

func (Player_Order) EnumDescriptor deprecated

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

Deprecated: Use Player_Order.Descriptor instead.

func (Player_Order) Number

func (Player_Order) String

func (x Player_Order) String() string

func (Player_Order) Type

type Pos

type Pos struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*Pos) Descriptor deprecated

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

Deprecated: Use Pos.ProtoReflect.Descriptor instead.

func (*Pos) GetX

func (x *Pos) GetX() int32

func (*Pos) GetY

func (x *Pos) GetY() int32

func (*Pos) ProtoMessage

func (*Pos) ProtoMessage()

func (*Pos) ProtoReflect

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

func (*Pos) Reset

func (x *Pos) Reset()

func (*Pos) String

func (x *Pos) String() string

type Step

type Step struct {
	UserId         string            `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	KifuId         string            `protobuf:"bytes,2,opt,name=kifu_id,json=kifuId,proto3" json:"kifu_id,omitempty"`
	Seq            int32             `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	Position       string            `protobuf:"bytes,5,opt,name=position,proto3" json:"position,omitempty"`
	Src            *Pos              `protobuf:"bytes,6,opt,name=src,proto3" json:"src,omitempty"`
	Dst            *Pos              `protobuf:"bytes,7,opt,name=dst,proto3" json:"dst,omitempty"`
	Piece          Piece_Id          `protobuf:"varint,8,opt,name=piece,proto3,enum=document.Piece_Id" json:"piece,omitempty"`
	Promote        bool              `protobuf:"varint,9,opt,name=promote,proto3" json:"promote,omitempty"`
	Drop           bool              `protobuf:"varint,10,opt,name=drop,proto3" json:"drop,omitempty"`
	Captured       Piece_Id          `protobuf:"varint,11,opt,name=captured,proto3,enum=document.Piece_Id" json:"captured,omitempty"`
	FinishedStatus FinishedStatus_Id `` /* 137-byte string literal not displayed */
	Sfen           string            `protobuf:"bytes,13,opt,name=sfen,proto3" json:"sfen,omitempty"`
	TimestampSec   int32             `protobuf:"varint,14,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"`
	ThinkingSec    int32             `protobuf:"varint,15,opt,name=thinking_sec,json=thinkingSec,proto3" json:"thinking_sec,omitempty"`
	Notes          []string          `protobuf:"bytes,16,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*Step) Descriptor deprecated

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

Deprecated: Use Step.ProtoReflect.Descriptor instead.

func (*Step) GetCaptured

func (x *Step) GetCaptured() Piece_Id

func (*Step) GetDrop

func (x *Step) GetDrop() bool

func (*Step) GetDst

func (x *Step) GetDst() *Pos

func (*Step) GetFinishedStatus

func (x *Step) GetFinishedStatus() FinishedStatus_Id

func (*Step) GetKifuId

func (x *Step) GetKifuId() string

func (*Step) GetNotes

func (x *Step) GetNotes() []string

func (*Step) GetPiece

func (x *Step) GetPiece() Piece_Id

func (*Step) GetPosition

func (x *Step) GetPosition() string

func (*Step) GetPromote

func (x *Step) GetPromote() bool

func (*Step) GetSeq

func (x *Step) GetSeq() int32

func (*Step) GetSfen

func (x *Step) GetSfen() string

func (*Step) GetSrc

func (x *Step) GetSrc() *Pos

func (*Step) GetThinkingSec

func (x *Step) GetThinkingSec() int32

func (*Step) GetTimestampSec

func (x *Step) GetTimestampSec() int32

func (*Step) GetUserId

func (x *Step) GetUserId() string

func (*Step) ProtoMessage

func (*Step) ProtoMessage()

func (*Step) ProtoReflect

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

func (*Step) Reset

func (x *Step) Reset()

func (*Step) String

func (x *Step) String() string

Jump to

Keyboard shortcuts

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